Wall inclusion would be problematic, and probably lead to severe depression. Bases simply have more wall segments than all other structures combined, and both TH 2 and 9 have two wall levels. So, for example, a TH 8 is 100% maxed, with 225 level 8 walls. As soon as they become a TH 9, those 225 have 2 upgrades (450 upgrades)
plus they have 25 new segments to place initially and then upgrade 9 times to reach level 10 walls (250 upgrades). So walls alone account for
700 upgrades! Imagine the depression seeing that after each upgrade completed, you are still less than 10% complete.
Believe walls would have to be included within it's own statistical data, else sheer number overwhelms all else.