21 Ways to Speed Up Your WordPress Site by 80%

Having a slow-loading website sucks.

Not only does that hurt the user experience but it can also damage your rankings.

Did you know that Google penalizes slow-loading websites?

Though it’s not a high impact signal, it will hurt you in the long run to have a website that takes 10 seconds to load.

In this article, I am going to be teaching you what to look at when checking your website speed & how to improve your WordPress speed.

how to speed up wordpress site

How to Check Your Website Speed

One HUGE mistake that I had (and a lot of new website owners) made is thinking that their website is fast because it “feels” fast or it loads fast on their computer.

Trust me when I tell you that thinking that is the worse thing you can think of when regarding your site’s speed.

The reason for this is because of a little something called cache

Have you ever visited a site that may have loaded slowly when you first visited but loaded lighting fast the next time?

how to speed up wordpress site

That’s because modern web browsers store little bits of information when you land on a website (for example, cookies and no not the delicious kind) and caches them so that the next time the site can load quicker.

Considering that you logged into your website, it’s safe to say that you’ve already been on the site.

However, if you’re living in the UK, a person living in South America will have a completely different experience than you.

That’s why we recommend that you test your website using a speed test tool.

We recommend GTmetrix & Pingdom.

how to improve your WordPress speed

They are both free tools that you can use to get a better idea of how fast your site loads in different locations in the world.

As you can see the image above, our GTmetrix’s score is almost perfect (which unless you have a thin website - like the image below - then you will not get an ideal GTmetrix's score).

how to speed up wordpress site

We feel that a good loading site should take no longer than 2 seconds to load fully and we say this not without reason.

According to a study (ran by Bing’s search team), a site that takes longer than 2 seconds to load will see a reduction in:

  • User Satisfaction by 3.8%
  • Revenue in over 4%
  • Lastly, clicks by nearly 4.5%

Which can start to add up over time as your business generates more traffic and sales. 

John Mu (Webmaster Trends Analyst at Google) responded to a tweet in 2016 stating that he personally aims for a site to load in 2 - 3 seconds.

Basic Things That Can Slow a WordPress Website Down

WordPress is by far the best CMS (Content Management System) in our opinion. However, it isn’t perfect.

There are a few different things that can (and will) affect your website’s performance.

Some examples of this would be:

  • Your web hosting
  • Plugins
  • Mobile connection (from the user)
  • External scripts connected to your site (such as Google Fonts, Analytics, Social Media)
  • Page Size/Images & Video.

Web Hosting

Your web hosting provider (WHP) can hurt your site speed in a few different ways on its own. For example, if they don’t have good servers, then you should expect a slow website.

Another one is if you’re using shared hosting.

Shared hosting is where multiple websites are hosted on a single server. 

Taken from HostGator (one of the most popular WHP out there), here are some of the disadvantages of shared hosting:

  • The load time can be a lot slower than dedicated servers.
  • The server can become overburdened by other sites that are sharing the server.
  • As your site begins to receive higher levels of traffic, you’ll start to notice that your site might start to perform much worse.
  • You never quite know who your neighbours are. Although rare, it is possible for other sites on the server to pose a risk to your own website.
  • There’s a lack of customization options to truly get the highest level of performance from your website.

Plugins

how to speed up wordpress site

I am going to talk about Plugins and themes in this section because both of them can pretty much cause the same issues.

Plugins are extra features to make your WordPress website function better.

Themes are just like plugins except that it changes the look and feel of your website.

The main problem arises when these plugins and themes are coded poorly. 

Poorly written code can make your average website load much slower than it did before.

However, it doesn’t just have to be code like this that would be considered “poorly written.”

Here's an example taken from the badcode subreddit.

if (playerHealth > 20)
playerHealth20; //caps player hp at 20
hpDisplay.spritecurrentHP [0]:
else if (playerHealth < 20 && playerHealth >- 19)
else if (playerHealth < 19 && playerHealth >18)
else if (playerHealth < 18 && playerHealth >- 17) 
else if (playerHealth < 17 && playerHealth >- 16)
else if (playerHealth 16 && playerHealth 15)
else if (playerHealth < 15 && playerHealth >-14) 
hpDisplay.sprite-currentHP [1];
hpDisplay.sprite-currentHP [2]:
hpDisplay.spritecurrentHP [3]:
hpDisplay.sprite-currentHP [4]
hpDisplay.sprite-currentHP [5];
hpDisplay.sprite-currentHP [6];
hpDisplay. sprite = currentHP [7];
hpDisplay.spritecurrentHP [8]
hpDisplay. Sprite = currentHP [9];
hpDisplay.sprite-currentHP [10];
hpDisplay.spritecurrentHP [11];
hpDisplay.spritecurrentHP [12];
hpDisplay.spritecurrentHP [13];
hpDisplay.sprite-currentHP [14];
hpDisplay.spritecurrentHP [15];
hpDisplay. Sprite = currentHP [16];
hpDisplay.sprite-currentHP [17];
}

It could also be the fact that the plugin or theme that you’re using isn’t up-to-date.

Mobile Connection

I am going to keep this one short and sweet. 

When somebody lands on your website on his or her mobile phone, the speed at which it loads will is determined by your site’s speed & his or her connection to the internet.

Even though it’s not your fault for them having a slow connection, there is a way to increase your site’s speed for those users.

AMP (Accelerated Mobile Pages) is an on-going project ran by Google, and the goal of this project is to bring faster loading pages to the mobile users (in particular, those with a slow connection).

If your site is hand-coded, then I would advise you to check out ​these documents about AMP.

For those who are using WordPress, I’d advise you to either read through WPBegginer or Yoast’s guide on AMP.

External Scripts

External scripts can be super annoying, but they are needed. 

The main reason that external scripts are annoying is that you do not own those scripts meaning that you can’t optimise them to suit your website.

The best way to deal with external scripts to evaluate them. 

If you need them, then keep them, if not get rid of them.

Another type is to prefetch specific domains. 

Here is a list of external domains that I prefetch (make sure to leave out the HTTP section when doing this):

//d32676pi1p5sfe.cloudfront.net

//cdn.subscribers.com

//fonts.googleapis.com

