Please walk me through a hypothetical scenario: Imagine you are tasked with overhauling an underperforming e-commerce website on the Magento platform. What steps would you take to diagnose the issues and what solutions would you implement to enhance performance and scalability?