Personally, i'd max defence first (not including every damn wall) and then everything else in no order. :P
Whilst you max 'everything else' then start maxing your walls and researching for upgrades; they'll both take a while.
Max everything, including walls. Walls aren't even a grind at th7.