If your WordPress site is slow, or if you just want to optimize WordPress for even more speed, you’ve come to the right place!
WordPress Speed Optimization
In WordPress Speed – The Ultimate Guide I will show you how to improve your slow website and dramatically improve page load times.
Quick Fix for a Slow WordPress Site
If you’re looking to just make a quick fix the easiest way to improve your site’s speed is with great web hosting.
The best, and quite affordable, option on the market is SiteGround.
I’ll get into more details on hosting in step 2 of this guide.
So you make the decision to run WordPress on your website.
You install in onto your web host.
Type your domain name into your favorite browser to try it out.
…you’re horrified at how incredibly slow each page of your WordPress website loads!
The next thing you know you’re Googling “Why is WordPress so slow?”
Well you’re in luck!
Because you’ve found my Ultimate Guide to WordPress Speed and Optimization.
I’ve done countless hours of testing on WordPress to figure out how to achieve its maximum performance.
And now I’m sharing it all with you here!
WordPress Speed – The Ultimate Guide
1. Speed Testing
a) PageSpeed Insights
– Latest Version
7. Gzip Compression
– WP Rocket
a) WP Rocket
b) Fast Velocity Minify
c) Local Machine
a) WP Rocket
b) Swift Performance
16. Pingbacks & Trackbacks
18. Audio/Video Files
– Hosting Service
19. Google Analytics
1. Speed Testing – the First Step to cure your Slow WordPress Site!
So you want to optimize the speed of your slow WordPress website.
Before you change anything though you need to baseline the speeds you’re currently getting.
Fortunately there are some fairly popular free tools that do just this.
I am suggesting four of them.
They have a lot of overlap, especially in the speed testing department.
You’d be surprised though at the difference in the results between them!
That’s why I opt for all four as a means of checks and balances.
Another good reason to use all four tools is that some go into much more depth than others with what they tell you.
When using any of these tools I suggest testing your homepage.
Mainly because that’s the first page people usually see when they visit your site.
Later on in this speed guide I will be getting into more detail about why your homepage is the most important page to optimize on your site!
This tool runs fairly quickly and simply tests your site for speed.
The downside of it is that it can be oddly inconsistent.
I’ve run back to back tests without changing anything on my site and gotten different scores.
My homepage currently comes in with 99-100 scores.
Take the overall score with a grain of salt though.
Once you add even one (optimized) image to your page it starts penalizing you.
This is my favorite tool of the bunch.
It’s very consistent with its scores and gives lots of detailed information and suggestions on how to optimize your site to make it nice and snappy.
My homepage currently rates at 100% on their PageSpeed and YSlow Scores with a less than one second page load time.
It’s easy to get obsessed with trying to get the perfect score here.
And it’s not always possible.
Just focus on trying to maximize every issue you see and your page speeds will improve dramatically.
This tool can be can slightly inaccurate at times with its assessments.
For instance it currently says that I need to compress components with Gzip when I already do this!
Even with this error my homepage performance grade is currently an A with a 97 score.
My second favorite of the bunch.
This tool gives insane amounts of optimization data and is quite consistent with its results.
My homepage currently gets A’s across the board on its testing.
2. Hosting – the Best Fix for a Slow WordPress Site
As mentioned above, this is a biggie.
Many people try to cheap out in this area.
Or go with the well known like GoDaddy, HostGator and Bluehost.
But if I tell you there is an even better AND cheaper option would you believe me?
You wouldn’t right?
Well there is!
If you’re just starting to build your website they have the perfect shared server plans for you.
I’m currently on their GoGeek Plan.
They deeply discount their prices for first time customers so I suggest buying the three year plan if you can afford it.
Upon renewal their prices are more in line with the actual value you get from their product!
I will be writing an in-depth guide that really digs into this WordPress hosting topic in the near future.
But for now just know that if your WordPress site is slow and you want to optimize it for speed SiteGround hosting is the way to go!
3. PHP – stay Updated and avoid a Slow WordPress Site
This one is a fairly easy way to make sure your WordPress site is optimized for speed.
PHP has been around and improving since 1994 and is the programming language that WordPress is coded in.
So in order to get the best performance for your WordPress site you want to make sure you’re running the latest version of it.
Amazingly some site hosts don’t support the latest PHP versions until months and sometimes years later!
SiteGround and many other hosts do though.
The key takeaway here is to make sure your server is running the latest version of PHP, which at this writing is version 7.3.
4. Framework – behind the scenes fix for a Slow WordPress Site
Next up on the list of must haves to optimize your plodding site to move at the speed of light is a quality framework.
There are many out there and I’ll leave the in-depth discussion of this topic to a future post.
Personally I’ve tried a few and have come back to Genesis from StudioPress each time.
Their lightweight, easy to use, optimized for speed, SEO and responsiveness framework is a great and fairly inexpensive one time purchase that will greatly enhance your WordPress site.
But is a Framework Really Necessary?
Now to be fair, you can skip the framework altogether and go right to the theme which I’ll be discussing next.
Remember though, we’re talking about optimizing your slow WordPress site for speed here.
And if you want to do that the best way is with a premium framework, like Genesis.
This might seem counterintuitive though to those who would say don’t you want to keep it simple here?
And as I mention on my Start Here page simple is my go to strategy when possible.
But in this case simpler is not better since a well made framework actually improves your WordPress installation.
5. Theme – another way to Optimize your WordPress Site
This is where things can get a little confusing.
A lot of people aren’t even aware of frameworks no less how they differ from a theme!
Layers of an Onion
At its core you have the WordPress installation.
Then you layer the framework on top of it.
And then you have a theme on top of that.
I stick with the StudioPress family for my choice of theme.
I like having the continuity of the StudioPress brand across my site since I know all of their themes are maximized for speed, SEO and mobile responsiveness.
There are many, many themes from different manufacturers that work with the Genesis framework.
Just make sure to do your research and pick one that is also optimized for speed, SEO and mobile responsiveness.
So even though you can use many themes without a framework, that’s not the case with the ones from StudioPress.
6. CDN – a must have for your Slow WordPress Site
A content delivery network (CDN) is a network of servers that are placed around the globe so they can deliver your website to the end-user via the location closest to them.
This is a must have these days if you want to optimize your WordPress site for speed!
The image on the left represents a traditional one server setup delivering your content to the web.
And in the image on the right you can see how having multiple servers (a CDN) would optimize your site’s speed.
In short a CDN is a must have if you’re interested in maximizing how fast your slow WordPress site will run.
To enhance my site’s speed even more I use two of them!
It is only necessary to use one though.
Amazingly Cloudflare still offers an incredible free CDN that I’m suggesting everyone go sign up for right now!
The second, paid, CDN option I use is the $10 a month offering from StackPath.
It is well worth the price and I highly recommend it for upgrading the speed of your sluggish WordPress site.
7. Gzip Compression – an easy fix for a Fast WordPress Site
This is a fairly simple way to optimize your site.
Gzip compression is the process of reducing the volume of your WordPress files which in turn will enhance it for speed.
You can enable Gzip Compression directly in the .htaccess file on your server or via a plugin.
8. Cache – Optimize your Slow WordPress Site for Speed
This is a biggie and somewhat complicated since there are many ways to do it!
I will be writing a full guide on this topic in the near future.
In short caching is when certain website data is stored statically on your web host so your site’s pages load faster.
This is a good thing, especially for sluggish WordPress sites.
There are lots of plugins available to do this.
Many are free and some require payment.
A popular premium caching plugin I use and recommend is WP Rocket.
9. Minify – will Optimize a Slow WordPress Site for even more Speed
This is another fairly complicated to explain but essential optimization method to get your slow WordPress site moving faster.
Minification is the process of literally reducing the size of site files by removing all of the white space and other unnecessary characters in them.
Once again there are many plugins available to do this and it can be quite the task to sort through all of the options.
Luckily for you I have already done this!
On the premium side I use WP Rocket for this task.
It’s part of the same plugin I mentioned earlier in the cache section of this guide.
They have a “File Optimization” section that handles all of the minification for you.
If you’re interested in a free plugin option to minify I highly recommend Fast Velocity Minify.
It packs quite the punch.
I am always amazed at what it accomplishes during my site tests to improve WordPress speeds!
10. Plugins – too many means a Slow WordPress Site
We all love plugins.
They are great to do those little things we want done on our site.
Use the wrong plugin, or too many plugins, and your WordPress site speeds will dip into the crawling, stagnant, tortoise like regions that no one wants to be in.
I like to use as few plugins as possible.
Right now that ranges from 10-15.
I suspect a good amount can be anywhere from 20-30 though.
If you’re using more than that I’d seriously assess what each of them are doing and check if they are actually needed.
Remove the bloat to optimize!
One thing you can do is try deactivating all of them and running the above mentioned speed tests.
This will give you a good idea if your plugins are slowing down your site.
Just remember to also do the speed testing before you deactivate all of them so you have something to compare the results to.
If there is a speed difference with all of the plugins disabled then I suggest turning them on one at a time and rerunning all of the tests each time.
This can be a little time consuming but it is well worth it.
When you do this with all of your plugins eventually you will find the culprit that is stealing your speed resources.
Once you isolate the bad plugin ditch it.
With a little research there is always another better one to be found.
11. Images – second biggest cause (behind hosting) of a Slow WordPress Site
This is a big problem for a lot of slow WordPress sites.
Giant, hi-resolution pictures splashed across your web pages are never a good thing.
How this relates to your WordPress site being slow is that these large images take time to load.
And the bigger they are, and the more of them there are, the bigger the problem is.
It can even be a problem with smaller images that are not compressed.
The solution here, other than removing the unnecessary images altogether, is to compress the images that are on your site.
This can be done in a variety of ways.
The three main methods are online, with software on your local machine, or via a plugin after the images are uploaded into your WordPress Media folder.
There are a bunch of free and paid online services to compress images.
The best one I’ve found so far is Optimizilla.
After I compress my images online I let a plugin do the rest of the work.
There are tons of options out there.
Some really good, and some really bad.
Some free, and some paid for.
The one that I use and highly recommend is ShortPixel Image Optimizer.
It’s simple to use.
Compresses the image on upload.
And they allow you to compress up to 100 images each month for free.
I used to prefer this method but now realize that desktop software does not even come close to compressing images as well as online services or plugins.
I’m guessing this is because the desktop software options don’t really make this their main focus.
Anyway here are a few options that will compress images for you.
Adobe’s Photoshop is a paid software option that has a built-in “Save for Web” feature that reduces the size of any image.
IrfanView is a free software option that also has a “Save for Web” feature once you install the additional free plugin for it.
If you follow any of the image recommendations above you will be sure to notice improved load times for your slow WordPress site.
12. Database – cleanup to Optimize WordPress
This is a behind the scenes improvement.
Basically you’ll be trimming the fat in your database of unneeded tables and entries that could be slowing you down.
This can be done manually but I do not recommend it.
Instead I suggest using a plugin to the job for you.
Either way is quick, simple and convenient.
If you’re looking for a free option I highly recommend using Swift Performance Lite
They have a database optimizing solution that rivals the one from WP Rocket.
I actually use both of them to really maximize my database tables and to make sure I avoid a WordPress slowness database issue on my site!
13. Updates – a must have to Optimize WordPress
This is a subtle yet very important item on this list to improve the speed of your slow WordPress website.
Updates are important, not only for speed optimization but even more so for security fixes.
Do them, I’ll leave it at that!
Stay on top of the latest WordPress updates.
They seem to come out with updates every month or so these days.
Here you can see the full history of WordPress versions.
Equally important is keeping your plugins updated.
The plugin makers are constantly revising their plugins and these will improve your site’s performance.
14. Hotlinking – prevent this to avoid a Slow WordPress Site
Hotlinking is when you have an image or video hosted on your website and another website directly links to it from their website.
When someone does this it draws on your site’s bandwidth and will slow your site down.
You want to prevent this by all means.
In Cloudflare’s settings on the “Scrape Shield” tab there’s an option to turn on Hotlink Protection.
15. Gravatars – turn these off to prevent a Slow WordPress Site
These are the little images that appear next to someone’s name when they make a comment on your site.
They can add character to your site but each one of those images will slow your WordPress site down bigtime.
These can easily be disabled in the “Discussion” section of the WordPress “Settings”.
16. Pingbacks & Trackbacks – disable to prevent a Slow WordPress Site
These are notifications that are sent to a website to notify them that they’ve been linked to.
This can sound useful but in fact they can use up unnecessary server resources.
As with Gravatars, Pingbacks and Trackbacks can easily be disabled in the WordPress settings.
Navigate to the same “Discussion” section in the WordPress “Settings” to do this.
17. Homepage – keep it light to Optimize WordPress Speed
Your homepage is often the first thing people see when they visit your site.
If you’re interested in having a fast WordPress website it’s important to maintain a smooth, light, fast running homepage.
Even if the rest of the pages on your site are a little slower that’s okay.
If you have caching set up properly, as mentioned above, many items will preload when someone visits your homepage, and make the rest of the pages on your site open quicker.
This will make for a much better and faster overall user experience when visiting your WordPress site.
18. Audio/Video Files – host elsewhere to avoid a Slow WordPress Site
If you thought images were slowing your site down audio and video files are even worse!
These are often giant sized files that bog down your site’s performance.
If you are going to have audio or video files on your WordPress site it is imperative that you host these files elsewhere.
There are many services like YouTube, Vimeo and SoundCloud that allow you to upload your content for free.
They then provide you with a link to seamlessly embed the content into your site.
19. Google Analytics – offload to avoid a Slow WordPress Site
If you’re interested in tracking how many visitors your site has it is essential for Google Analytics to be installed.
Deploying it correctly for WordPress speed optimization can be quite challenging though.
In order to work properly the code needs to be embedded into the header or footer of every page.
This can slow your WordPress site down.
Even when done properly it will still kick up warnings on the above mentioned speed tests.
There are many plugins that offer to offload Google Analytics for you.
Some are good, others not so much.
I hope you’ve enjoyed my Ultimate Guide to WordPress Speed Optimization.
Make sure to comment below.
Say hello, or add something you think I might have left out to make a Slow WordPress Site Fast.
Thanks for reading!