How to avoid excessive CPU usage problems of WordPress under shared hosting

CPU usage usually depends on the amount of request that your server receives. Besides, it may also depend on the number of people accessing your site/blog at the same time. 
Whatever the reason may be; your objective is to reduce CPU usage. Following are the tips to keep your CPU usage minimal.
 
1 ) Remove unwanted plugins
For wordpress, plugins consume maximum resources. Moreover with time, the plugins become unresponsive and may not tally with your present wordpress version also. Hence, it is recommended to install reliable plugins, avoid using poorly coded plugins and deactivate the unnecessary ones as using too many plugins overloads the server.
 
 
2) Update plugins to the latest version
The update process may bring along a number of bugs, particularly if you have up have upgraded to the advanced wordpress version but have forgot to keep pace with new developments. However, ensure to check the plug-in discussion groups as well as forums to ensure that it’s fine to update. Updates often pop-up on your screen however, read the pop-up message carefully before clicking the update version.
 
 
3) Optimization of Database Table
To keep things running smoothly, you need to log onto PhpMyAdmin on a routine bases and optimize the database tables. Unoptimized data tables can overload the server. More over, the CPU usage is also more for reading unoptimized data tables. Besides data table optimization, you can also delete spam/unapproved data.
 
 
4) Choices of theme
Themes of wordpress for the website also a factor of excessive CPU usage. The more stylish themes you choose, the more loaded the CPU is. Simpler or optimized themes work better and don’t consume much resource as light theme has fewer queries.
 
 
5) Wordpress version
Most of us ignore the idea of upgrading wordpress just because it works nicely and already be accustomed to it format and layount of admin panel.Do advice update to an advanced and latest version of wordpress will provide a better in terms of security and optimization.
 
 
6) Reduce widgets
There may be certain widgets that aren’t needed or essential. As the more widgets you use the more strain you are enforcing on the server. Please get rid of unwanted widgets to lower server load and CPU usage
 
 
7) Lower load of PHP or Database calls
PHP scripts and database calls also consume a lot of CPU resource.Hence, you should go through the plugins documentation carefully and disable the unnecessary options. To lower this load, ensure keeping your homepage simple. Try to lower the number of posts on your homepage and remove unwanted files, links and high resolution images.
 
 
8) Disable WP-Cron
Disable WP-Cron or change to a scheduled task to run every hour. This will greatly reduce your CPU usage. 
 
Open wp-config.php, change the below setting:
==============================
define('DISABLE_WP_CRON', true); 
==============================

Add Feedback