What matters more gpa or classes?

Freshman year I didnt have the best grades so I didnt take any honors or ap sophomore year, and junior year I have most honors and only 1 ap. Senior year is all ap and honors. does this work against me in any way because I have a pretty average gpa. How much does it effect me?