If you’re not using the latest WordPress update, make sure you back up your site before upgrading or trying to fix any issues! High CPU usage is a very common issue when it comes to shared hosting. Shared servers host many websites and a large amount of them are running PHP processes and MySQL queries. There are many WordPress plugins that require more RAM and processing power to work. Unfortunately, not all WordPress themes are created equal. While some are extremely fast and well coded, others are bloated with hundreds of bells and whistles under the pretense of being “versatile and customisable”. When you choose a theme, check the page speed of the theme’s demo to see how quickly it runs with nothing added to it. This should give you an idea of how well coded it is.
What May Create A High CPU Usage Problem?
- Multiple WordPress sites installed, regardless if in use
- Resource-consuming plugins installed
- Hacked hosting account
- Real-time stats collector plugins
- High number of online visitors
- Self-hosted media streaming
- Running frequent and long-run Cron jobs
Multiple WP Sites Installed, Regardless If In Use
This issue may be resolved easily by using a good caching plugin. If you, however, have over 7 – 8 WordPress websites on a single shared host, you should buy additional hosting to host some of your sites as every WordPress site needs RAM and CPU to run properly and these resources are limited on a shared hosting account.
Resource-consuming Plugins Installed
With WordPress sites, plugins are usually the biggest culprit for slowing the site down. If there are any plugins that you’re no longer using or aren’t essential, delete them. While it’s awesome to be at the cutting-edge, only use stable versions of WordPress plugins. Early release versions (also known as alpha or beta) can have bugs in the code which can cause CPU spikes. A common culprit is social-sharing plugins, most of which bloat page-loading times and can easily be replaced by embedding social buttons into the theme’s source code. Find out which plugin is causing high load, and replace it with a better alternative.
Top tip: Deactivate all your plugins and then reactivate them again. It can sort out the problem and reduce CPU usage.
Hacked Hosting Account
A hacked hosting account is one of the major reasons for high CPU usage. This issue cannot be resolved easily. You can work manually to resolve it or get the help of an expert, experts are closer than you think with our tailored security tool that has your online reputation in mind!
Best Way To Protect Your Account From Infections - If you want to protect your hosting account from unwanted hacking attempts, you should have a full backup of your account for the last 30 days so that you can restore it to a previous unhacked version.
Real-time Stats Collector Plugins
If you have a tracking plugin installed that collects traffic information from your WordPress website it may cause high load on the database server. You can replace that plugin with external trackers such as Google Analytics.
High Volume Of Online Visitors
If hundreds of visitors hit your site at once, your hosting account needs more system resources and thus it may be a culprit of high CPU usage on the shared server. If your traffic goes up, you should consider buying Managed VPS or VPS.
Media Streaming From Your Hosting Account
Media streaming is against terms of conditions of all shared hosting providers. So you have to buy VPS hosting for this purpose.
Running Frequent And Long-Run Cron Jobs
Generally, WordPress backup plugins run Cron jobs when you schedule backup. Ensure that your backup plugin uses batch mode to create a backup and send it to any remote destination.
With mobile internet usage expected to take over desktop usage, it’s never been as important as it is right now to fix your site speed. Internet users are less tolerant of slow websites than they’ve ever been, and the shift towards Internet-enabled mobile devices means that if you’re not fast, you’re not going to be seen. CloudFlare cuts huge load caused by your websites. CloudFlare prevents spambots from visiting your website and thus saves your website from unwanted and useless traffic. Moreover, CloudFlare’s caching system makes your site faster and lighter.
Use A Caching Plugin
If you’re using WordPress, one of the quickest and easiest ways to cut your page loading speed is to install a caching plugin. Despite their name, caching plugins do quite a lot beyond browser caching, although that is their primary function.
Clean Up Your Database
WordPress autosaves everything, but the disadvantage is that your database will get filled with thousands of post revisions, trackbacks, pingbacks, unapproved comments and trashed items pretty quickly. Of course, when doing anything to your database, always backup first.
Turn Off Ping Backs And Trackbacks In WordPress
Pingbacks and trackbacks don’t really serve any practical use in WordPress, and yet they’re often enabled by default. We’d recommend turning both of these off as they clog up your database and increase the number of requests that are made.
Specify Image Dimensions
Before your browser can display your webpage, it has to figure out how to lay out your content around your images. Without knowing the size of these images the browser works it out, causing it to work harder and take longer.
Specifying your image dimensions saves the browser having to go through this step, which helps to speed things up.