Perfect test scores yet bad homework scores

I probably do have ADHD as well. I would always procrastinate on assignments/studying. I have goals, but I keep wasting time doing useless garbage. It’s terrible. I’m not sure if it’s depression from comparing myself to others all the time as well. I thought I solved that problem.