How to lower Wordpress load and CPU use
Wordpress has become the most famous overloading high CPU script in the world thanks to it's popularity with new users. The good news is even as a new user, optimizing Wordpress is pretty easy if you take sometime and follow the steps below.
We listed each optimization for Wordpress in order of most helpful.
Before starting we suggest making a full back up of your Wordpress website and database.
- Install caching software
Without any caching in your Wordpress it has to check every link, image, tag, and more to load each page. To avoid running everything for each visit there is two caching programs you can easily add as a Plugin from your Wordpress admin section. The most common is WP Super Cache and the second is W3 Total Cache. Both are trusted and used by millions of Wordpress sites.
- Make smaller pages or add Lazy Load
Making your pages smaller will have a major impact on your load. In fact splitting your page in half will normally lower more than half your load use. If you are still dead set on a long page than at least add a lazy Load plug in. The common amount of posts on a page is 5, anything over that is at risk of having load issues.
- Remove tags
Tags seem like a great way to tell Google what SEO traffic to send to your site. The truth is Google has said many times it does not use tags for SEO purposes. Being the third most common reason for overloading Wordpress and with no real SEO benefit removing tags is a great way to lower your CPU and load use. We suggest that if your remove tags to make sure and use sufficient categories to help your visitors navigate well.
- Remove admin-ajax
It's too detailed to explain how to disable admin-ajax in this list, but we have put together a nice blog post showing how you can here: Remove Admin-Ajax
- Remove wp-cron
It's also too detailed to explain how to disable wp-cron in this list, but we have put together a nice blog post showing how you can here: Disable wp-cron.php
- Add Akismet
This will block spam and junk from wasting your sites resources.
- Limit login attempts
It is important to block hackers and attackers, there is multiple plugins that does this well.
- Keep media compressed well
Having large images and media requires more time to load which adds more load use.
- AMP by Google
Amp is a speed and performance improving plug in by Google that was a little dorment until late 2017 when Google decided to put more man hours behind it. We can expect it to be a standard performance boosting plugin like WP Super Cache by the end of 2018.
- Disable WordPress XML-RPC with .htaccess
You can disable all xmlrpc.php requests from the .htaccess file before the request is even passed onto WordPress.
Simply paste the following code in your .htaccess file:
# Block WordPress xmlrpc.php requests
deny from all
allow from 188.8.131.52
Was this answer helpful?
All new web hosting plans have a place holder page to show the website is working. You'll need to...
The file wp-cron.php in WordPress is used to process pending posts and check for updates. The...
The WordPress Heartbeat API is used to have WordPress to connect between your web browser and the...
Log into your account manager from any page on our website or with the link here: Account...
If you prefer to get your hands dirty like I do, than here is exactly how to move your WordPress...