Ever since the July 2018 Google Speed Update, server response time has become a major ranking factor.
Studies show that Google now gives preference to websites that load in less than 1 second.
Positions #1 to #10 Load in Less Than 2.3 Seconds
In 2016 SEO whizz Brian Dean analyzed over 1 M search results to find out what factors make a page rank on Page #1 of Google.
Brian found that web pages that ranked in positions #1 and #2 on Google had an average load time of 2 seconds or less.
Even pages that ranked in position #10 had an average load time of just over 2.2 seconds.
SEO is such a complex topic that it seems almost absurd that something as simple as speeding up your website can help you get on Page #1 of the search results.
But it’s a fact.
The evidence is very clear: your chances of getting on Page #1 of Google increase dramatically if you can get your website to load in 2 seconds or less.
And it turns out it's not that difficult.
I managed to reduce my website load time to 1.7 seconds, as measured by Pingdom:
How did I do it?
That’s what I’m going to show you in this article: 27 ways to reduce your server response time in WordPress.
But first, what is server response time?
How do you test it?
And what’s a good server response time?
What is Server Response Time?
Server response time (SRT) is the time that elapses from when a web browser requests data from the server and when the server responds to that request.
It is also referred to as the Time To First Byte (TTFB).
In the Google Page Speed Insights test shown below, Google has flagged server response time as one of the opportunities where this particular website could improve its performance:
How Do You Test Server Response Time?
The best way to check your server response time is Google’s Page Speed Insights.
If your server response time is slow, Google will list it under “Opportunities” (for speeding up your load time).
Here are two other tools for measuring Server response time:
What is Google’s PSI Score?
Google created the Page Speed Insights test in 2018, shortly after it announced that ‘Google Speed Update’ in July of that same year.
Unlike Pingdom and GT Metrix, the Google PSI test doesn’t directly measure your load time.
It gives your website a score, based on a range of factors that affect user experience on mobile:
- 90 to 100 is ‘Fast’
- 50 to 89 is ‘Average’
- 0 to 49 is ‘Slow’
If you get a score of 90 or above, the PSI indicator turns green.
Reading between the lines, it seems likely that Google wants all websites to have a PSI score of 90 or above.
How Can I Get a 90+ score on Google’s PSI?
There are five key improvements you can make that will help to give your website a PSI score of 90+:
- Optimize images
- Use a CDN (Content Delivery Network) to deliver things like images and PDFs.
- Eliminate Render Blocking Resources
- Enable GZIP compression on your server
The Need for Speed
So, what’s driving this emphasis on website speed?
As you may know, mobile is overtaking desktop.
In 2017, for the first time ever, mobile overtook desktop: 50.3 % of all Internet browsing was on mobile devices.
That percentage went up in 2018 to 52.2%. And the percentage of mobile internet browsing will keep growing.
But here’s the problem:
Desktop browsers are typically plugged into high speed internet connections. But most mobile users are using much slower connections (3G and 4G).
If Google and other search engines are going to meet this growing demand from mobile users, they need websites to deliver faster response times.
And that’s where Google Page Speed Insights comes in.
It seems safe to assume that eventually websites that don’t have a PSI score of 90+ will have trouble ranking on Page #1 of Google.
So now that you understand why speed has become such a big deal, let’s look at ways to make your website load faster.
27 Ways to Reduce Server Response Time in WordPress
1. Upgrade Your PHP Version
In December 2015 PHP 7 was released. To give you an example, PHP 7 is about 3x faster than PHP 5.6.
If you’re not using PHP 7, you need to upgrade immediately.
Download and install the Display PHP Version plugin.
Once the plugin is activated, navigate to the ‘At a Glance section’ of your WP dashboard and you’ll see your PHP version displayed:
This is a plugin you only need to use once.
As soon as you’ve checked your PHP version, deactivate the plugin and delete it.
If it turns out your website is not running PHP 7, contact your web host nad ask them to enable PHP 7.
2. Check If You’re Using HTTP/2
HTTP/2 is a new network protocol introduced in 2015. It can make your website load 10 to 15% faster.
Use this tool to check if your website is using HTTP/2.
If your website is already using HTTP/2, congratulations – you are among 27% of all websites than currently use HTTP/2.
But if your website is not using the new protocol you will either have to enable it on your cPanel or, in the worst-case scenario, change web host.
3. Use GZIP Compression
GZIP stands for GNU zip.
It’s a file format and a software application used for file compression and decompression. In a nutshell, it reduces the size of named files.
GZIP compression makes your web pages load faster by reducing the size of files by up to 90%.
Use the GZIP Compression tool to check if your website uses GZIP.
If not, you can either enable it on your server (via the cPanel) or you can use the Check and Enable GZIP Compression plugin.
4. Load Scripts Later
Another way to make your website faster is to load scripts as and when they are needed.
Instead of loading the entire web page in one go, your website only loads the files and scripts needed for that’s section of the page.
The scripts required for further down the page are only loaded once the user gets there.
This is called Lazy Loading.
Here’s an example of a Google PSI recommendation to use Lazy Loading to ‘defer offscreen images’:
5. Use Cloudflare Nameservers (free)
When you change your nameservers to Cloudflare’s nameservers (as I did) your website gets the benefit of Cloudflare’s global network of data centers.
Cloudflare has 165 data centers across the globe.
With Cloudflare nameservers, traffic to your website gets routed through the data center that is nearest to your visitor.
This results in much faster load times.
Here’s a video that walks you through the process of setting up Cloudflare nameservers:
Please note: changing your nameservers to Cloudflare does not mean changing your web host – your web host remains the same.
6. Use a Content Delivery Network (CDN)
A Content Delivery Network (CDN) is a global network of servers that delivers pages and other Web content to a user, based on the geographic location of the user.
Cloudflare is an example of a CDN.
Your website becomes much faster when you use a CDN because your visitor’s server accesses your content through a node that is much closer than your web host’s server.
I use StackPath as my CDN ($10 per month).
It shaved about 2 seconds off my website load time, as measured by Pingdom.
When you use a CDN, you’ll be able to see in the Pingdom results that a lot of your content is being delivered by the CDN (in this case StackPath):
Render-blocking occurs when your browser attempts to render a page and comes across a script that it has to execute before it can continue loading.
This increases the load time of your page.
8. Use a Cache Plugin
Cache plugins work by saving dynamically generated HTML files so they can be re-used instead loading them afresh with every page visit.
This means that whenever someone revisits your site, instead of having to load the PHP scripts from scratch, the files are served from the cache.
Examples of cache plugins are:
9. Reduce External Scripts
When your website has to call on external scripts to load a page, this can slow down your load time considerably.
Try to keep external scripts to a minimum.
Here are some examples of external scripts:
- YouTube video scripts
- Disqus comment box
- Social sharing buttons
- Live chat box
- Opt-in forms and pop-up forms
- Google Analytics
- Google Fonts
10. Install WP Disable
The WordPress platform can quickly get bloated with different ‘requests’.
These requests slow down the load time of your web pages.
The WP Disable plugin makes your website faster by disabling certain ‘requests’ such as:
- WooCommerce scripts and CSS
- Windows Live Writer tag
- Shortlink Tag
- WP API
- Heartbeat Control
The control panel allows you to choose which of these elements you want to disable.
11. Clean Your Database
Most performance optimization plugins have a database cleanup facility.
In Swift, it’s called ‘Database Optimization’.
The screenshot below shows the database items that can be deleted for faster load times:
12. Optimize Images
One of the most common causes of slow websites is images that haven’t been optimized.
For a fast loading website, your images should be no more than 100 kb.
Use Screaming Frog to do an audit of your site content. Set the image filter to ‘over 100 KB’ so you can identify the images that need to be optimized:
If you have a lot of images that need to be optimized, consider using a paid service such Kraken.
For a few dollars a month you’ll be able to do your image optimizing in batches.
And you’ll get a better compression rate than you get with the free services.
13. Upgrade Your Hosting
All the tips and tweaks mentioned in this article will be to no avail if your web host is slow.
Slow web hosting is usually caused by one of these two factors (or both):
- Your web host doesn’t have enough server resources, or
- Your web host crams too many websites on to the same server
If either of these conditions applies to your website, you’ll never achieve a load time of less than 2 seconds.
So, how do you know which web hosts are fast?
For many bloggers, like me, it’s simply a process of trial and error.
I started off with HostGator, then moved to Bluehost, and I’m now with SiteGround.
There are a number of sites that review the speed of web hosts.
But bear in mind that these sites are often making money through web host affiliate links.
And that immediately calls into question the objectivity of any advice they offer.
I can say through personal experience that SiteGround is the fastest web host I’ve ever been with.
SiteGround does well in various reviews:
BitCatcha rates SiteGround as No. 1 of the 6 fastest web hosting services for 2019.
14. Keep Your WP Plugins to a Minimum
All plugins have a drag effect on your website speed.
So, try to keep your plugins to less than 20.
I recently reduced my plugins from 40 (!!!) to 28 and I’m working on cutting it down further.
15. Choose the Right Plugins
Some plugins are known to be resource-hungry and will slow down your website more than others.
Find alternatives to these plugins (or better still, do without them altogether):
- WordPress Facebook plugin
- Contact Form 7
- The Divi Builder plugin
- Revolution Slider
- Any plugin that shows ‘related posts’ at the end of each article or blog post
- Essential Grid
- Disqus Comment System
- Broken Link Checker
- Wordfence Security
16. Make Sure WP Version is Up-To-Date
Running an out-of-date version of WordPress will make your website slower than it needs to be.
Check which version of WP you’re running in the ‘At a Glance’ panel in the WordPress dashboard:
17. Make Sure Your WP Plugins Are Up-To-Date
Likewise, running out-of-date versions of your plugins will also cause your site to load slower than it should.
So, make sure to update your plugins whenever you see an update notification.
There's a plugin to do that: Easy Updates Manager (just when you thought you had your plugins under control).
18. Load Your Favicon Directly Into Your Theme
Don't use a plugin to load your favicon.
Instead load your favicon directly into your theme:
19. Use Speed Optimization Plugins
Website speed optimization plugins typically do any (or all) of the following in an effort to speed up your website:
- Optimize image
- Lazy load images
- Minify HTML
- Early Loading
- Removal of trashed content (revisions, comments, duplicated metadata etc.)
- Removing expired transients
- Optimization of fonts
Here are some popular speed optimization plugins:
20. Use a Premium DNS Service
All web hosts provide free DNS hosting.
And that’s probably what you have at the moment.
But for a few dollars extra per month you can have premium DNS hosting.
Premium DNS hosting ensures minimal delay between the DNS lookup and time to first byte. It will reduce your server response time.
21. Remove Widgets from the Site-wide Sidebar/Footer
Do you have a bunch of widgets in your sidebar?
Maybe a search box, an opt-in form, a list of popular blog posts, a list of recent blog posts, a list of blog post categories, and so on?
My advice: remove them.
Those widgets all take time to load, adding precious milliseconds to your overall load time.
And here’s the thing: the sidebar, like the footer, is a site-wide element.
That means those widgets have to load on every single page across your site.
I had ‘blogrolls’ consisting of recent posts, pillar posts, and blog post categories. I also had a ‘search this site’ widget and an optin form.
And I got rid of all of it, except for the opt-in form.
It shaved 2 seconds off my load time.
22. Choose a Fast WordPress Theme
With the exception of the official WP theme, free WordPress themes are often poorly coded and therefore slow to load.
If you want your site to load fast, my advice is get a premium theme.
ColorLib tested more than 50 premium WP themes can came up with this list of the fastest-loading WP themes.
I was chuffed to see that my theme (MagazinePro) is one of them!
23. Optimize Your Homepage To Load Quickly
You can optimize your home page to load quickly by:
- Showing excerpts instead of full posts
- Reducing the number of blog posts on the homepage
- Choosing a smaller size for the featured images
As you can see from the screenshots below, I should probably choose a smaller format for my featured images:
24. Use Cookie-Free Domains
A cookie-free domain is a domain that serves no cookies.
Cookies are small packages of information that are transferred between your website and your visitor’s browser.
While cookies are a valuable way of tracking the performance of your website, most of your content doesn’t need to have cookies attached to it.
This content can be served to your visitors from a different domain, a cookie-free domain. And that’s yet another way of speeding up your websites load time.
Here’s an article on how to set up cookie-free domains.
25. Add Expires Headers
Expires headers are a piece of code that tells the visitor’s browser whether it needs to download a file or simply re-load it from its cache.
If your visitor has been to your website before, they already have certain files stored in their cache.
The idea behind ‘expires headers’ is that there’s no need to download files that your visitor's browser already downloaded the last time they were on your site.
‘Expires headers’ save time and make your web pages load faster.
To add ‘expires headers’ to your web pages, all you need to do is insert about 15 lines of code into your .htaccess file.
Here’s an article that shows you how to do it.
If you’d rather use a plugin, Far Future Expiry Header will insert the expires headers code for you.
26. Defer Unused CSS
In the Google Page Insights test you may see a recommendation to ‘defer unused CSS’.
Unused CSS clutters up your pages and makes them load slower.
You can remove the unused CSS manually, by following the instructions in this article.
Or you can use the Asset CleanUp: Page Speed Booster plugin. This plugin cleans up your code, creating faster-loading web pages.
27. Use Accelerated Mobile Pages (AMP)
Accelerated Mobile Pages or AMP is a Google-sponsored format that allows web pages to load fast on mobile devices.
When you enable AMP on your website, your pages are flagged in Google’s search results as being fast, with a little lightning icon:
One of the reasons AMP pages load so fast is that they reside on Google’s server, not yours.
In an article titled: Google AMP yields 600% increase on mobile site page load speed, Christine Chun reports that using Google AMP took a web page from a load time of 6 seconds to a load time of 1 second.
So, the simple act of enabling AMP within your WordPress site could dramatically increase the speed of your pages.
How do you enable AMP?
Download and install the Official AMP plugin for WordPress (not another plugin!)
When the plugin is activated, you’ll see a message in the editing screen of your blog posts that says “AMP: Enabled”:
People who manage to get their website load time to less than 2 seconds and a Google PSI score of more than 60 are currently seeing extraordinary growth in their Google organic traffic (the present author included).
So, take the time to implement some of these strategies and reduce your server response time – it’ll be worth it!
Of the strategies listed above, these are the ones that will give you most ‘bang for your buck’:
- Use a Content Delivery Network (CDN)
- Use Premium DNS servers
- Install and activate a cache plugin
- Remove WordPress plugins (aim for a maximum of 20 plugins)
- Remove most of the widgets from your sitewide sidebar
- Install and activate a speed optimization plugin such as Swift
- Upgrade your hosting to a faster plan or a faster host
As the world moves from desktop to mobile, server response time is becoming a critical ranking factor.
A time will come when only those websites that can deliver content to mobile users at lightning fast speed will get to rank on Page #1 of Google.
So get ahead of the curve and try to get your server response time to less than 2 seconds.
This post was most recently updated on July 4th, 2020