//ajax.googleapis.com

//connect.facebook.net

//www.google-analytics.com

//www.googletagmanager.com

//maps.google.com

//ajax.cloudflare.com

//secure.gravatar.com

Page Size/Images & Videos

Again, I am going to be quick with this one because there isn’t much to tell you. Your images and videos are usually determined the size of your pages. 

That is because they are the most massive assets on your page.

For images, the solution would be to optimise all of your images. You can do this by either, manually optimizing your images or using an image optimizer.

I tend to use both methods.

If you want to use an image optimizer, here is an article discussing the best tools to use.

For videos, it’s advised that you NEVER host your own videos.

That is because videos are super massive assets which may not slow your website down if you have a single video, but will quickly slow down your site as you add more of them.

The solution here is too upload your videos to an external site (like YouTube, Vimeo, & Wistia) and embed them onto your page.

The Importance of a Fast Loading Site

According to Kissmetrics (which was bought out by Neil Patel), 47% of users expect your website to load in 2 seconds or less, and 40% of them will leave if it takes longer than 3 seconds to load.

That doesn’t give you much time to impress them and give them a reason to stick around.

In my personal experience, I usually only have about 10 - 20 seconds to impress new users.

I was hoping you could write down in the comment section how long you were going to wait before you decided to either leave or continue reading this article.

Those stats alone should prove to you how important site speed is to your business. 

If not, I’d advise you to take a seat for this next fact.

According to FastCompany, Amazon did a study in which they calculated that they would lose $1.6 billion each year for every second extra it took their website to load.

21 Ways to Speed Up Your WordPress

Now that I have gone over some of the essential things, it’s time to give you some actionable tips to take away.

You will want to remember that you need to run a few tests on your website first before optimizing your site because you don’t want to over-optimize it.

Tip 1: Understand how to choose a good hosting platform

The reason why this is at the top is not just because it’s the most basic tip. 

It’s also because it’s an essential tip.

It doesn’t matter how much optimization you do to your website if your core hosting is trash, your site’s loading time will also be.

There are many good hosting platforms out there that give you different abilities. 

For example, we are using WPX Hosting to run our website which allows us to have quick and helpful support (which is what I was looking for in a hosting platform).

Next up is InMotion Hosting. I haven’t used them myself. However, I have heard good things about them. 

One thing you will want to know is that you should go with the shared hosting package at all (unless necessary).

Your best choice would be going with the VPS option because it’s more stable and gives you extra abilities like being able to have full control over your servers.

Lastly, is one that I knew was good but didn’t know how good many people think it is, and that is SiteGround.

SiteGround is arguably the most popular choice for most web owners because it mixes price availability with speed.

Don’t believe how popular it is?

Just check out all the voting poles made about hosting platforms (on Facebook) and SiteGround will most likely be the top 3.

Tip 2: Choosing Your Caching Plugin

Next, is your caching plugin. 

Caching plugins store your website onto servers when a user visitors your site for the first time by doing that it makes your website load a lot faster the next time they visit.

At OutRankn, we use WP Rocket, however, since it’s a paid plugin, you might not want to get it.

I didn’t want to leave you hanging there, so I have made two separate tutorials, going through each setting for both plugins and showing you which settings we use and which we don’t and for what reason.

One other caching plugins that you might want to use are WP Fastest Cache.

Tip 3: Adding Cloudflare to Your Site’s Security

