Speed up WordPress – Your Complete Optimization Guide

WordPress is a very powerful and popular Content Management System (CMS). It currently powers over 36% of all the sites on the internet. That means every one in three sites that you visit is most likely running WordPress. Sites like EA, CBN, ESPN, and even The White House, all use WordPress to power their sites.

I personally think WordPress is the best solution for business owners and even enterprise sites when it comes to simplifying the online marketing of their website.

A Slow Website

Even though WordPress is super popular it can also come with a price. And that price is web performance. Originally WordPress was created as a blogging platform. But it has evolved into much more than that. With that evolution comes the need for more functionality. And with so many different configurations out there WordPress can run quite slow if not set up correctly. 🐌

A slow website will always be very detrimental to a visitor’s experience. It can play a major factor in your bounce and conversion rates. The days of dial-up are long gone and people don’t have the patience they used to. If they’re stuck on a page waiting for 5 seconds, they’re most likely going to hit the back button and pick the next search engine result to find what they’re looking for.

In my experience, a recommended website load time is 1.5 seconds or less. If your website takes longer than this then you’ve probably got some optimization that can be done. In fact, Google has stated that mobile page speed is a ranking factor. This means it can have an impact on your site’s SEO.

The first thing you should do right now is testing your WordPress site’s speed. This will give you a benchmark for starting out. I recommend the free Pingdom speed test tool. Due to caching and CDNs, make sure to run the test at least three times to get a proper result.

Pingdom website speed test
Pingdom website speed test

Speed up WordPress

In this post, I want to cover, step by step, exactly how I configure all my WordPress sites and how you can easily achieve speeds of under 500ms load times.

A little bit about me. I have spent over 10 years using WordPress and currently work for Kinsta, a high-performance managed WordPress hosting company. Previous to this, I worked for KeyCDN, a global content delivery network. I have spent thousands of hours optimizing WordPress sites to ensure that they are running at optimal performance. As an internet marketer, WordPress has helped me achieve amazing things and it can also help you! Just follow the steps below to instantly speed up WordPress.

I promise you, no matter what your background or level of expertise, you will find something in my post that is useful.

  1. Fast WordPress Hosting
  2. Content Delivery Network (CDN)
  3. Utilize the Perfmatters Plugin
  4. Optimize Database
  5. Lightweight WordPress Theme
  6. Get Rid of Plugins
  7. Compressing Images
  8. Take CSS to Bare Minimum
  9. Change Web Fonts
  10. WordPress Caching
  11. Tweak Google Analytics
  12. Speed Test Results
  13. Get a Web Performance Audit
  14. Additional Speed Up WordPress Tips

1. Fast WordPress Hosting

One of the easiest and most important ways to speed up WordPress is to start with a solid foundation. And that means picking a reliable and fast WordPress host. 👍 This by far plays the biggest factor in your overall page load times.

If you’re on a small website, you’re most likely on a cheap shared web hosting plan. The name of the plan itself really defines what it is. The term “shared” means that your website is hosted on a server along with a lot of other people’s websites. This means they are all fighting over the same resources.

I’m sure you see guys all the time advertising BlueHost hosting. Unfortunately, a lot of those sites are run by affiliate marketers simply trying to make a quick buck. And most of the time the affiliate marketer doesn’t actually use them, they simply refer people to them. Picking a host like BlueHost is one of the worst decisions you could ever make when it comes to hosting your website. Did you know that BlueHost is owned by EIG? EIG is a corporation that has been buying up all the crappy hosts. Here is a full list of hosts owned by EIG. You can pretty much expect the same horrible service from all of them.

While it is true that I am an affiliate marketer, my passion for web performance has always trumped that. That is why I will only be referring you to web hosting providers that I currently use for my websites. Having a superior web hosting provider means that you don’t have to worry about downtime or speed. Below are two WordPress hosting providers that I stand behind 100%.

Option 1 – Affordable WordPress Hosting – SiteGround

If you are looking for more affordable WordPress hosting, I highly recommend SiteGround. They offer shared hosting with HTTP/2, PHP 7, SSD and tons of other features starting at only $3.95 a month! This is about as good as it gets for shared hosting folks. Make sure to check out our in-depth SiteGround review.

SiteGround is great if you need a cheap host that still has some of the latest features that the bigger guys do. Once you start getting a lot of traffic though I recommend investing in a bigger host like Kinsta.

Visit SiteGround

Option 2 – High Performance Managed WordPress Hosting – Kinsta

If you are looking for high performance managed WordPress hosting, I have nothing but praise for Kinsta. Kinsta’s vast feature set is really what sets them apart from the other managed WordPress hosting companies out there. Kinsta is the kind of host you want if you go on Shark Tank. Some of Kinsta’s current clients include Mint.com, Ubisoft, TripAdvisor, and Intuit! Make sure to check out our in-depth Kinsta review.

Some of Kinsta’s features include Nginx, Ubuntu, PHP 7.4, HTTP/2, CDN, Free SSL, MariaDB, free premium DNS via Amazon Route 53, uptime monitoring via New Relic, and they have some of the best support in the business! They use software containers which means no resources are shared between sites. All of my sites are hosted with Kinsta.

Visit Kinsta

2. Content Delivery Network (CDN)

