We have been using a few useful WordPress plugins on our blogs from the past years and have always been on high server load issues because of which we had to move from shared hosting to dedicated and then move the blogs onto different services like Dedicated, VPS with backups on external drives. The blogs can get heavy spike in the sql queries mainly because of the WordPress plugins which the load goes up and you will have to either upgrade the current VPS or move to a higher configuration. In order to Find Server Load check out our article which is useful for more Cpanel based hosting accounts.
Avoid :
One best suggestion would be to stop using the Contextual Related Posts Plugin which is available at http://wordpress.org/extend/plugins/contextual-related-posts/. No offense to the plugin developer but we have went ahead with multiple tries and have confirmed the below graphs.
The problem with these plugins is that whenever a blog post is read by a visitor, the plugin would run a few SQL Queries and search for other related posts based on title, content and category. This means that on every page load the server gets more resource used and when you disable these kind of plugins, the load is reduced because plugins like these need huge CPU resources.
The above screenshot is taken from our Linode CPU Load Graphs section which shows the current load on the VPS and in order o give you more idea we went ahead by activating the plugin for a few minutes. It’s clearly shown the load moves to the top and because of this the blogs get frequent HTTP Error 503 Service unavailable & Error establishing a database connection errors in the WordPress based blogs.
Recommended :
In order to give another solution in the form of a WordPress plugin which would allow you to display related posts on your blog and feed, we would suggest you to use the YARPP [Yet Another Related Posts Plugin] available at http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/ which is quite better in terms of not just the performance but also takes very less CPU usage giving you less issues on the host. The best part is that this plugin does caching, which would increase the performance and also the speed.
The above screenshot would give you a clear idea on the usage of CPU resources in the form of MySQL Queries when the plugin was activated for a limited period of time.
Alternative Suggestion :
Check out Google Related Links which is a service which wont put any load on your server because it actually finds the related posts based on the Google Indexed Blog posts and pages. Do read our other Tips to Reduce WordPress High Server Usage Problems.
The best part of using the Related Links by Google is that you don’t put any load on your server and the results are loaded super quick.
Amit pal says
But sir, you are not using Google’s tool – as I see.
Amit Bhawani says
It was actually a suggestion, i was still testing it from a long time to make sure it fits into the current blog theme.
Sourish says
what about yet another related posts plugins , most of us blogger use that .
Thanks
Amit Bhawani says
Most of these can create issues and this is the very reason the best suggestion would be comparing the results by Enabling and Disabling the plugin.
Anish K.S says
great,
me disbled all unwanted plugins due to high cpu usage. google related links is a great idea. thanks
Shaswat Patel says
Well I tested with my blog and it’s really effective one and believe me it will be good to gain Search Engine traffic too! I am not saying sudden jump but I found somewhere 20% jump for one of dead blog of mine which recently start updating.
Amit Bhawani says
Are you referring to the Google Related Posts Plugin?
Taylor Jasko says
Easy… add a simple function to your functions.php file in your default theme and then call it in the single.php file in the right location.
Then set up page caching using WP Super Cache or W3 Cache and you’re good to go!
If you want to be even more fancy, you could install XCache too to really speed up your PHP script load times.
Amit Bhawani says
What function are you referring to here? Could you paste the code for the related posts function.
Taylor Jasko says
It’s simply something like this:
http://www.wpbeginner.com/wp-themes/how-to-add-related-posts-with-a-thumbnail-without-using-plugins/
The code I’m using on my blog is handwritten by me, but it’s similar to that code.
This way, using a function, you can guarantee that it’ll be cached and won’t slow anything down. There are some other more advanced ways like using the post meta data section and storing the info like that, but a function is simple and works very quickly. Besides, it’s much more customizable.
For example, you could get the function to actually scan all the words in the post and relate it off that or you can make it look off the tags or even the title.
I’m a WordPress developer myself; why I know so much about this.
Namit Gupta says
What plugin you use to display related posts with thumbnails?
maha says
Hi Amit,
I am using List Category Posts plug in on my WP sites. I am using this to display category posts on the sidebar. What about this plug in terms of CPU usage? And also using Google XML sitemaps plug in. Shall I keep these or any better alternatives?
Regards