If you are newbie or going to defensive play, just focus upgrading main building to lvl 10, 3 crannies, warehouse and granary to lvl 7.
Just these 4 buildings are enough until beginner's protection ends.
Then be sure to lvl 7 all the resources except cropland.
Now you can start building market and residence until you can have 2nd village. After that make the troops all you want..
For hero stats. The first 3 lvls are enough for resources then put all to fighting strength next time you levelup..