No matter how fast your web hosting provider is, you can never beat the latency issue. When you host your website it is always stored on a single server somewhere in a data center. For visitors across the country, things are much slower because it has to download everything across the globe. A CDN fixes that by storing copies of your assets, like images, CSS, and JavasScript on servers, also known as POPs, around the globe. It also caches them. This way when a visitor from across the globe is looking up your website, the content is delivered from the local POP instead of your web server. Make sure to check out my article on CDN for dummies if you want to learn more about how CDNs work. 😉

I use KeyCDN of course for all of my websites. At $0.04/GB (lowest price globally) with more POPs than StackPath (currently 33), there really is no comparison and it’s a no-brainer. KeyCDN also offers origin shield and secure token free of charge which most other providers charge hundreds of dollars for. KeyCDN also has a free Let’s Encrypt integration so you can deploy SSL for free. And they fully support HTTP/2 and the latest protocols so that your content is delivered as fast as possible. Make sure to also check out my full review of KeyCDN.

If you aren’t using a CDN yet then you are hurting yourself. A blog with a decent amount of traffic usually is in the 20-25 GB bandwidth range, and to implement a CDN it costs less than a $3 per month. And suddenly your site is supercharged from multiple POPs all over the world. I used the free CDN Enabler plugin to deploy my CDN.

Kinsta is actually partnered up with KeyCDN. So if you use Kinsta as a WordPress host, KeyCDN is included for free! 👏

Setup the WordPress CDN Plugin

CDN Enabler is a completely free WordPress plugin that was designed for the sole purpose of linking your assets to your content delivery network provider (CDN). Check out our blog post on how a CDN can help speed up your website by 68%! As of writing this, the plugin currently has 10,000+ active installs and a rating of 4.8 out of 5 stars. People seem to love it. Here are just a few of the reviews below.

Can’t find easier plugin than this to power your website with a CDN. Fast and easy, all you need! kmartin26

It’s blazing fast, no unneeded functionality. bnwmovies

If you are running on redis cache and don’t want any bloated caching plugin this is very lightweight and seems to work well. rsmith4321

What exactly does the plugin do? Basically, when you are using a CDN, they will give you a special URL, such as cdn.yourdomain.com. This needs to be updated on all your WordPress images, CSS, and JavaScript files. This plugin lets you input your CDN URL and boom, you are ready to go! Follow the steps below to install it and set it up.

Step 1

Under “Plugins” in your WordPress dashboard click on “Add New” and then search for “CDN Enabler.” It should be the first one that comes up and says “By KeyCDN.” Click on the “Install Now” button. You can also download CDN Enabler directly from the repository if you prefer.

install cdn enabler
Install CDN Enabler plugin

Step 2

Click on “Activate Plugin.”

activate cdn enabler
Activate CDN Enabler plugin

Step 3

Under “Settings” in your WordPress dashboard click into “CDN Enabler.” You will then want to input your CDN URL and also enable the HTTPS option if you are using a CDN that is running over HTTPS. If you don’t know how to find your CDN URL, you can always ask your CDN provider for help. Then click on “Save Changes.”

cdn enabler setup
CDN Enabler setup

And that is it! Now everything on your website will be linked to your CDN and turbocharged.

Download CDN Enabler

3. Utilize the Perfmatters Plugin

perfmatters is a lightweight WordPress performance plugin developed by myself and my brother which basically includes all the hacks we use on our sites to gain the extra edge over the competition. Get all the secret sauce from our sites with a few clicks.

Perfmatters web performance WordPress plugin
Perfmatters web performance WordPress plugin

Some of its features include:

  • Disable emojis
  • Disable self-pingbacks
  • Disable XML-RPC
  • Hosting analytics locally
  • Disable and or limit WordPress revisions
  • Remove query strings from static resources
  • Disable embeds
  • Change frequency and or disable Heartbeat API
  • Change autosave interval
  • DNS prefetch
  • Preconnect
  • Support straight from the developers of the plugin

You can also disable scripts in WordPress on a per-page/post basis. This is very powerful and can drastically increase the speed on your WordPress sites (especially your homepage). A few examples of what this can be used for:

  • The popular Contact Form 7 plugin loads itself on every page and post. You can easily disable it everywhere with one click and enable only on your contact page.
  • Social media sharing plugins should only be loaded on your posts. You can easily disable it everywhere and load only on post types, or even custom post types. For example, the social sharing plugin you see right now on the sidebar of this post, doesn’t load on any of our pages, thanks to the perfmatters plugin.
Scripts Manager
Scripts Manager

And much more! It even has a CDN linking feature. So if you’re using our Perfmatters plugin, there is no need for the CDN enabler plugin.

Get perfmatters

4. Optimize Database

The next thing to do is to ensure that the WordPress database is optimized. If you have never done this before you will want to check and make sure you don’t have any mixed MyISAM and InnoDB tables. Basically, there are two different types of MySQL tables. InnoDB has proven itself to be much faster. You can follow this tutorial here on how to convert MyISAM to InnoDB. When it comes to ways to speed up WordPress, this is often an overlooked optimization.

The next thing to do it clean up old post revisions and drafts that are most likely sitting in your database. I am always surprised by how many WordPress website owners don’t do this.

