12 Ways to Speed up Your WordPress Website

By Doyin Faith Kasumu
We teamed up with SiteGround
To bring you the latest from the web and tried-and-true hosting, recommended for designers and developers. SitePoint Readers Get Up To 65% OFF Now

Speed is a quality that all websites or services should possess, and WordPress is no exception. You never get a second chance to make a first impression, so it’s important to ensure that you in no way leave your visitors with any reason to leave your site even before it’s even finished loading, or reasons that could make them want to never return.

In this article, I’ll show you how to effectively improve your WordPress site load speed, with twelve of the best approaches that will help improve your performance. If you need more convincing why site speed is critical, check out our previous article that talks about why site speed matters.

Choosing a Good Host

Your choice of web host has a big impact on your site speed. A good web host is the foundation where your website runs, it’s the first aspect to be addressed when working on improving site speed (even if not a WordPress powered site).

There are numerous hosting companies out there, it’s a highly competitive market and worth shopping around. Charles Costa has covered this topic extensively, the following articles will help point you in the right direction and help you make an informed choice when selecting a hosting provider.

Using a CDN

A Content Delivery Network or Content Distribution Network (CDN) is a system of distributed servers that deliver web pages and other web resources to a user based on his/her geographical location.

A CDN typically copies all the static files (CSS, JavaScript, media files etc.) in use on your website and delivers them to users as fast as possible.

This article by Jacco Blankenspoor takes a closer look at WordPress and CDNs.


Caching is the temporary storage of content such as pages, image and other files used to render your page. This content is saved on visitor’s local drive as a cache, so when they are requested again by the same visitors, they are rendered much faster. Caching also happens on the server. It’s a technical area, but there are several popular WordPress plugins that help you configure and manage caching very easily, the most popular choices are W3 Total Cache and WP Super Cache.

Minify CSS and JavaScript Files

The process of ‘minifying’ your CSS and JavaScript files compresses the original files to the smallest possible sizes, thereby improving the speed at which browser retrieves the files.

YUI Compressor will come in handy if you prefer a manual approach to minifying your site CSS and JavaScript files, or you can go for WP Minify which handles the work with an automated approach. Some caching plugins also offer minification as a feature.

Compressing Images

Apart from the fact that large image files contributes greatly to the sluggishness of a WordPress site, they also consume bandwidth too. Images are a good candidate for optimization.

Using the free WPMU DEV WordPress Smush API, the WP SmushIt plugin will help you reduce the size of these images without compromising their quality. I use this plugin and find it amazing how much it reduces image sizes.

WordPress Compression

Compressing Your Site

In simple terms, site compression is like turning your entire site into a ZIP archive. And when any of the pages of the site is requested for, a client’s browser acts like WinRAR and unzips the archive and then show the contents. Even though this sounds like an extra work and would slow things down, trust me, it doesn’t.

Even though W3 Total Cache is well known for caching, it can also be used in site compression. You can enable this feature by going to: admin page -> Performance -> Browser Cache -> Enable HTTP (gzip) Compression.

Optimizing Your Database

WordPress often auto-saves almost everything. This includes: unwanted revisions, trackbacks, pingbacks, trashed items, unapproved comments, or comments marked as spam.

Just as your hard drive can become fragmented, your WordPress database can also suffer from a similar problem. However, you can use the WP-Optimize plugin to optimize your database, or WP-DB Manager which enables you to optimize your database and as well as schedule dates for regular database optimization.

Choosing the Right Plugins

Installing a lot of plugins can add a tremendous amount of junk to your site and site files. There’s no point in installing or keeping plugins you don’t really need.

The best approach is to audit your WordPress Plugins, keeping the ones that are critical to the running of your site, and remove the ones that are not.

Disabling Trackbacks and Pingbacks

By default, every time another blog mentions you, your site gets be notified. These are called pingback and trackbacks. You can turn off this feature in WordPress here: admin page -> settings -> discussion, and uncheck the first two checkboxes as shown below.

Disable Trackbacks and Pingbacks

Turning this WordPress feature off won’t harm your site.

Choosing a Good Theme or Theme Framework