For those of you who have never heard of CloudFlare, it’s a security-based tool that also allows you to add SSL (or https://) to your website, and it can also do a little bit of caching on its own.

Plus, because of how many servers they have built up over the years, they are now a CDN [link to cdn wiki page] provider as well.

CloudFlare is free to use, so you can set your account up using this link.

If you’re still stuck, use Scott Hendison's guide below to help you set up your account.

Tip 4: Why You Should Use a CDN

I just mentioned that CloudFlare had started a CDN service of their own, but what is a CDN & why should you use one?

CDNs (or Content Delivery Networks) are a bunch of different servers around the world that allow you to store a cached version of your website to that server making your site load quicker for everybody around the world.

If your website is hosted in the UK, and a person from South America was to land on your website, it could still take a couple of seconds for your site to reach their servers (even if it’s cached).

By utilizing a CDN, your website would be stored in a server within South America, making the process smaller and in correlation, faster.

At the moment, we are using Amazon. However, you can use:

Out of all of those (not including Amazon, which we also recommend), we would recommend using MaxCDN the most.

Tip 5: Optimising Your Images

Other than your hosting, optimizing your images has to be one of the most significant impacts on your site speed (well images and videos).

If you’re not careful, you could end up with an article that has ten images that are all 1MB each which isn’t good for your website.

Like these satellite images.

There are a few different ways to optimize your images, and we recommend most if not all of them.

Manually

This option is the most tedious out of them all because you’d be manually optimize every single image. 

However, it’s essential that for individual images (I’d say any image of 1,000px wide if you’re blogging) you manually resize those images.

Best image optimization practices state that your images shouldn’t be any larger than what you’re going to display them at on the website.

how to speed up wordpress site

I would say that having your images slightly over the size you want to display them at (maybe up to 200px bigger) is no big issue.

WordPress Plugins

After manually resizing your images, you can optimize them even further by using image optimization plugins on WordPress.

Here are the four best ones (in my experience):

Each optimizer will optimize every image as soon as you upload it to your website.

They will optimize your image based on Lossy or Lossless compression.

Lossy compression will optimize your image as much as possible (even getting rid of some data in the original file).

However, you will lose some quality in your images.

That’s why we only recommend using lossy compression if you’re not a photographer.

If you’re are a photographer, I would suggest using lossless compression.

Why Affiliate Marketing Sucks

Resulted in a 8KB file size

As you may expect, lossless compression is similar to lossy (where your images will be optimized as much as possible) but only to the point where you’re about to lose quality in the images.

Again, this option is better for photographers.

PNG vs JPG

Here’s where many people tend to get a little confused. Which file extension should I be using for my images?

PNG, JPG, or GIF.

Well, unless you are uploading moving images, we don’t recommend using GIF at all.

For the other two, things can get complicated for some people.

Here’s what we recommend.

How to Speed Up WordPress Site

26 KB File Size (PNG)

If you’re uploading an image with a lot of text or if the image needs a transparent background, save the file as a PNG. 

Transparent backgrounds cannot be done with JPG files.

In addition to that, PNG files are a lossless format, meaning that your image won’t lose any of its quality.

How to Set Up a WordPress Blog

20 KB File Size (JPG)

If your images do not have much text in them or they don’t need a transparent background, save it as a JPG file. 

JPG is a lossy format extension meaning that you will lose some quality in your images, but it will make the file size smaller.

Tip 6: Lazy Load Your Images (If You Have/Want to Use a Lot of Images)

Now that you have optimized your images, you can “further” optimize them. 

I put further in quotes because you’re not optimizing them technically.

Lazy load is exactly how it sounds.

It’s the process of only loading the images above the fold (aka the content you see when you first land on a page) on initial load. 

The site will load the other images when it becomes visible in the viewport (your screen).

Considering that most of your images won’t be above the fold, this will improve your load time quite bit (this technique will improve your content pages more than a homepage).

We are using the lazyload setting in WP Rocket.

However, we’d recommend BJ Lazy Load as a free option.

Tip 7: Use PHP 7 Instead of PHP 5.6

I have a question for you all.

Why are only 35% of WordPress websites using PHP 7?

how to speed up wordpress site

Seriously, considering that version 7 of PHP gives quite a few benefits such as extra speed & facilitates error handling, more websites need to be using this newer version of PHP.

With my previous hosting my website was locked at PHP 5.6, and though it’s technically not a bad thing, it’s great to have more control over your site and have the option to choose which version of PHP you want to use.

A few different hosting that allows you to upgrade to PHP 7 is WPX Hosting, SiteGround, and A2 Hosting.

Tip 8: Create or Use a Theme Optimised for Speed

Most things on WordPress is optimized for speed, and to a certain extent, they do a pretty good job. 

However, they don’t do everything well. 

For example, WordPress was initially created for personal bloggers.

That means that websites that don’t focus on a blog (like BBC AmericaSony Music, & The Walking Dead) couldn’t use this platform.

how to speed up wordpress site

These days, programmers have been creating amazing themes that tailor to websites other than personal blogs.

The only downfall is that a lot of these themes aren’t optimized for speed.

So here are a few themes that I like (both free and premium) that help your website load faster.

Tip 9: Fix the Slowest Loading Pages

Even if you have a theme that is optimized for speed, you can still have some pages that are slower than others. 

There are many reasons for this (for example having more images to load), so you will need to use the speed test tools that I mentioned earlier to see what pages are loading slower than others.

how to speed up wordpress site

Once you have figured out which pages are the slowest and WHY they are loading slower, you can optimize those pages based on the suggestions given.

Tip 10: Try and Minimize The Number of Redirects

Redirects are important.

For example, I am currently merging my personal brand (AnthonyBcks) with OutRankn.

That means that I need to redirect every single page from anthonybcks.com to outrankn.com. (Type anthonybcks.com into your search bar to see what I mean).

Another example is if you change the URL of a page from www.example.com/our-services to www.example.com/services, you will need to redirect the first URL to the second URL using a 301 redirect.

The problem with redirects is that the more redirects that happen, the longer it takes for your website to load. Which is called a redirect chain.

Here is an example (---> = redirect):

www.1stexample.com ---> www.2ndexample.com ---> www.3rdexample.com = 5 seconds.

www.1stexample.com ---> www.3rdexample.com = 2 seconds.

As you can see, by minimizing the number of redirects you have, you can speed up your site’s loading time from one URL to another.

Here’s another example of how you should be redirecting your URLs:

www.1stexample.com ---> www.2ndexample.com ---> www.3rdexample.com = 5 seconds.

www.1stexample.com ---> www.3rdexample.com = 2 seconds.

www.2ndexample.com ---> www.3rdexample.com = 2 seconds.

The difference between the examples is that instead of redirecting website one over to website two and then finally redirecting that to website three.

It’s easier to redirect website one straight to website three.

Tip 11: Regularly Optimise Your WP Database

As time goes on, your website will grow.

Not through the amount of traffic you’re getting on a monthly basis.

By the amount of data it stores.

Every time a vision of your content is saved, it stays on your website until you delete it.

how to speed up wordpress site

So, if you don’t regularly remove those revisions, it can start to slow your site down.

That happens because WordPress would need to go through every version of your page to display the right one.

That’s why I recommend using WP-Optimize (free) or WP Rocket (paid) to delete all of the extra data stored on your website.

how to speed up wordpress site

When decided how often to clean your website, you should base it on how often you create new content. 

Since I create content 1 - 5 times a week, I like WP Rocket to clean my database once a week to once a day.

Tip 12: Never Host Videos on Your Own Site

When people realize that they can upload videos to their site, they get excited and usually ask themselves “why upload my videos to YouTube when I can upload it to my site?”

No?

I am the only one who thought that?

Right. Well, just in case you also thought that I am telling you not to do that.

Videos are usually the heaviest element on the page and uploading a ton of videos will not only cause your site to load slower but will also cause your site to use more power from your server.

That’s why it’s much better for you to upload your videos on a website like YouTube.

YouTube has the resources to handle many videos. 

They have more than enough resources to handle a shitload of videos, so much so that over 300 hours of video are uploaded every minute to YouTube.

Some other video-streaming sites you can use are Vimeo & Wistia.

Tip 13: Minify & Combine Files (Combining Files is Not Recommended for HTTP/2)

This tip is for somebody who has gone through all the other ones and still doesn’t see any improvements.

To read code more efficiently, programmers use best practices to keep their code as clean as possible.

They keep code clean but including whitespace (mainly by having one piece of code per line).

However, if you need your site to load as fast as possible, you can minify and even combine files. 

By minifying your files, your caching plugin will remove all of the whitespaces. 

So instead of having code like this:

.main-header-bar {

background: #f26f21;

}

.main-header-menu a {

color: #fff;

}

.main-header-menu a:hover {

color: #fff !important;

}

.main-header-menu>.menu-item>a {

color: #fff !important;

font-weight: 400;

}

It would look like this:

.main-header-bar {background: #f26f21;}.main-header-menu a {color: #fff;}.main-header-menu a:hover {color: #fff!important;}.main-header-menu>.menu-item>a {color: #fff !important;font-weight: 400;}

In addition to that, you can also combine files (however, WP Rocket recommends not to do that if you’re using HTTP/2)

If you decide to minify your files, make sure to check your website after you’ve implemented those changes to see if anything on the site broke.

Tip 14: Use GZIP Compression

Did you know that GZIP compression applies to your website as well as your files on your PC?

Remember that through your website looks different on the front-end, at the back-end, it’s just a bunch of files. 

Meaning that you can compress them to help make your site faster.

There are two main ways to implement GZIP compression to your site; I would recommend that you use the first option (even if you’re comfortable with code) because it’s faster and more convenient.

The first way is by using your caching plugin. Most of the popular caching plugins automatically add GZIP compression to your files.

The second way is by adding the snippet of code below to your .htaccess file.

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

Tip 15: Disable Hotlinking (If Your Site Gets a Decent Amount of Traffic)

Did you know that people can use your images?

I am guessing that you did, however, if you have images on a website, people can use the images on YOUR site on theirs.

That means that your servers CPU usage will go up significantly if enough people start using your images. 

Which sucks for you.

That’s why I recommend disabling hotlinking from your website.

There are two different ways to disable hotlinking from your website. The first is for those using Cloudflare. 

All you need to do is log in to your Cloudflare account and choose the website that you want to disable hotlinking.

how to speed up wordpress site

Then you can go to the Scrape Shield section and disable hotlinking.

I haven’t used any other tool for disabling hotlinking, so I don’t know how to use other tools to achieve that.

The only other way I know is by using your .htaccess file.

If you’d like to know more about disabling hotlinking, then you can check out this quick guide by DreamHost. If not, then you can copy the snippet code below.

(Make sure to change all the example.com to your website's URL).

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC] 
RewriteRule \.(gif|jpg)$ http://www.example.com/hotlink.gif [R,L]

Tip 16: Split Your Comments into Pages

If you have an audience that likes to engage with your content, you will notice that comments will start to make your pages very long.

If you click this link, you will be taken to a review on my previous host (from the perspective of the owner), and even though this page has 2,000 words, there are over 700 comments.

Nobody is going to read through all of that.

how to speed up wordpress site

Again if your content pages are loading slower than other pages, it could be helpful to split your comments into pages.

For WordPress users, you can go to the discussion section in your settings and check the “break comments into pages” option.

Settings -> Discussions -> “Break Comments into Pages”

Tip 17: Also Split Your Articles into Pages (If They are Over 10,000 words)

If you read our content, then it's clear that you like to read long-form content.

Usually, longer pieces of content tend to perform better in the search engines.

However, as we mentioned earlier, the more images and video on your page (which is more likely to happen with longer content) can slow down your page a little bit.

That’s why a great tactic is to paginate your content.

Moz is an excellent example of this with their guide on SEO.

how to speed up wordpress site

As you can see, instead of publishing one 30,000 word article for SEO, they split it into ten different posts.

That helps them rank for a ton of different keywords that are related to SEO.

I don’t usually do this because our content doesn’t often go over 7,000 words but if they do, I would start thinking about paginating the article.

If it’s something that you feel you need to do (for both performance and SEO purposes), then you can add <!--nextpage→> wherever you want to split your article to a new page.

If that isn’t working then add this code to your single.php file. 

“<?php wp_link_pages(); ?>”

Tip 18: Minimize the HTTP Requests

We touched on external scripts, CSS files, and other resources earlier and how they can affect your site speed.

It’s mandatory to have at least a few (for example Google Analytics) but having too many is a bad thing.

To keep this one short and sweet, I will refer you to WPBegginer’s excellent guide on how to minimize HTTP requests by disabling plugin files that are not needed on any particular page.

Tip 19: Try Not to Use Plugins That Require High CPU Usage

I want to keep this one short and sweet so that you can go through the list below. Having plugins that require a lot of usage from your CPU can be a bad thing.

So if you are using any of the following plugins, you might want to try and find an alternative.

  • Divi Builder (Use Thrive Architect or Elementor
  • WordPress Facebook
  • WordPress Related Posts
  • Disqus Comment System
  • Google XML Sitemaps (use Yoast instead)
  • Sumo

Tip 20: Delete All Plugins That Aren’t Being Used

I have gone through a couple of websites over the years that have plugins that aren’t used.

Did you know that the JS and CSS files for every plugin and theme will load for every page on your WordPress site?

I only found that out after using Asset CleanUp: Page Speed Booster.

That also includes plugins and themes that you are not using.

Instead of keeping them on your site in case you need them, delete them and only install them when it’s necessary.

how to speed up wordpress site

For example, when something on my site breaks, I like to use Plugin Detective which helps me pinpoint which plugin is causing the issue.

However, I only use the plugin 0.01% of the time which is why I uninstall it whenever I don’t need it.

Tip 21: Host Your Google Analytic Scripts Locally

Though this is a low-impact change regarding your site speed, I would always recommend that you try to host your analytic scripts locally, because it’s more convenient for you.

It’s not something that 100% has to be done to speed your website up by 300%. 

However, it can help.

Disclaimer: You may see a quote from Google stating NOT to host your analytics locally if you want to keep your reports accurate. I want to say that isn’t true.

What they mean by that is if you host your analytic scripts locally, then you will need to update your scripts whenever they update them instead of it automatically updating.

If you use WP Rocket, you can go to your settings and enable the local tracking in the add-ons section.

WP Admin ---> Settings ---> WP Rocket ---> Add Ons

If you’re not using WP Rocket, you can use CAOS | Host Google Analytics Locally, or you can add your scripts yourself.

Conclusion

That’s it!

After you have found out which of these tips apply to your website and you’ve optimized it correctly, your site’s load time should be better than it was before.

If you have optimized your site, let us know your new loading times below. 

We’d like to know just how much your site has improved based on our recommendations.

Also, if you liked this guide, share it on social media. If you benefited from it, then I am sure your followers will too.

For those of you who aren’t confident with implementing these tips or you don’t have the time, then you can contact us, and we can offer you our WordPress performance service.



Though it’s not a high impact signal, it will hurt you in the long run to have a website that takes 10 seconds to load.

In this article, I am going to be teaching you what to look at when checking your website speed & how to improve your WordPress speed.

how to speed up wordpress site

How to Check Your Website Speed

One HUGE mistake that I had (and a lot of new website owners) made is thinking that their website is fast because it “feels” fast or it loads fast on their computer.

Trust me when I tell you that thinking that is the worse thing you can think of when regarding your site’s speed.

The reason for this is because of a little something called cache.

Have you ever visited a site that may have loaded slowly when you first visited but loaded lighting fast the next time?

how to speed up wordpress site

That’s because modern web browsers store little bits of information when you land on a website (for example, cookies and no not the delicious kind) and caches them so that the next time the site can load quicker.

Considering that you logged into your website, it’s safe to say that you’ve already been on the site.

However, if you’re living in the UK, a person living in South America will have a completely different experience than you.

That’s why we recommend that you test your website using a speed test tool.

We recommend GTmetrix & Pingdom.

how to improve your WordPress speed

They are both free tools that you can use to get a better idea of how fast your site loads in different locations in the world.

As you can see the image above, our GTmetrix’s score is almost perfect (which unless you have a thin website - like the image below - then you will not get a perfect GTmetrix's score).

how to speed up wordpress site

We feel that a good loading site should take no longer than 2 seconds to load fully and we say this not without reason.

According to a study (ran by Bing’s search team), a site that takes longer than 2 seconds to load will see a reduction in:

  • User Satisfaction by 3.8%
  • Revenue in over 4%
  • Lastly, clicks by nearly 4.5%

Which can start to add up over time as your business generates more traffic and sales. 

John Mu (Webmaster Trends Analyst at Google) responded to a tweet in 2016 stating that he personally aims for a site to load in 2 - 3 seconds.

Basic Things That Can Slow a WordPress Website Down

WordPress is by far the best CMS (Content Management System) in our opinion. However, it isn’t perfect.

There are a few different things that can (and will) affect your website’s performance.

Some examples of this would be:

  • Your web hosting
  • Plugins
  • Mobile connection (from the user)
  • External scripts connected to your site (such as Google Fonts, Analytics, Social Media)
  • Page Size/Images & Video.

Web Hosting

Your web hosting provider (WHP) can hurt your site speed in a few different ways on its own. For example, if they don’t have good servers, then you should expect a slow website.

Another one is if you’re using shared hosting.

Shared hosting is where multiple websites are hosted on a single server.

Taken from HostGator (one of the most popular WHP out there), here are some of the disadvantages of shared hosting:

  • The load time can be a lot slower than dedicated servers.
  • The server can become overburdened by other sites that are sharing the server.
  • As your site begins to receive higher levels of traffic, you’ll start to notice that your site might start to perform much worse.
  • You never quite know who your neighbours are. Although rare, it is possible for other sites on the server to pose a risk to your own website.
  • There’s a lack of customization options to truly get the highest level of performance from your website.

Plugins

how to speed up wordpress site

I am going to talk about Plugins and themes in this section because both of them can pretty much cause the same issues.

Plugins are extra features to make your WordPress website function better.

Themes are just like plugins except that it changes the look and feel of your website.

The main problem arises when these plugins and themes are coded poorly.

Poorly written code can make your average website load much slower than it did before.

However, it doesn’t just have to be code like this that would be considered “poorly written.”

Here's an example taken from the badcode subreddit.

if (playerHealth > 20)
playerHealth20; //caps player hp at 20
hpDisplay.spritecurrentHP [0]:
else if (playerHealth < 20 && playerHealth >- 19)
else if (playerHealth < 19 && playerHealth >18)
else if (playerHealth < 18 && playerHealth >- 17)
else if (playerHealth < 17 && playerHealth >- 16)
else if (playerHealth 16 && playerHealth 15)
else if (playerHealth < 15 && playerHealth >-14)
hpDisplay.sprite-currentHP [1];
hpDisplay.sprite-currentHP [2]:
hpDisplay.spritecurrentHP [3]:
hpDisplay.sprite-currentHP [4]
hpDisplay.sprite-currentHP [5];
hpDisplay.sprite-currentHP [6];
hpDisplay. sprite = currentHP [7];
hpDisplay.spritecurrentHP [8]
hpDisplay. Sprite = currentHP [9];
hpDisplay.sprite-currentHP [10];
hpDisplay.spritecurrentHP [11];
hpDisplay.spritecurrentHP [12];
hpDisplay.spritecurrentHP [13];
hpDisplay.sprite-currentHP [14];
hpDisplay.spritecurrentHP [15];
hpDisplay. Sprite = currentHP [16];
hpDisplay.sprite-currentHP [17];
}

It could also be the fact that the plugin or theme that you’re using isn’t up-to-date.

Mobile Connection

I am going to keep this one short and sweet.

When somebody lands on your website on his or her mobile phone, the speed at which it loads will is determined by your site’s speed & his or her connection to the internet.

Even though it’s not your fault for them having a slow connection, there is a way to increase your site’s speed for those users.

AMP (Accelerated Mobile Pages) is an on-going project ran by Google, and the goal of this project is to bring faster loading pages to the mobile users (in particular, those with a slow connection).

If your site is hand-coded, then I would advise you to check out ​these documents about AMP.

For those who are using WordPress, I’d advise you to either read through WPBegginer or Yoast’s guide on AMP.

External Scripts

External scripts can be super annoying, but they are needed.

The main reason that external scripts are annoying is that you do not own those scripts meaning that you can’t optimise them to suit your website.

The best way to deal with external scripts to evaluate them.

If you need them, then keep them, if not get rid of them.

Another type is to prefetch specific domains.

Here is a list of external domains that I prefetch (make sure to leave out the HTTP section when doing this):

//d32676pi1p5sfe.cloudfront.net

//cdn.subscribers.com

//fonts.googleapis.com

//ajax.googleapis.com

//connect.facebook.net

//www.google-analytics.com

//www.googletagmanager.com

//maps.google.com

//ajax.cloudflare.com

//secure.gravatar.com

Page Size/Images & Videos

Again, I am going to be quick with this one because there isn’t much to tell you. Your images and videos are usually determined the size of your pages.

That is because they are the most massive assets on your page.

For images, the solution would be to optimise all of your images. You can do this by either, manually optimizing your images or using an image optimizer.

I tend to use both methods.

If you want to use an image optimizer, here is an article discussing the best tools to use.

For videos, it’s advised that you NEVER host your own videos.

That is because videos are super massive assets which may not slow your website down if you have a single video, but will quickly slow down your site as you add more of them.

The solution here is too upload your videos to an external site (like YouTube, Vimeo, & Wistia) and embed them onto your page.

The Importance of a Fast Loading Site

According to Kissmetrics (which was bought out by Neil Patel), 47% of users expect your website to load in 2 seconds or less, and 40% of them will leave if it takes longer than 3 seconds to load.

That doesn’t give you much time to impress them and give them a reason to stick around.

In my personal experience, I usually only have about 10 - 20 seconds to impress new users.

I was hoping you could write down in the comment section how long you were going to wait before you decided to either leave or continue reading this article.

Those stats alone should prove to you how important site speed is to your business.

If not, I’d advise you to take a seat for this next fact.

According to FastCompany, Amazon did a study in which they calculated that they would lose $1.6 billion each year for every second extra it took their website to load.

21 Ways to Speed Up Your WordPress

Now that I have gone over some of the essential things, it’s time to give you some actionable tips to take away.

You will want to remember that you need to run a few tests on your website first before optimizing your site because you don’t want to over-optimize it.

Tip 1: Understand how to choose a good hosting platform

The reason why this is at the top is not just because it’s the most basic tip.

It’s also because it’s an essential tip.

It doesn’t matter how much optimization you do to your website if your core hosting is trash, your site’s loading time will also be.

There are many good hosting platforms out there that give you different abilities.

For example, we are using WPX Hosting to run our website which allows us to have quick and helpful support (which is what I was looking for in a hosting platform).

Next up is InMotion Hosting. I haven’t used them myself. However, I have heard good things about them.

One thing you will want to know is that you should go with the shared hosting package at all (unless necessary).

Your best choice would be going with the VPS option because it’s more stable and gives you extra abilities like being able to have full control over your servers.

Lastly, is one that I knew was good but didn’t know how good many people think it is, and that is SiteGround.

SiteGround is arguably the most popular choice for most web owners because it mixes price availability with speed.

Don’t believe how popular it is?

Just check out all the voting poles made about hosting platforms (on Facebook) and SiteGround will most likely be the top 3.

Tip 2: Choosing Your Caching Plugin

Next, is your caching plugin.

Caching plugins store your website onto servers when a user visitors your site for the first time by doing that it makes your website load a lot faster the next time they visit.

At OutRankn, we use WP Rocket, however, since it’s a paid plugin, you might not want to get it.

I didn’t want to leave you hanging there, so I have made two separate tutorials, going through each setting for both plugins and showing you which settings we use and which we don’t and for what reason.

One other caching plugins that you might want to use are WP Fastest Cache.

Tip 3: Adding Cloudflare to Your Site’s Security

For those of you who have never heard of CloudFlare, it’s a security-based tool that also allows you to add SSL (or https://) to your website, and it can also do a little bit of caching on its own.

Plus, because of how many servers they have built up over the years, they are now a CDN [link to cdn wiki page] provider as well.

CloudFlare is free to use, so you can set your account up using this link.

If you’re still stuck, use Scott Hendison's guide below to help you set up your account.

Tip 4: Why You Should Use a CDN

I just mentioned that CloudFlare had started a CDN service of their own, but what is a CDN & why should you use one?

CDNs (or Content Delivery Networks) are a bunch of different servers around the world that allow you to store a cached version of your website to that server making your site load quicker for everybody around the world.

If your website is hosted in the UK, and a person from South America was to land on your website, it could still take a couple of seconds for your site to reach their servers (even if it’s cached).

By utilizing a CDN, your website would be stored in a server within South America, making the process smaller and in correlation, faster.

At the moment, we are using Amazon. However, you can use:

Out of all of those (not including Amazon, which we also recommend), we would recommend using MaxCDN the most.

Tip 5: Optimising Your Images

Other than your hosting, optimizing your images has to be one of the most significant impacts on your site speed (well images and videos).

If you’re not careful, you could end up with an article that has ten images that are all 1MB each which isn’t good for your website.

Like these satellite images.

There are a few different ways to optimize your images, and we recommend most if not all of them.

Manually

This option is the most tedious out of them all because you’d be manually optimize every single image.

However, it’s essential that for individual images (I’d say any image of 1,000px wide if you’re blogging) you manually resize those images.

Best image optimization practices state that your images shouldn’t be any larger than what you’re going to display them at on the website.

how to speed up wordpress site

I would say that having your images slightly over the size you want to display them at (maybe up to 200px bigger) is no big issue.

WordPress Plugins

After manually resizing your images, you can optimize them even further by using image optimization plugins on WordPress.

Here are the four best ones (in my experience):

Each optimizer will optimize every image as soon as you upload it to your website.

They will optimize your image based on Lossy or Lossless compression.

Lossy compression will optimize your image as much as possible (even getting rid of some data in the original file).

However, you will lose some quality in your images.

That’s why we only recommend using lossy compression if you’re not a photographer.

If you’re are a photographer, I would suggest using lossless compression.

Why Affiliate Marketing Sucks

Resulted in a 8KB file size

As you may expect, lossless compression is similar to lossy (where your images will be optimized as much as possible) but only to the point where you’re about to lose quality in the images.

Again, this option is better for photographers.

PNG vs JPG

Here’s where many people tend to get a little confused. Which file extension should I be using for my images?

PNG, JPG, or GIF.

Well, unless you are uploading moving images, we don’t recommend using GIF at all.

For the other two, things can get complicated for some people.

Here’s what we recommend.

How to Speed Up WordPress Site

26 KB File Size (PNG)

If you’re uploading an image with a lot of text or if the image needs a transparent background, save the file as a PNG.

Transparent backgrounds cannot be done with JPG files.

In addition to that, PNG files are a lossless format, meaning that your image won’t lose any of its quality.

How to Set Up a WordPress Blog

20 KB File Size (JPG)

If your images do not have much text in them or they don’t need a transparent background, save it as a JPG file.

JPG is a lossy format extension meaning that you will lose some quality in your images, but it will make the file size smaller.

Tip 6: Lazy Load Your Images (If You Have/Want to Use a Lot of Images)

Now that you have optimized your images, you can “further” optimize them.

I put further in quotes because you’re not optimizing them technically.

Lazy load is exactly how it sounds.

It’s the process of only loading the images above the fold (aka the content you see when you first land on a page) on initial load.

The site will load the other images when it becomes visible in the viewport (your screen).

Considering that most of your images won’t be above the fold, this will improve your load time quite bit (this technique will improve your content pages more than a homepage).

We are using the lazyload setting in WP Rocket.

However, we’d recommend BJ Lazy Load as a free option.

Tip 7: Use PHP 7 Instead of PHP 5.6

I have a question for you all.

Why are only 35% of WordPress websites using PHP 7?

how to speed up wordpress site

Seriously, considering that version 7 of PHP gives quite a few benefits such as extra speed & facilitates error handling, more websites need to be using this newer version of PHP.

With my previous hosting my website was locked at PHP 5.6, and though it’s technically not a bad thing, it’s great to have more control over your site and have the option to choose which version of PHP you want to use.

A few different hosting that allows you to upgrade to PHP 7 is WPX Hosting, SiteGround, and A2 Hosting.

Tip 8: Create or Use a Theme Optimised for Speed

Most things on WordPress is optimized for speed, and to a certain extent, they do a pretty good job.

However, they don’t do everything well.

For example, WordPress was initially created for personal bloggers.

That means that websites that don’t focus on a blog (like BBC America, Sony Music, & The Walking Dead) couldn’t use this platform.

how to speed up wordpress site

These days, programmers have been creating amazing themes that tailor to websites other than personal blogs.

The only downfall is that a lot of these themes aren’t optimized for speed.

So here are a few themes that I like (both free and premium) that help your website load faster.

Tip 9: Fix the Slowest Loading Pages

Even if you have a theme that is optimized for speed, you can still have some pages that are slower than others.

There are many reasons for this (for example having more images to load), so you will need to use the speed test tools that I mentioned earlier to see what pages are loading slower than others.

how to speed up wordpress site

Once you have figured out which pages are the slowest and WHY they are loading slower, you can optimize those pages based on the suggestions given.

Tip 10: Try and Minimize The Number of Redirects

Redirects are important.

For example, I am currently merging my personal brand (AnthonyBcks) with OutRankn.

That means that I need to redirect every single page from anthonybcks.com to outrankn.com. (Type anthonybcks.com into your search bar to see what I mean).

Another example is if you change the URL of a page from www.example.com/our-services to www.example.com/services, you will need to redirect the first URL to the second URL using a 301 redirect.

The problem with redirects is that the more redirects that happen, the longer it takes for your website to load. Which is called a redirect chain.

Here is an example (---> = redirect):

www.1stexample.com ---> www.2ndexample.com ---> www.3rdexample.com = 5 seconds.

www.1stexample.com ---> www.3rdexample.com = 2 seconds.

As you can see, by minimizing the number of redirects you have, you can speed up your site’s loading time from one URL to another.

Here’s another example of how you should be redirecting your URLs:

www.1stexample.com ---> www.2ndexample.com ---> www.3rdexample.com = 5 seconds.

www.1stexample.com ---> www.3rdexample.com = 2 seconds.

www.2ndexample.com ---> www.3rdexample.com = 2 seconds.

The difference between the examples is that instead of redirecting website one over to website two and then finally redirecting that to website three.

It’s easier to redirect website one straight to website three.

Tip 11: Regularly Optimise Your WP Database

As time goes on, your website will grow.

Not through the amount of traffic you’re getting on a monthly basis.

By the amount of data it stores.

Every time a vision of your content is saved, it stays on your website until you delete it.

how to speed up wordpress site

So, if you don’t regularly remove those revisions, it can start to slow your site down.

That happens because WordPress would need to go through every version of your page to display the right one.

That’s why I recommend using WP-Optimize (free) or WP Rocket (paid) to delete all of the extra data stored on your website.

how to speed up wordpress site

When decided how often to clean your website, you should base it on how often you create new content.

Since I create content 1 - 5 times a week, I like WP Rocket to clean my database once a week to once a day.

Tip 12: Never Host Videos on Your Own Site

When people realize that they can upload videos to their site, they get excited and usually ask themselves “why upload my videos to YouTube when I can upload it to my site?”

No?

I am the only one who thought that?

Right. Well, just in case you also thought that I am telling you not to do that.

Videos are usually the heaviest element on the page and uploading a ton of videos will not only cause your site to load slower but will also cause your site to use more power from your server.

That’s why it’s much better for you to upload your videos on a website like YouTube.

YouTube has the resources to handle many videos.

They have more than enough resources to handle a shitload of videos, so much so that over 300 hours of video are uploaded every minute to YouTube.

Some other video-streaming sites you can use are Vimeo & Wistia.

Tip 13: Minify & Combine Files (Combining Files is Not Recommended for HTTP/2)

This tip is for somebody who has gone through all the other ones and still doesn’t see any improvements.

To read code more efficiently, programmers use best practices to keep their code as clean as possible.

They keep code clean but including whitespace (mainly by having one piece of code per line).

However, if you need your site to load as fast as possible, you can minify and even combine files.

By minifying your files, your caching plugin will remove all of the whitespaces.

So instead of having code like this:

.main-header-bar {

background: #f26f21;

}

.main-header-menu a {

color: #fff;

}

.main-header-menu a:hover {

color: #fff !important;

}

.main-header-menu>.menu-item>a {

color: #fff !important;

font-weight: 400;

}

It would look like this:

.main-header-bar {background: #f26f21;}.main-header-menu a {color: #fff;}.main-header-menu a:hover {color: #fff!important;}.main-header-menu>.menu-item>a {color: #fff !important;font-weight: 400;}

In addition to that, you can also combine files (however, WP Rocket recommends not to do that if you’re using HTTP/2)

If you decide to minify your files, make sure to check your website after you’ve implemented those changes to see if anything on the site broke.

Tip 14: Use GZIP Compression

Did you know that GZIP compression applies to your website as well as your files on your PC?

Remember that through your website looks different on the front-end, at the back-end, it’s just a bunch of files.

Meaning that you can compress them to help make your site faster.

There are two main ways to implement GZIP compression to your site; I would recommend that you use the first option (even if you’re comfortable with code) because it’s faster and more convenient.

The first way is by using your caching plugin. Most of the popular caching plugins automatically add GZIP compression to your files.

The second way is by adding the snippet of code below to your .htaccess file.

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

Tip 15: Disable Hotlinking (If Your Site Gets a Decent Amount of Traffic)

Did you know that people can use your images?

I am guessing that you did, however, if you have images on a website, people can use the images on YOUR site on theirs.

That means that your servers CPU usage will go up significantly if enough people start using your images.

Which sucks for you.

That’s why I recommend disabling hotlinking from your website.

There are two different ways to disable hotlinking from your website. The first is for those using Cloudflare.

All you need to do is log in to your Cloudflare account and choose the website that you want to disable hotlinking.

how to speed up wordpress site

Then you can go to the Scrape Shield section and disable hotlinking.

I haven’t used any other tool for disabling hotlinking, so I don’t know how to use other tools to achieve that.

The only other way I know is by using your .htaccess file.

If you’d like to know more about disabling hotlinking, then you can check out this quick guide by DreamHost. If not, then you can copy the snippet code below.

(Make sure to change all the example.com to your website's URL).

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.example.com/hotlink.gif [R,L]

Tip 16: Split Your Comments into Pages

If you have an audience that likes to engage with your content, you will notice that comments will start to make your pages very long.

If you click this link, you will be taken to a review on my previous host (from the perspective of the owner), and even though this page has 2,000 words, there are over 700 comments.

Nobody is going to read through all of that.

how to speed up wordpress site

Again if your content pages are loading slower than other pages, it could be helpful to split your comments into pages.

For WordPress users, you can go to the discussion section in your settings and check the “break comments into pages” option.

Settings -> Discussions -> “Break Comments into Pages”

Tip 17: Also Split Your Articles into Pages (If They are Over 10,000 words)

If you read our content, then it's clear that you like to read long-form content.

Usually, longer pieces of content tend to perform better in the search engines.

However, as we mentioned earlier, the more images and video on your page (which is more likely to happen with longer content) can slow down your page a little bit.

That’s why a great tactic is to paginate your content.

Moz is an excellent example of this with their guide on SEO.

how to speed up wordpress site

As you can see, instead of publishing one 30,000 word article for SEO, they split it into ten different posts.

That helps them rank for a ton of different keywords that are related to SEO.

I don’t usually do this because our content doesn’t often go over 7,000 words but if they do, I would start thinking about paginating the article.

If it’s something that you feel you need to do (for both performance and SEO purposes), then you can add <!--nextpage→> wherever you want to split your article to a new page.

If that isn’t working then add this code to your single.php file.

“<?php wp_link_pages(); ?>”

Tip 18: Minimize the HTTP Requests

We touched on external scripts, CSS files, and other resources earlier and how they can affect your site speed.

It’s mandatory to have at least a few (for example Google Analytics) but having too many is a bad thing.

To keep this one short and sweet, I will refer you to WPBegginer’s excellent guide on how to minimize HTTP requests by disabling plugin files that are not needed on any particular page.

Tip 19: Try Not to Use Plugins That Require High CPU Usage

I want to keep this one short and sweet so that you can go through the list below. Having plugins that require a lot of usage from your CPU can be a bad thing.

So if you are using any of the following plugins, you might want to try and find an alternative.

  • Divi Builder (Use Thrive Architect or Elementor
  • WordPress Facebook
  • WordPress Related Posts
  • Disqus Comment System
  • Google XML Sitemaps (use Yoast instead)
  • Sumo

Tip 20: Delete All Plugins That Aren’t Being Used

I have gone through a couple of websites over the years that have plugins that aren’t used.

Did you know that the JS and CSS files for every plugin and theme will load for every page on your WordPress site?

I only found that out after using Asset CleanUp: Page Speed Booster.

That also includes plugins and themes that you are not using.

Instead of keeping them on your site in case you need them, delete them and only install them when it’s necessary.

how to speed up wordpress site

For example, when something on my site breaks, I like to use Plugin Detective which helps me pinpoint which plugin is causing the issue.

However, I only use the plugin 0.01% of the time which is why I uninstall it whenever I don’t need it.

Tip 21: Host Your Google Analytic Scripts Locally

Though this is a low-impact change regarding your site speed, I would always recommend that you try to host your analytic scripts locally, because it’s more convenient for you.

It’s not something that 100% has to be done to speed your website up by 300%.

However, it can help.

Disclaimer: You may see a quote from Google stating NOT to host your analytics locally if you want to keep your reports accurate. I want to say that isn’t true.

What they mean by that is if you host your analytic scripts locally, then you will need to update your scripts whenever they update them instead of it automatically updating.

If you use WP Rocket, you can go to your settings and enable the local tracking in the add-ons section.

WP Admin ---> Settings ---> WP Rocket ---> Add Ons

If you’re not using WP Rocket, you can use CAOS | Host Google Analytics Locally, or you can add your scripts yourself.

Conclusion

That’s it!

After you have found out which of these tips apply to your website and you’ve optimized it correctly, your site’s load time should be better than it was before.

If you have optimized your site, let us know your new loading times below.

We’d like to know just how much your site has improved based on our recommendations.

Also, if you liked this guide, share it on social media. If you benefited from it, then I am sure your followers will too.

For those of you who aren’t confident with implementing these tips or you don’t have the time, then you can contact us, and we can offer you our WordPress performance service.

Get Your First 5,000 Visitors

Considering that only there are only 10 spots on page 1, I am sure that most of you are wondering how to rank your website at the top of Google. Click the button below to get exclusive SEO tips on how to build a website to 5,000 monthly visitors.