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

Posted: 3/31/2008
In WordPress

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.

  • del.icio.us
  • Facebook
  • StumbleUpon
  • Digg
  • LinkedIn
  • Technorati
  • E-mail this story to a friend!

Thread {13 Responses}

April
4/01/2008

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.

Bapes
4/04/2008

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

[...] 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) [...]

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

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!)

Randa Clay
4/12/2008

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.

Charity
4/13/2008

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 :)

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

Dunks
7/08/2008

Thats a great bit of advice which I will certainly put to good use. Thanks for sharing this information.

CanI Clean It
11/14/2008

Thanks, this is one of the better posts I’ve read today. I share your vision about that. Thanks man!

Alan
12/06/2008

Hello Charity:

Since WP optimization plugins “All in One SEO Pack” and “SEO Title Tag” are no longer supported and maintained, I did a Google search “wordpress optimization” where I found you (ranked #9)… but read yours 1ST. Also appreciate the referral to “YSlow”, “Firebug” and “Clean Options.”

Thank you for a clean, well-written optimization article. :)

Habibie
4/25/2009

It’s first time for me, landing on your blog. I’ve start reading your posts recently and I am really enjoying it. Nice!
I think WP-Super Cache is important, I used it to make my blog load faster.

Kris Belucci
6/02/2009

Great post! Just wanted to let you know you have a new subscriber – me!