WordPress is the most popular CMS in the world today. But if you’re not using it properly, it can cause high load and performance issues on your website. Recently, I got around 1,00,000 visitors within 3 days on one of my website via StumbleUpon but due to the high consumption of resources, it lead to temporary suspension of my hosting account twice during that period (I am using shared hosting).
Here are some tips for optimizing your WordPress blog and reduce the CPU consumption of the PHP script.
1) Install WP Super Cache Plugin (Recommended)
WP Super Cache Plugin is a really fast caching engine for WordPress that produces static html files. By using this plugin, 99% of your visitors will be served static html files and your website would be able to handle instant high traffic from social bookmarking sites like Digg or StumbleUpon.
Best alternative to this plugin is WP Total Plugin.
2) Disable all CPU Intensive Plugins
– Most of the related posts plugins such as Yet Another Related Post Plugin(YARPP) cause high load on your website.
Read: Best Alternative To Yet Another Related Posts – Efficient Related Posts Plugin
– StatCounter & various other statistics plugins should also be disabled, as these consume too much CPU in most of the cases. Use only Google Analytics for statistics.
– Plugins to post automatically on WordPress should be disabled as they also cause high load and performance issues.
– Consider switching to Greg’s High Performance SEO for your SEO needs. Greg’s plugin output only 700 lines of code per page view as compared to other SEO plugins which outputs 1000-2000 lines of code.
– Any other plugins that are not in use should also be disabled.
3) Do not use CPU Intensive Themes
– Do not use themes in which page loads are generating too many errors in your Error Log (Check in your cPanel under Logs)
– Disable Dynamic Image resizing function in your theme.
– Most of the free themes are CPU Intensive. So, try to use Thesis Themes or any other premium theme.
4) Use WP-Optimize Plugin
WP-Optimize Plugin lets you to clean up your WordPress database & optimize it without phpMyAdmin.
5) Avoid Spam bots to target your website. Use CAPTCHA to prevent comment spam.
6) Avoid hosting large number of websites under the same account as it can increase the crawl rates and load on the server, as many search engine bots try to index your websites.
7) If everything else fails, Switch to Better Hosting. Try Hostgator. (Recommended)
After making all these changes, my website is now able to handle any amount of traffic with no CPU consumption and performance issues.
If there are any questions regarding this, don’t hesitate to ask in comments. 🙂