Optimize WordPress For Heavy Traffic

Optimize WordPress For Heavy Traffic

Posted on 05. Apr, 2011 by in Faster WordPress

Following on from Faster WordPress, which went up on Shout a couple of weeks ago, this post explores how to optimise WordPress for high traffic. We’ll take high traffic in a small blog context — 1,000 or so visits in a day, but exactly the same techniques apply to much larger traffic blogs.

The average WordPress theme isn’t optimised. Whilst it may claim to be or may in fact be to an extent, the nature of WordPress themes means they have to be able to fit in any situation and so they are never going to be as well optimised as a theme which has been designed specifically for a single purpose. I’m not saying don’t use an off-the-shelf theme, just you’ll need to customise it in order to get the best performance out of it.

As we go through this post, the methods we’re going to use will get increasingly complicated — start with the first and go as far as you can!

Get a good host

You can do all the optimisation you like, but if your hosting isn’t up to scratch, it’ll have absolutely no use. Avoid over subscribed shared plans on the likes of GoDaddy and HostGator and get a plan that suits the level of traffic you’re likely to get. WPShout is hosted by WPWebHost and is on the equivalent of the Buddy Plan but is still on a server with 164 other sites — something far from ideal. I would, however, recommend WPWebHost. The support is on the whole good and, more importantly, the site stays up the vast majority of the time.

You can see which other sites are on your server with this tool.

Use a caching plugin

I can’t recommend W3 Total Cache enough. Whilst there are other caching plugins are available and they all have their own pros and cons, W3 Total Cache has a couple of extra features like support for a CDN and auto-minifying which make it invaluable. It is worth noting, though, that unless you set it up correctly it will have little or no effect and may even slow your blog down, as this post shows!

Things like the ability to minify and compress your HTML just by turning on the setting are great to have. Have a look at WPShout’s source and see for yourself!

As I mentioned last time, running a CDN is vital and WPShout runs on WPCDN – a service a can thoroughly recommend. Mark Bailey from WPCDN explains the advantages:

A CDN can increase a website’s performance by serving items from the closest possible location to the visitor. The web server would still provide the pages, but images and other larger items would be served from the CDN.

–Mark Bailey, WPCDN

If you, understandably, don’t want to pay for something which isn’t essential for your blog’s existence, have a look at the Free CDN plugin. I’ve no idea what speed boost it’ll give you, if any, so make sure you compare it with your blog’s current loading time.

Get rid of unnecessary plugins

Plugins which have extra Javascript files are a pain because they have a direct impact on the load time of every single page. Whilst you could do what I’ve done on Shout and manually combine the files and then remove the function that adds the JS in the plugin, you could just ask yourself whether you really need the plugin. Michael Martin from ProBlogDesign is currently redesigning PBD and had this to say:

The big thing with WordPress is working out what plugins you really need, and which actually aren’t worth the extra load times.

–Michael Martin

And he’s right! Do you really need a widget on your sidebar that shows the timezone in Australia? Review your plugins and only keep the ones you really need.

Experiment!

Experimentation is the way forward. Try out various combinations or plugins, caching, getting rid of things and the like and you should be able to find something that works for you. Good luck!

Follow on Twitter! Subscribe!

WPShout is hosted by the fine folks at WPWebHost.

You can get exactly the same hosting as WPShout has for $7.95/month with WPWebHost's Freedom Plan.

Plus get 30% off the Freedom Plan with the code WPSHOUT.

Visit WPWebHost

Alex's Gravatar

Alex Denning is the founder of WPShout. A WordPress developer from London, Alex is a keen musician and freelance writer and developer.

You can find Alex on Twitter.

8 Responses to “Optimize WordPress For Heavy Traffic”

  1. Adam Geralds

    06. Apr, 2011

    Thanks Alex for an awesome post. I’ll have to have a look at WPCDN :)

    Reply to this comment
  2. AJ Clarke

    07. Apr, 2011

    It’s strange but I’ve actually had better loading times without the WP Cache program. lol. My site is fairly well optimized to start with though…

    I think having a Good Host is what it really comes down too. If you are paying under $10/month for your hosting service you most probably can’t handle “heavy traffic”.

    Reply to this comment
  3. Elliot

    11. Apr, 2011

    You chose a small handful of brilliant options, which is what I like about this post :) Page speed is an absolute nightmare, eh?

    Reply to this comment
  4. sureshpeters

    16. Apr, 2011

    . i use the w3 total cache and CDN and other tweaks on .httacess and plugins to make my site faster . my site laods at 3 seconds
    check out my site
    softwarebuzzer

    Reply to this comment
  5. WPWebHost

    20. Apr, 2011

    Hi Alex. WPWebHost is proud to have you as our client.

    Reply to this comment
  6. About Web

    18. Jun, 2011

    I’m using Quick Cache plugin for caching my WordPress, and it’s fast.

    Reply to this comment

Leave a Reply

Please use your real name when commenting. Wrap code in <code> tags and make sure HTML is encoded. You can use regular HTML like <a href="... etc.

Get yours questions answered quicker

If you're using this post for paid work and have a question of any complexity then please ask at WPQuestions where you'll get a prompt response.