"Code is read 7x more than it is written". - programming adage
Creating high quality software isn't easy. From the users perspective it is hard to tell clean well documented maintainable code from poor low quality code. That is before feature requests, bug fixes, and security holes are patched. Soon low quality code is unmaintainable and expensive to change.
One may hear "it's time to rewrite". This should be avoided at all costs. Software is organic, and in constant flux. Rewriting poor code is akin to uprooting an vineyard and replanting. You will wait 7 years to bear equivalent fruit. That is untenable in the web connected world.