99% of websites are not optimized,...

Probably more.
Onsite
SEO is more than just code, structure and links. After that part is done you get to the level of the content optimization. There you can gain as well.
But I have to admit, in few cases you actually get to that point because it requires an understanding that is difficult to transmit to others.