[clickToTweet tweet=”You should treat #WordPress just like a car, that means oil checkups, tuning, etc. #webperf” quote=”You should treat WordPress like a car, that means oil checkups, tuning, etc.”]

You can install the free WP-Optimize plugin and run an optimization. As you can see below, in my case, there were 108 revisions sitting in the database. This is not a lot, but going forward its always nice to start with a fresh slate. Check out my in-depth post on how to delete old WordPress revisions from your database. Note: I delete the plugin immediately after I am done running the cleanup.

wp-optimize plugin
WP-Optimize optimization

Now that the old post revisions are cleaned up, it is time to limit the number of revisions so they don’t start bloating the database down the line again. There are a couple ways you can do this. I recommend using our perfmatters plugin. You can limit or disable them with a single click, as seen below.

disable and or limit wordpress revisions
Disable and or limit WordPress revisions

Or you can do it manually by adding the following code to your wp-config.php file. In this example, I am limiting them to 3.

define('AUTOSAVE_INTERVAL', 300); // seconds
define('WP_POST_REVISIONS', 3);

It is important to add the code above the ‘ABSPATH,’ otherwise, it won’t work.

limit wordpress revisions
Limit WordPress revisions

You can also disable revisions altogether.

5. Lightweight WordPress Theme

WordPress themes can make or break your site. There are a ton of bloated themes out there which can bring your site to crawl. When you looking for a WordPress theme you want to make sure you are buying from a reputable company with good developers and support. I use GeneratePress on all of my WordPress sites; including my blogs and ecommerce sites. I couldn’t be happier.

I saw a 450ms decrease simply by changing themes, without anything else! Kudos to Tom, the developer of GeneratePress. He keeps things lightweight, and still includes loads of functionality so you can literally build whatever type of site you want.

GeneratePress theme

I really want to mention that you should be careful about buying themes and products on ThemeForest. I’m not saying that all developers at ThemeForest are bad, but unfortunately a lot simply add bloat to increase their sales. Check out my in-depth GeneratePress review.

Get GeneratePress

6. Get Rid of Plugins You Can Live Without

The next step was to get rid of all the unnecessary plugins that I could technically live without. This is one reason I love using WordPress. There are so many different ways to accomplish things. If you go with another platform such as Shopify or Wix, you’re stuck doing it one way or worse, you can’t fix it at all.

live without you
Src: imgflip

Here are plugins I got rid of on my own site:

7. Compressing Images

Image compression (making the image files smaller) is no longer optional. It’s one of the easiest things you can do! Uploading full resolution images onto websites, especially those on small shared web hosting plans, can really slow down the load time on your website. You would be surprised how much some images can be compressed without an quality degradation.

I compress all my images using lossy compression with the Imagify WordPress plugin. Every image I add to a page or post is automatically compressed behind the scenes. I don’t don’t have to do anything different.

8. Took My Custom CSS to Bare Minimum

With my old theme, I had to fix a lot of things to make it work the way I wanted. My custom CSS file had 247 lines of code. I went through each line after switching themes and managed to drop this down to 88 lines of code. 😁 This just goes to show you how much better the GeneratePress theme is coded. And I could probably clean this up even more.

custom css
Custom CSS

New CSS Button

If you are curious, here are my new CSS buttons I am using.

Sample Button

.btn {
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0px;
  font-family: Arial;
  color: #ffffff !important;
  font-size: 22px;
  background: #8cc462;
  padding: 12px 22px 12px 22px;
  text-decoration: none;
  border-bottom: 4px solid #6a944a !important;
  position: relative;
  display: inline-block;

.btn:hover {
  background: #97d26a;
  text-decoration: none;

Here is the HTML code. You could even go one step further and create your own shortcode. But by doing it this way, I get rid of one HTTP request from the button plugin.

<a class="btn" href="" target="_blank">button text</a>

9. Change Web Fonts

I have been doing a lot of research recently on web font performance. I ditched the Adobe Typekit service. I saw an additional 300ms reduction by doing this. Typekit adds 2 external HTTP requests and it also base64 encodes all the font formats. If you aren’t familiar with fonts you no longer need to serve all the font formats, you only need WOFF and WOFF2 (if you are going for extra compression).

You have a couple options when it comes to better-performing fonts.

Option 1: Use Google Fonts

Google Fonts are great for one very specific reason. They are probably already cached on the visitor’s computer. Therefore, if a person hits your site with a common Google Font, it might not have to load again. The external call to Google is also much faster than using a third party like Typekit. When Typekit goes down, which it does once in a while, it seems like half the internet breaks.

Option 2: Host Google Fonts/Custom Font on Your CDN

I went with this option. I am using a custom font that I really like that isn’t available from Google. However, the catch is that I’m hosting it on my CDN, along with all my other media. One benefit to doing it this way is due to the fact that there is no DNS lookup to a third-party. Check out my tutorial on how to host a custom font on your WordPress site.

Option 3: System Font Stack

Your third option is to move to what they call a system font stack. With newer operating systems out there, fonts now look a lot better than they used to. This means you can tell your website to use the visitor’s operating system font instead. This means no loading any font files at all on your WordPress site! This is by far the fastest option.

But you will want to weight the pros and cons. Do you want something that looks fancy or do you want blazing fast? Check out my tutorial on how to move to a system font stack.


It’s also recommended to prefetch your font files. You can do so by adding the location to your WordPress header.php file (example below). Or if you’re using our Perfmatters plugin there is an easy option to do this in the settings.

<link rel="dns-prefetch" href="//fonts.googleapis.com/">

10. WordPress Caching

Obviously everyone knows by now the importance of caching for your WordPress site. There are free caching plugins out there such W3 Total Cache and WP Super Cache, but I have never been that impressed by them as far as speed goes. They are also a lot more complicated to set up.

I recommend going with WP Rocket (premium) or Cache Enabler (free). Or better yet, if you host your WordPress site with Kinsta, caching is done at the server-level automatically for you! So no need to hassle with a caching plugin. 😎

But if you’re using shared hosting you’ll need a caching plugin.

WordPress Cache Enabler

The free WordPress cache enabler plugin is created by the team over at KeyCDN, a global content delivery network which focuses on speeding up content delivery. The plugin was developed with HTTP/2 and simplicity in mind. Setting up a caching plugin shouldn’t have to be crazy complicated or involve 25+ steps.

How does it work? Well, basically it creates static HTML files which are then stored on your web server’s disks. When a visitor hits your website, the static HTML file is served. Due to it being static, this can be delivered super fast! Why? Because it pretty much bypasses the plugins, database, etc.

Speed Up WordPress - Cache Enabler
Cache Enabler plugin

As of writing this, the plugin currently has a rating of 4.6 out of 5 stars. People seem to love it. Here are just a few of the reviews below.

Simplicity and effectiveness. Love it! atomiccherry

Loving this lightweight plugin! It even supports WebP! Saw a speed increase after installing! tandkb

Nice and simple caching plugin, works great, and even supports WebP images generated by EWWW Image Optimizer. Awesome! nosilver4u

Cache Enabler Features

The cache enabler plugin features the following:

  • Caching HTML to disk
  • Feature to automatically purge cache when publishing new pages/posts
  • Manual purge feature
  • Displays the total size of cache in your WordPress dashboard
  • Minify your HTML and JavaScript
  • Supports WP multisite and custom post types
  • Ability to set the expiry directive
  • WebP Support (when combined with Optimus, ShortPixel, or EWWW)
  • Supports responsive images via srcset since WP 4.4
  • Works with Autoptimize
  • HTTP/2 Focused

Example of Cache Size in Dashboard

In your WordPress dashboard you can clearly see on the “At a Glance” widget the size that is currently in the cache.

cache size dashboard
Cache size in the dashboard

Example of Cache Size in Dashboard

You can individually purge pages/posts or clear the entire cache right from the WordPress admin bar.

clear cache wordpress dashboard
Clear cache in WordPress dashboard

How to Install Cache Enabler

Follow the steps below on how to install the free WordPress Cache Enabler plugin.

Step 1

In your WordPress dashboard under “Plugins” click on “Add New” and search for cache enabler. Ensure that it says By KeyCDN for the author. Click on the “Install Now” button. You can also download it directly from the WordPress repository.

search cache enabler
Install Cache Enabler

Step 2

After you activate the plugin you will want to enable a few settings. In your WordPress dashboard under “Settings” click into “Cache Enabler.” I recommend enabling the pre-compression option and also the WebP support. You can take advantage of this with the Optimus Image Optimizer plugin, ShortPixel, or EWWW.

WebP is Google’s image format and has been shown to decrease image sizes by sometimes up to over 70%! I also recommend enabling cache minification for both HTML and JavaScript. Note: if you have any issues, you might have to disable the JavaScript minification and only use HTML. The Disqus plugin is one for example that doesn’t play well with JavaScript minification.

cache enabler settings
Cache Enabler settings

Step 3 (Optional)

There is an advanced snippet of code you can use to bypass PHP in WordPress. This is an optional step, but you will see even faster speed increases! I am using this for the speed tests you see further below. Follow the tutorial here on how to enable the advanced snippet for Nginx and Apache.

Cache Enabler Speed Results

So now let’s see what the speed tests say. I am using this on a fresh install of WordPress with the twenty sixteen theme running. If you have a larger site you can expect to see even faster increases!

Without Caching

I first ran 5 tests via Pingdom and took an average without a caching plugin running.

wordpress speed without cache
WordPress speed test without caching

With Cache Enabler

I then ran another 5 tests via Pingdom and took the average with the free Cache Enabler plugin enabled.

wordpress speed with cache
WordPress speed test with caching

You can see that the Cache Enabler plugin decreased load times from 537 ms down to 390 ms. That is a 27.37% speed increase for only 2 minutes of setup work using a free plugin! Not too shabby.

As you can see, for a free plugin, the WordPress Cache Enabler plugin can do wonders for your website or blog. It is super simple to setup and you will see drastic speed increases.

Download Cache Enabler

11. Tweak Google Analytics

Having worked in the corporate agency setting in the past I have always enabled advertising features and remarketing in my Google Analytics accounts by default. However, on my blog I don’t use any of the data, so better to remove it. Why? Because if you are running these features you will actually have a 2nd HTTP request for this file: https://stats.g.doubleclick.net/r/collect? and then your main Google Analytics script will have a 302 redirect in the response header.

google analytics collect
Google Analytics collect?

You can fix this by turning both remarketing and advertising reporting features off in your Google Analytics account.

google analytics data collection
Google Analytics data collection

You can also disable the features by adding the following code to your Google Analytics script.

  ga('set', 'displayFeaturesTask', null);

After disabling this you should no longer have that 2nd HTTP request and your main script will no longer have a 302 redirect.

google analytics no redirect

Hosting Google Analytics locally can also help speed up your site by reducing extra DNS lookups and resolve the “leverage browser caching” issue from their script. It also allows you to load the analytics script from your own CDN which can help you take advantage of a single HTTP/2 connection.

Note: This is not officially supported by Google, but we have been doing this for years without any issues. This can easily be done with our Perfmatters plugin (as seen below).

Enable local analytics in Perfmatters
Enable local analytics in Perfmatters

12. Speed up WordPress Test Results

And here are my speed test results after I did everything above. The tests were run 5 times and the average taken. The final load time for woorkup is under 500 ms.

Pingdom speed test after optimizations
Speed test after optimizations (Source: Pingdom)

Not too shabby. I managed to reduce my HTTP requests from 90 down to 36. I decreased my page size from 939.9 KB down to 291.5 KB. And I decreased my load time from 1.52s down to 495ms! 😮

Feel free to click around this site and see how fast it loads. The proof is in the pudding.

13. Get a Web Performance Audit

Still need an extra boost? If you still aren’t satisfied with your speed, I always recommend hiring an expert and getting an audit done on your site.

One day I’ll probably offer web performance audits, but right now I simply don’t have time. For now, I highly recommend Mike Andreasen, a Codeable expert, for web performance audits and HTTPS conversions. Here is an example of a client’s site before and after Mike’s web performance optimizations.

Website performance audit from Mike
Website performance audit from Mike

I personally chat with Mike on a regular basis. He is one of the only web performance guys out there which I agree with on just about everything when it comes to optimization, which services and tools work the best, etc. 😉 And trust me, that is rare. I personally vouch for his work as I have the graphs, speed tests, and data from actual clients to back it up!

14. Additional Speed up WordPress Tips

Here are a few additional things I am already doing that you might want to check out.

Call me crazy but I am actually still not happy with the results. I’m pretty OCD when it comes to performance so I will always be optimizing. It’s a job that never ends. Make sure to bookmark this post as I am constantly updating it. Hopefully, my experience above on how to speed up WordPress will be eye-opening for you.

I would love to hear any feedback below!

Get More Stuff Like This

Marketing, WordPress, Blogging Tips, SEO and Reviews, twice a month.

Thank you for subscribing.

Something went wrong.

Brian Jackson

Co-founder at forgemedia. Blogger and entrepreneur obsessed with SEO, marketing, and web performance. Connect on Twitter @brianleejackson.

92 thoughts on “Speed up WordPress – Your Complete Optimization Guide”

  1. Great article Brian.
    What type of hosting are you using?

    In the past I was able to load 87studios in around 250ms (98score on pingdom) without cacheing plugin, just doing VPS optimization, sever side cacheing and stuff.

    • That’s awesome Kris! I am on Kinsta managed WP hosting right now. Simply because I don’t have time if things break. I pay the extra $ so I can spend any free time I have writing. Ya there is a lot of optimization that can be done. Have you ever used Varnish caching server-side? One of the things I am playing with next is storing web fonts in localStorage instead of browser cache. Should be an interesting experiment.

  2. Brian, that’s really great article. I think you may be interested in increasing performance using other methods like the one from following plugin – http://tomasz-dobrzynski.com/wordpress-gonzales. It uses conditions on PHP level thanks which you can decide which CSS and JS file to load on particular pages. Tidy and lightweight solution which makes WordPress faster (even if you concatenate scripts; less data transferred).

    • Wow Tomasz, that sounds like an interesting plugin. Can you specify homepage loads as well? For example, my social sharing plugin js… can I then disable that from loading on the homepage? How well does it play with WP Rocket concatenation? Thanks

      • Hi Tomasz, Brian
        I’m also interested in how it plays with WP Rocket. Sounds like something to check out and write about…
        Brian – this is a great rundown, thanks for documenting your experience!

        • Jules, Brian – seems like Gonzales works with WP Rocket pretty well. I’ve just carried out few tests and results are positive. Minified by WP Rocket files are smaller and more lightweight after Gonzales integration :)

        • Jules, I have tested this plugin with WP Rocket now, and I updated the post above to include info about Gonzales plugin. It is responsible for me now breaking the 300ms barrier. I will be doing a full review of it soon, but go buy it now lol!

          • Thanks for trailblazing! I did add it to one of my sites and am very happy with the results. The site’s home page is crazy big and this plugin made it much more manageable.

      • Yes, if plugin is correctly registered you can disable it even on homepage. Well, unfortunately I didn’t have possibility to test it with WP Rocket but I think it shouldn’t collide with it because it uses other technique of optimization.

  3. Nice article Brian, I am always looking at this also. I managed to get 1.5s off a bloat site by getting rid of google fonts all together. Plugin “Remove Google Fonts References” first, then generated webfontkit versions of my desired font with the utility on FontSquirrel, uploaded font files to my local webserver. In CSS, loaded the local fonts with @font-face in .eot, .woff, .ttf formats. The font loads then benefit fully from local cache.

    It’s a bit of messing around but has the added benefit that Chinese sites can load you up fast with your desired fonts – as google is blocked for them. And of course speed.
    Regarding caching, I use plugin FFPC -it’s a different thing entirely, why not shift your caching from disk to memory…..

    • Hi, thanks for your comment. I have done testing with local fonts and have found it slower sometimes vs Google fonts depending on the user’s location. But this is because of Google’s use of a CDN to power their font distribution. You could however load the fonts locally and then off of your own CDN. Actually what I am experimenting next with is using a tool like this: http://jaicab.com/localFont/ and storing fonts in localStorage vs browser cache (maybe that is what you are referring to).

      I will have to test with FFPC as I have not done much ever with caching to memory vs disk. Will give it a try :)

      • I tend to lean away from anything that needs multiple calls to a remote server, just personal preference. And again – China. That localfont sounds good, if it takes out a step for the local approach.
        FFPC I have had great results with, you do need access to the shell to enable e.g. memcached, but as it caches the actual DB calls it might actually work nicely together with every disk caching solution.
        Great tip on Mythemeshop, looking at it, love that performance – I might have to have a look into replacing themes on some news sites we have. Thanks!

  4. Good tips Brian, thanks for putting it all together.

    I did have one comment though – it seems to me a tad bit unfair to compare Themeforest and Mythemeshop.

    Themeforest is a marketplace where developers can sell their products, whereas Mythemeshop actually produces and sells their own themes? In my experience there are both great and terrible themes for sale on Themeforest, but at the end of the day Themeforest is not responsible for the code quality of the end product. This responsibility lies with the individual developer/agency, so it would be interesting to hear who was behind your original theme?

    • Hi Simon. Thanks for calling me out on that. I have edited my wording a little bit above. I do agree that not all the developers are bad on Themeforest. And they do have to make a living which means sometimes adding features to compete even if they don’t want to. My TF account has over 80+ downloads in it, so I have been through quite a few themes for myself and clients. Everything from Theme X, Avada down to minimal themes like Orca and Readme.

      • I think this problem can largely be attributed to the popularity of multi-purpose themes. As buyers/freelancer we are inclined to gravitate towards extra options and features, thinking more options will better equip us to meet the client’s needs. You never know what a client will dream up, and it’s nice to be covered.

        Unfortunately this includes a lot of bloat and as you say, the developers may feel forced to add functionality even knowing that it will compromise performance.

        Clients will rarely complain about poor performance, but will be quick to request new features, so it’s a fine line!

      • I think you had it right in the first place. ThemeForest is a lowest common denominator market place without much brand to protect. Bloated themes to newbies seems to be their main business model.

        Buy direct from a respectable developer (we are buyers of themes not sellers ourselves, no conflict of interest): do yourself, your client and the world a favour.

  5. Nice post Brian. I’m not going to pimp my service here, but I proxied your site through my server and had a total load time of 263ms, so breaking 300ms with your current host shouldn’t be too hard. After looking at your waterfall, I have a few tips. 1st, ob_start your header to chunk critical resources so only html and CSS are at the top. Once you have CSS on top, content ONLY in body, then load server-side scripts in the footer. The last part is key, 3rd party requests kill you, so unless it is needed for page paint, use a script loader to inject “extras” after the OnLoad event has fired. That alone will get you under the 300ms mark, if you want to get a little more extreme Skype me @CDSalmons and I’ll help you with the rest of it. As far as the Pingdom comparisons though, your main culprit wasn’t mentioned in the post which is the main thing most people forget about… DNS ;) So using DNSMadeEasy or Dyn(.)com will take care of that part. Anyhoo, always glad to see a fellow performance nut speaking out. If you need help let me know, take care

    • RE: DNS
      How much of an improvement can DNS hosting create? I looked into DNSMadeEasy and Dny and ended up using AWS Route 53 on one of my sites. The site is small and using a shared hosting solution, but it includes a CDN via cloudfront + s3. The new nameservers have propagated, but I’m not really seeing much of a change. I’m wondering if my understanding of the situation is unclear —or is the shared hosting holding it back? Appreciate enlightenment via links or comments!


  6. Pingback: L'hebdo de l'écosystème WordPress n°30
  7. Hi Brian, as usual fantastic article. I am about to implement Optimus & Gonzales based off this. Keep up the amazingly informative articles. Most blogs write more overviews and very rarely get down to the real reasons behind implementing a certain practice and you have to take their word for it. Your articles provide background and enough in depth analysis which lets the reader feel confident about giving something you recommend a try!

    • Thanks Zane! Glad you liked it. Let me know how it goes with Optimus and Gonzales, both are awesome plugins and I use them on all of my sites.

  8. Really great article Brian. I learned a few things by reading. Although my site is pretty quick loading (always under a second when I test) I know there’s plenty of room for improvement.

  9. Sub-300 has me thinking “wow cool, I should try this stuff soon.” Sub-200 will turn me into “OMG MUST DO THIS NOW.” You’re a wizard, sir. Keep up the awesome work.

    • Haha, thanks TJ :) Ya I haven’t had any time to try and hit sub-200 yet. But it is coming :) One hint is that I am playing with web fonts and localStorage vs simply using Google’s font CDN.

    • They have a checkbox for including “name” yes. You can’t do first and last separate though. But you can add “name” field.

        • Ya, anything that MyThemeShop makes is golden and super fast. Every single website I am running right now is all on MTS themes, using their subscribe plugin + notification bar plugin. They know how to keep things lightweight.

          • I’ll browse through those as well. I don’t see any buddpress/bbpress ready themes, so will have to stay on my current theme for one of my sites (it runs Kleo premium theme).

            Do you know of any themes that are ajax ready? E.g. to show a persistant chat mole ala Facebook?

          • Indeed – I just updated one of my sites – http://www.technologypoet.com with a theme from MyThemeShop. I’m blown away by the performance. And sad that some of my higher traffic sites depend on bbpress/buddypress and good themes that support bbpress/buddypress load dozens of js and css files :(

          • Awesome, ya moneyflow is a great theme.They really are the best! I have 4 sites running on MTS themes right now and couldn’t be more impressed. I’ve been using them for years.

  10. And one more (sorry for all the questions…) Which plugin do you use for redirects? I notice redirects for affiliate links, I’ve always struggled to find one that didn’t slow down tremendously as the number of redirects grew

    • I use prettylink, the free version. One of those bad habits that I just keep doing. There are definitely better plugins out there for affiliate links. But it works :)

      • hehe :) I’ve got a few bad habits too. I’m trying to kick Sumome, because it really just destroys page load time (yeah yeah, async js load and all, still a ton of stuff that browser needs to load and process)

        I’ve heard good things about Simple 301 Redirects – https://wordpress.org/plugins/simple-301-redirects/

        But haven’t yet tried it.

        I would love to use nginx redirects directly, but my host doesn’t support that.

  11. Just want to share a warning on WP Rocket – don’t depend on their 30 day money back guarantee. It’s got a bunch of conditions which basically require you to prove that it’s slower (never mind conflicts, etc.).

    Also see more recent posts from Brian recommending Cache Enabler. My experience so far is:
    Cache Enabler is super fast (when paired w/ CDN in particular). ZenCache is fast, WP Rocket has conflicts with themes (e.g. Kleo) and money back guarantee is just a farce. W3 Total Cache is buggy, and seems to slow things down more.

    http2 is a savior for performance, and negates the need to combine resources.

  12. Also to let you know, I’m having an email discussion with @tomaszdobrzyski:disqus with a feature request for Gonzales to support wildcards, so you can include/exclude resources from loading on site.com/page/*
    This is great if you’re running bbpress or buddpress, where pages are typically under site.com/forum/*, /members/*, /groups/*, etc. This would also work great for categories and tags (at least the default URL structure.

    I’m not sure if anyone else would find this useful, I know Tomasz has received quite a few feature requests for his awesome plugin, and shouldn’t necessarily add a ton of features and make it bloated. But I think this in particular (or an alternative of include/exclude by page type – page/post/forum/…) would take Gonzales to the next level.

  13. Still can’t stop thinking how you changed the whole look of the schema theme. This edited theme looks way better than the original demo of the theme. Schema is surely one of the fastest theme out there, but editing styles is a bit of pain… Really appreciated!

  14. Pingback: Weekly WordPress News: WPLift Has Been Sold.
  15. Great article Brian. I’m wondering – why you choose to add all of those plugins in the first place? Just kidding :)

    One questions though: moving over to https – any gain/loss details you could share?

    • Haha don’t ask. I got lazy :( But no more.
      Moving to HTTPs, because of HTTP/2 and now HPACK compression, I didn’t see any performance losses. It made up for the slight overhead of TLS, but even that is minimal now. HTTPs doesn’t hurt you like it used to.

      Another big reason to move is SEO benefits and better referral data in analytics. Its hard to gauge just how much the ranking factor is weighted, but man, every little bit helps!

    • For me it was hard to test that because I actually migrated from PHP5.6 to HHVM, and then from HHVM to PHP7. So my scenario was a little bit different than most and from HHVM to PHP7 I didn’t notice huge differences. Although PHP7 is now more stable than HHVM in my opinion.

  16. Pingback: Boletín #002: Apple cae, facebook es móvil y… la historia de De Tomaso
  17. Absolutely FANTASTIC post… thanks so much for sharing your experience with us, Brian. I can’t wait to try these tips on my client sites! :-)

    • Thanks for the tip. Just added it to the post above :) I am testing with that now as well. Great to have options!

  18. Hey Brian,

    just wondering if caching still works with Kinsta? I recently moved to Kinsta and they already provide server level caching (which they claim is better than any caching plugins). Caching plugins are also part of their disallowed plugins list.

    • Hey Jeremy, actually as of about 2 weeks ago I have moved all my sites to WPHostingSpot. You can read my full review here: https://woorkup.com/wphostingspot-best-managed-wordpress-hosting/. I also just updated this post with that info. Don’t get me wrong, Kinsta is still an awesome host! I was with them for over 2 years and never had any problems. That is saying something. WPHostingSpot though gives me a little more flexibility while still having managed support.

      • thanks for replying, the technology stack actually seems really similar vs Kinsta! What do you mean by more flexibility?

    • They do have a great affiliate program. But that is not why I use them. I use them because their themes are fast, they know how to code clean, and their support is beyond phenomenal.

      • Has been totally opposite in my experience. They’re absolutely trash with perhaps $5 / hour coders working on their themes. But to each his own, I guess.

        • Strange ya I have used them for years. Never had any issue with their code and I have ripped them pretty much apart :) ThemeForest themes in my experience have been totally the opposite. But everyone has their own preferences.

  19. Hi Brian.

    Just found your site.

    You have a new fan.

    Where did you learn all of this? You seem to have a very deep knowledge.

    Are there any comprehensive books or resources (apart from this blog) that you learned from?

    Sharing now on my social media.


    • Thanks Simon! I have been using WordPress for over 10 years. I can’t even remember a time when I wasn’t blogging :) I am definitely self-taught, which is one of the best ways to learn in my opinion. I always recommend “learn by doing.” Thanks for the share.

      • I run 40+ sites on 8mb memory VPS system at OVH. All sites perform under 400ms with zero tweaking. Just regular 17 plugins plus per site on a theme. If you made the effort, you might hit 250ms (Some sites do). Server in Germany, test in Australia. I doubt you’d get under 250ms unless you spent a lot of time on it. TBH – we’re here to make $ from the sites and anything under 2s makes Google happy. Our easyengine system is tweaked for 5000 threads and other things like max security, not a standard install. My partner used to work for Google as a SysAdmin and I’m obsessed with security as WP security is so bad.

        We’ll be offering bulk hosting shortly. Currently doing testing with the 40+ managed sites for last 3 months. We tried eNginx but EE is 10x faster, literally. We’ll go to a dedicated 32mb memory machine once we hit 50 sites.

        Thanks for the rantspace!

  20. Hi,
    Do you perform similar speed up services for hire? Or can you recommend someone? Need to speed up my own site dramatically.

  21. Nice tutorial Brian!

    Do you know if Cache Enabler is the only way to serve the image webP compressed from Optimus? Acttually, I am using WP Rocket and I would like not change it.

  22. Google analytics run asynchronus, so it suppossed not slowing down your site… better option ? Use google tag manager

    • That is true, but I actually host my Google Analytics on my CDN now. Tag manager has some of the same issues. See this article: https://www.keycdn.com/blog/local-analytics/ I will be updating the post above later tonight to reflect that.

      – By hosting locally you can ensure that their large script loads from your web server, or CDN, instead of having to reach out to Google.
      – Instead of 2 HTTP requests to Google, you now only have 1.
      – When you host locally, you now have full control over caching, expires headers, cache-control, etc.
      – Take advantage of your single HTTP/2 connection

  23. Hey Brian, great post. I’d love to hire you to work on speeding up my site but I noticed you’re not taking on client work. Can you recommend someone who knows WP as good as you?

  24. Hey Brian,

    Awesome guide. I’ve gone through the whole thing back to front, and signed up using your links for a few of the services you recommend. I noticed that WPhostingspot has possibly sold? Went through their site, and they don’t really come out and describe their deployment stacks… Do you still recommend them? I’d love to be on Kinsta, but kind of hard to justify the price at the moment.

    I’m on a $200/mo liquidweb dedicated server (shared cost between other projects though), and I can’t seem to get my page load speed anywhere close to what you’ve been able to achieve. (despite following all of your/and kinsta blog tutorials)

    I’m guessing it’s all the cpanel/whm bloat on the server for other projects, and the fact that they don’t have a supported Nginx config I can deploy to get away from Apache.

    Any experience with a Cloudways deployment on Vultr or similar? Also noticed Flywheel is on Nginx, but kinda seems like the little sister of Kinsta… Ever tried them?

    Great site, I’m going to link to your guides in my hosting/speed case study once I get everything figured out!

  25. Hi,
    I loved the post! Read something different here, different plugins, etc. and it’s really good. Thank you

  26. Hey, Brian,
    Excellent post and well guided for speed up the website speed. It’s true that, fast hosting is must need for increasing website speed. I run my blog on blue host, but still, i face some slow loading. I checked and noticed that some plugins, images and browser cache causes this slow down issue. Thanks for showing CDN tutorial. Also, thanks for sharing unethical plugins list. Really a great post.

  27. Hello Sir, You are using generatepress right now but you recommended mythemeshop. please specify what is your most preferable theme? I really excited to know your recommendation. Thanks

  28. Hi Brian,

    Your plugin perfmatters is awesome. I am using on two of my websites and it did reduced a lot of loadtime and increased my site speed. Love your tips and tricks.

    Thank you!

  29. Hello Jackson,

    Can we leverage of “Load Balancing” or multiple databases like clusters at various regions if traffic is around ~50k? Is this good to go with these? Actually, the theme is really heavy and lots of bloat plugins I’m using, which is nearly impossible to remove.

    • Hey Asharam,
      So load balancing or multiple databases is really not even worth it unless you are doing it for very specific reasons. I’ve worked with many sites that get millions of visitors per day (yes per day) that are fine with single databases and no load balancer. This really comes down to the quality of your hosting provider. Go with a premium host and you’ll discover a lot of these issues go away.

      I would also recommend utilizing a tool like New Relic which can help narrow down exactly which plugins are causing the highest load on your site.

  30. Hi,

    Great article. I’m looking for some consultants to help me do this process with our Website to speed it up. Any folks you’d suggest?


  31. Great article Brian.. I have a pretty short attention span, but I actually read this post right the way through. I probably will apply some of the fixes/tweaks you mentioned

  32. I loved this post and there is something different from other sites likes different plugins etc. thanks for sharing with us.


Leave a Comment