While some WordPress themes are extremely fast and well coded, some are the exact opposite.

When choosing a theme, take note of the load speed of the theme’s demo page, this will give you an idea of the impact the theme would be adding to your site load speed.

Optimizing the Structure of Your Homepage

Showing post excerpts and minimizing the number of widgets and posts in a page is an excellet way to keep your homepage optimized.

Not only does this help your site load speed, it also improves your overall user experience. As I mentioned above, you only get one shot at making a first impression!

Enabling Keep-Alive

HTTP Keep-Alive is the idea of using a single Transmission Control Protocol (TCP) connection to send and receive multiple HTTP requests, instead of opening new a connection for each request.

Your web host might already have these sorts of settings enabled so check with them first, but if you have a typical hosting account, you can copy the line of code below into your .htaccess file to enable keep-alive.

Header set Connection keep-alive


In this article I’ve covered twelve of the best approaches to help speed up your WordPress website. Effective implementation of these methods will greatly improve your WordPress site load speed. Web performance is a broad topic, if you’d like to read more on the subject, here are a few articles that you might find interesting.

I look forward to hearing your WordPress performance tips in the comments below.

We teamed up with SiteGround
To bring you the latest from the web and tried-and-true hosting, recommended for designers and developers. SitePoint Readers Get Up To 65% OFF Now
  • Todd Zmijewski

    Not using WordPress?

    • THANK YOU. I moved on to Symfony knowing well long before how much I’ve wanted to escape WP. Most of these WordPress’ sites are trash because of generalized themes from the Envato network especially.

    • 25% percent of the CMS site owners disagree with you. With the recent merger of the first half of the REST API allowing custom endpoints to be created with ease it really opens the doors for front-end devs to create high speed websites using WordPress as the data provider.

      • I’m sorry, but WordPress gets gradually slow depending on how you slap it on a server. Using DigitalOcean’s $20 droplet, yes I’m able to consistently get 3k users simultaneously, but that’s on a basic site. Imagine using WordPress with all kinds of functions and plugins. Hell, I’ve had to create functions in themes (that I may end up calling extensions if I keep em on GitHub) just to get rid of plugins. Plugins are the devil. All the extra HTML/JS is the devil. Stripping WordPress down in a theme is a b**** sometimes. I’m glad Redis or static HTML cache is a thing.

      • “…opens the doors for front-end devs to create high speed websites using WordPress…”
        You are kidding right? Wp is overhyped blogging platform, not for devs, but for noobs to create “click, next, next, finish” websites. WP code is terible, and API is sh#$t. If you are developer, you would use ProcessWire, Craft, EE, MODX…, and dose platforms provide front end flexibility, not sh$%^ like WP. Using a wp and calling your self developer, is same as using kids coloring books and calling your self an artist. 25% site owners think they are using CMS, while using blogging platform. And last, its realy have to be something wrong with you to use wp and REST.

        • WordPress is both a blogging platform and a CMS (and an E-Commerce site ect).

          You’ve got big brands (The New York Times, CNN, UPS to name a few) spending big money on WordPress websites. You don’t drop big money like that “on a kids coloring book”, as you so eloquently put it.

          Like anything, it has its problems (which is slowly being improved). But its large user base means it’s very easy to retain a steady pay check for a freelancer (who by the way also uses frameworks like Laravel, Symfony and Phalcon).

  • I noticed the WP Minify plugin hasn’t been updated in over two years … anything more recent you’d recommend?

    • Yeah, change the platform :). Use code editor instead, minify your files. Use .htaccess to turn on gzip, browser caching, keep alive… and you won’t depend on some crappy plugins out there.

  • Thank you, Doyin.

  • Good collection of tips regarding wordpress site speed up. I agree that website hosting has a big impact on site speed and we must be careful while searching for a hosting provider. Cloudways is the best managed wordpress hosting provider.

  • Hi Doyin. Nice tips! I will like to suggest you an additional point which is to Lazy Load the images on the site. It is very helpful for sites with lots of images and external frames like Instagram feed.

  • Michael

    Thanks for a great article