As your website attracts more traffic, you may start to experience performance issues such as slow page loading times or even site crashes. This can be caused by an overloaded WordPress site, which is when the site's resources are used near or beyond the limits. To fix this, you can find here ten suggestions that can help improve your WordPress website performance:
Install Only the Necessary Plugins
Since each plugin consumes resources, the more plugins you have, the higher the resource your website requires. It is highly recommended that you only install plugins that are absolutely necessary for your website. If you have too many plugins installed, remove the ones you no longer need or look for smaller alternatives.
You can find out more about it in this tutorial: How Many Plugins Are Ideal for Your Site?
Keep Plugins and Themes up to Date
Outdated code or scripts in plugins and themes can make them stop working optimally, which may cause errors or security issues on your website, so make sure that all the installed themes and plugins are up to date.
Go to the Plugins section on your WordPress ad
page and update any plugin that indicates that an update is required:
It can also be the case that the developer is no longer updating the plugin - it is recommended to use only plugins that are regularly updated. You can verify when the plugin was last updated by clicking on View Details:
Take a look at the Last Updated section in the description:
If it has been several months ago since it was last updated, you should look for an alternative plugin with a better updating rate.
Same as with plugins, make sure to keep all of your installed themes up to date - not only the theme currently in use. Alternatively, you can uninstall any unused themes.
Go to the Appearance → Themes section on your WordPress admin page and update any theme that indicates that an update is required by clicking on Update now:
To check when was the last time a theme was updated, go to the official WordPress Themes page, hover on the theme, and click More Info, you will find the date there:
You can also manage your plugins and themes on the WordPress Security section
Reduce Image Size
Resize and compress any image you upload to your website to make it the optimum size for your need - unnecessary large images require more time to load.
You can use any image editing tool to resize your images. For instance, if you're using Windows, the Paint application has a Resize option:
You will be presented with the option to resize by either percentage or specify a size in pixels. Make the adjustments and click OK when done:
Once the image is resized, you can compress it using any of the available online tools, such as TinyJPG. Just upload the image and download the result after the compression process is completed.
Use a Cache Plugin
You can enhance the server's performance and speed up your website by installing a cache plugin. We recommend LiteSpeed Cache, as you can easily enable it by going to Websites → Manage, searching for Overview in the sidebar, and enabling LiteSpeed Cache:
If your hosting plan is Business or greater, you can enable Object Cache as well 😊
Use a Content Delivery Network
You can handle high traffic from around the world on your website using a Content Delivery Network (CDN). A CDN is a network of servers located in different countries that keeps a cached copy of your website and sends it to the nearest visitor from the server.
With a CDN, servers can easily send website data to locations that are far from the original server location, preventing your website from overloading.
Scroll down to find the option to enable CSS and HTML. Once done, click on Save Changes to apply these settings.
Enable Gzip Compression
Gzip is a data compression algorithm used to reduce the size of files, allowing them to be transmitted or stored more efficiently. You can enable Gzip compression by adding the following lines of code to your website's .htaccess file:
Once added, click on Save to apply the changes.
Update WordPress to the Latest Version
The WordPress development team is always working to improve it by fixing issues and bugs, enhancing security as well as adding more features, so make sure that you keep WordPress up to date.
Whenever a WordPress version is released, you will be able to update it in a few clicks from your panel. Open Websites → Manage and search for Overview on the search bar. Find the update notification on top of the WordPress Overview page and click on the button to Update:
Your WordPress core will be automatically updated to the latest version!
Optimize the MySQL Database
You can also optimize your MySQL database to prevent your website from overloading. Access your website database using phpMyAdmin and scroll down on the list of tables. Click on Check all to select all the tables, then open the drop-down menu next to it and select Optimize table:
Limit Post Revisions
Post Revisions is a very useful WordPress feature that allows you to undo changes and go back to a previous version of a post. By default, WordPress saves all revisions, which can make the website database heavier as more revisions are stored.
To limit the number of stored revisions, open the File Manager and head to the public_html folder of your website. Next, add the following code to your website's wp-config.php file:
Where 5 is the number of revisions that will be kept. You can choose to enter any other number, making sure you keep it low for optimal results. The older revisions past this limit will be automatically deleted as newer versions are saved.
That's it! Now you know ten ways to optimize an overloaded website and improve its performance 🚀
If your website is growing and you need more resources, you can also consider an upgrade to your hosting plan 😊