If you are running a Wordpress website, it is necessary to update your Wordpress settings regularly. Your website will face slowness due to high CPU/RAM usage and it will impact the site users and SEO as well. In this case, you will need to reduce the resources which are causing the high RAM/CPU.
Following are a few suggestions that will help you to prevent high CPU/RAM usage on your Wordpress.
(1) Update Wordpress Plugins and themes:
Plugin and themes are very useful in Wordpress to implement the required setting without hiring Developers. It is important to update the Plugins and overcome its bug and other problems that lead to future issues. Please make sure that you download and install the plugins/themes from the trusted sources.
(2) Remove unwanted Plugins :
It is not a good practice keeping the unwanted Plugins either active/deactivate. It may cause the issue with CPU and RAM. You should remove the unwanted plugins which don't require for your website. You also need to avoid the plugins which use high resources.
(3) Update Wordpress Version :
You should keep the WordPress version up to date. Wordpress developers regularly release the updated WordPress versions to fix the bug reported in their previous versions. New version will come with advanced security, the latest feature and faster speed.
(4) Optimize Database Tables :
Sometimes few database queries may load the high CPU usage. You will need to involve your website developer to check your Wordpress Database from phpMyAdmin and optimize the Database table which leads to high CPU. Database optimization will reduce the database size and provide faster performance.
(5) Use Wordpress Caching :
If you use Wordpress caching, it will cache the static pages of your website as an archive and serving to your visitors. It will load quickly in the browser. This will minimize the server load by reducing the multiple queries to your database. There are caching plugins available for Wordpress. You can use it to boost website performance.
(6) Disable WordPress crons :
Wordpress cron runs as users access your website each time. WP-Cron manages all the scheduled tasks on your Wordpress. This task will give pressure on server resources. To solve this issue, either you can disable the Wordpress Cron or schedule the cronjob which runs every hour. It can be disabled by adding or modifying the below line in wp-config.php as below.
(7) Use Optimized Images :
You can't avoid images when you run a website. It will define the look of your Wordpress Website. However, images may take time to load which consumes high Bandwidth and other server resources. It is always recommended to use compressed or optimized images. If you have cPanel or other hosting controlpanel, it will provide the readymade optimize tool which is very handy.
(8) Upgrade PHP version :
All the PHP version above 7 is faster and secure. It will consume less CPU Usage than your previous version. Before using the php version 7 for your website from your control panel, you will need to make the Wordpress website compatible to use that version. Also, your themes and plugins should be compatible with the new version.
(9) Enable CDN :
As we know, CDN loads static content like CSS and js. This content will be stored at the edge CDN server. Hence, it will reduce the load on your server and website performance will be increased.