WordPress Optimization - 5 Ways to Clean Up and Speed Up Your Blog

Mar 31st, 08 | 8 remarks

The beautifully streamlined WordPress 2.5 is officially here, and that makes it the perfect time to do some back end reviewing of your blog. Besides, it’s Spring! I can’t think of a better time to do some deep cleaning. :) While it’s true the latest release has made great strides, there’s still a lot we can do as individual bloggers to optimize the performance of our sites. Reevaluating the need for a particular plugin, inspecting server load times, and tossing out scattered database remnants helps to keep things humming along.

First, some Diagnostics

One quick way to figure out how many queries your blog is making is to insert this little snippet somewhere in your footer:

<!-- <?php echo get_num_queries(); ?> queries -->

After uploading, refresh and view source on whichever page(s) you want to check. The number of queries will be variable. My homepage has 41 queries for example, while most other pages have 10-17. That at least indicates where I need to make improvements.

For a more comprehensive look at your site, get YSlow. It’s is a terrific little Firefox add-on which runs analysis checks and reports back with suggestions for improvements. Also ties right in with Firebug.

Purging Code

There’s always some new blog thingamajiggy being released. If you get excited about widgets and plugins, then just as quickly get bored and uninstall them - don’t forget to remove the snippets which call the functionality!

Do you use multiple stats programs? You might consider picking one or two, then removing the excess javascript for the metrics you abandon. The header.php and footer.php files are the two biggest culprits for user added, load-bearing code… and they’re easy to forget about. Deleting unnecessary tags from your header may also be beneficial.

Maintaining a Healthy Database

How long has it been since you opened up phpMyAdmin or took a gander at your database? If you install/uninstall a lot of plugins, it might be in need of a tune-up. Clean Options can help with that task. Basically, it sweeps up orphaned data from the Options table. It has limitations, but it’s a great start.

Out With the Old

One word - Categories. Do you have way too many? How about reeeeeally old posts which are not only irrelevant now but possibly riddled with broken links? And what about plugins you were using prior to the release of 2.5 which are now (or will be) deprecated? Things like Search Everything, Click Tags and most Avatar plugins come to mind, because the functionality for each is now supported in the WP core. Remember, even deactivated plugins just sitting on your server can bog down load times!

A Need for Speed

Geekery is a wonderful thing (especially the Wordpress flavor), and thanks to people way smarter than me there are plugins like WP Super Cache, which will help tremendously if you have a large database, or take a Digg hit.


  1. April

    Wow, I didn’t have any idea about deactivated plugins being a problem. I will go and delete all the ones I’ve decided not to use any more. Thanks.


  2. Bapes

    Hey!Thanks for the info. Will deffinitely use it to fiz some of the bugs I have. Cheers!


  3. links for 2008-04-05 at graemehunter.co.uk

    [...] WordPress Optimization - 5 Ways to Clean up and Speed Up Your Blog | Design Adaptations tips for improving the performance of your WordPress blog (tags: wordpressoptimization) [...]


  4. 25 inspirational design and creativity blogs :: Aaron Russell

    [...] Latest post: WordPress optimization - 5 ways to clean up and speed up your blog [...]


  5. LaurenMarie - Creative Curio

    Bookmarked on del.icio.us! I just updated WP, too, and going through and optimizing code sounds like a great idea. Thanks for the info, Charity! I want to definitely update categories and add tags to my posts. Gonna take a bit of time, but I’d like to have it ready by the time I launch my new theme (don’t get too excited, it’ll probably be a while!)


  6. Randa Clay

    Thanks for this Charity - esp. for the YSlow info (though your link is broken…) I was looking for something specifically like that to diagnose a client site, so I appreciate it.


  7. Charity

    Lauren - I can’t wait to see! I’m knee deep in the midst of reorganizing/redesigning basically everything on my site, and losing patience with myself over it too I might add. ;) I know you’ve been working on your redesign for a while too - I’m sure it’ll be gorgeous and worth the wait.

    p.s. I just weeded out 120+ tags down to 60! It wasn’t until 2.5 when I saw them all in a list that I even realized I had so many!

    Randa - Thanks for the correction. When a post sits for a while before anyone speaks up about something broken, I always wonder how many people click but don’t bother reporting it. Not very helpful to anyone so I’m glad you told me :)


  8. Posicionamiento Valencia

    Fine resources. I think yslow can be a great tool for me.

Post your remark

Other Recent Articles

In Design »

The Evolution of a Logo (I Can Live With)

06/19/08
One of the most frustrating things for me since I started writing on this blog was the lack of a logo I really loved. That's not to say I haven't tried. But logo design, to me, is kind of a thing all it's own and I'm just not very good ... [ » ]

In Freelancing »

Family and Freelancing - The Ultimate Balancing Act

05/29/08
A couple weeks back FreelanceSwitch had an excellent article on how so many freelancers tend to disrespect their own time. It was an article I seriously needed to read, because I'm one of them. It's often not by choice, however. Due to parental demands or household responsibilities which must be ... [ » ]

In Productivity »

15 Apps/Services I’d Actually Pay For

05/17/08
Have you ever stopped to consider how heavily you rely on free or open source services? There are a number I use daily that improve/simplify my life or business, but until I saw Mark Ghosh's list of 15 websites or services he'd actually pay for (spurred by Ryan Spoon's post ... [ » ]