Techniques: 5 ways to speed up WordPress

The last few weeks haven’t been the happiest time for my blog because of hosting issues, network problems, and server problems. But with them out of the way, I came across an interesting article on Lorelle on speeding up your WP installation. So I’m putting this in my ‘Sunday Projects’ category:

The 3 Easiest Ways to Speed Up WordPress
So, in the past 2 weeks I’ve had 3 articles hit the front page of Digg. Let me just tell you, the onslaught of traffic can bring a server to it’s knees. Over the last many months I’ve learned a thing or two about tweaking WordPress, and while this is not meant to be an exhaustive tutorial on how to survive a Digg, it will give you some tips that can definitely improve your blog’s performance for all of your visitors.

OK, what have I done? Let’s see, I’ve done five things to speed things along.

1. Unused Plugins: Or what do you do when you have more than 30 plugins?

On Lorelle’s advice, I moved ALL my unused plugins to a separate folder in my root folder, out of the way of the WordPress Software. If I need them, I can move them back. If not, why are they are there? She noted that they will slow down a WP installation.

2. Unused Themes: 49ers?

I also moved my 49 unused themes (some of them quite hideous) to the same location. I don’t know if it made any difference or not, but finding the theme should be much quicker when there is one in the theme presentation folder!

3. My Sidebar

I cut down, removed, and converted elements in my sidebar. I cut down on useless stuff such as Javascripts to online services (I only kept Payperpost, Google Adsense and Analytics, and Alexa). I trimmed my comments and recent posts to only five items each to see how that would fare. Also, I decided only to have twelve categories after all. I simply copied the text from the front page, pasted it into a new post, switched to code view, retrieved that new HTML code, and pasted it into an already used widget. You can’t tell, can you? I also did the same thing to the blogroll. Still can’t tell, can you?

4. Maximum number of posts per page

I trimmed the number of posts on each page to three. Most people have five or even ten, but I can’t at the moment. It slows the server down too much. So I opted for three. It’s not ideal, but…

5. Standard PHP Code

I am slowly thinking of following another of her suggestions: switching ‘static’ php code to its html equivalent to speed up things. For example, in this theme, a PHP call for the blog URL and title and so on would require three separate routines for the same information (ie. the same everytime it’s called). I’ve kind of already done it with the sidebar itself. I’m thinking of switching to HTML from PHP for some of the plugins that I use or use to have: such as using a real robots.txt file instead of a plugin, re-adding my signature as HTML with local hosted images, and so on. I already removed the footer PHP for that reason and the Archives page has become static HTML, too.

Anyway, we’ll see how it goes. In the meantime, I’d like to thank Jorge at Investing Adventures dot com for keeping an eye on things and giving me feedback when my blog is slow. It was taking 20 seconds or more for a page to load, right now as I type this pages are loading in under 10 seconds. But I’ll keep an eye on the load, speed and traffic over the next few days to make sure things are ‘normal’.

Dreamhost: A good place to start hosting

If you have never hosted your own website’s before, it’s actually not that complicated. But still those first steps into the unknown can be actually quite tricky. I’ve been a Dreamhost customer for quite some time, 2004 in fact. During that time, I’ve had good service, lots of space to grow, and some great tools!

Of Dreamhost, Servers and Coupons for all!

As I’m happy to report that I’ve been moved to a new Virtual Server, courtesy of Dreamhost. I had been thinking about it for a while, and finally opted to go for it after the problems with the blog on a shared server. You can check out how the PS works here. Since Dreamhost is now offering only one plan, I opted for that, and decided to spend the extra money on my server. Here are my stats for the last few days, it’s fun to see how things go up and down. There’s also a reboot server button for when things get sticky! It works a treat.

dhps

I’ll be doing a full review of the service in about a couple of weeks. Suffice to say, if you’re interested, you can use my special Dreamhost Coupon. To celebrate Dreamhost’s 10th birthday, I’m offering the Triple 10 – That’s get 10% more bandwidth, 10% more space, and 10% off the price, too, on ANY plan, and that’s in addition to the discounts that Dreamhost is offering for longer term contracts.

Payment Period

Cost

Discount

Monthly

$60.90

$5.10

Yearly

$119.40

$11.94

Two years

$214.80

$21.48

Three years

$286.20

$28.62

Five years

$417.00

$41.70

Ten years

$714.00

$71.40

If you’re interested, when you sign up, you can use the DreamHost Promo Coupon Code: DH10THBIRTHDAY . And yes, pass it on!

WordPress version 2.3: out and about

I saw the news, and I wanted to be the first to post about it (I was actually) but I was too tired to do it before I went to bed… That John guy has beaten me to the punch. So here’s my take on what is in the release:

1. Native tagging support allows you to use tags in addition to categories on your post, if you so choose. We’ve included importers for the Ultimate Tag Warrior, Jerome’s Keywords, Simple Tags, and Bunny’s Technorati Tag plugins so if you’ve already been using a tagging plugin you can bring your data into the new system. The tagging system is also wicked-fast, so your host won’t mind.

Ahem… Do I need another system for Google to find even more ‘duplicate’ posts…? I don’t think so.

2. Our new update notification lets you know when there is a new release of WordPress or when any of the plugins you use has an update available. It works by sending your blog URL, plugins, and version information to our new api.wordpress.org service which then compares it to the plugin database and tells you what the latest and greatest is you can use.

This could be seriously useful, as I do get behind with my plugins on the different blogs I manage.

3. We’ve cleaned up URLs a bunch in a feature we call canonical URLs which does things like enforce your no-www preference, redirect posts with changed slugs so a link never goes bad, redirect URLs that get cut off in emails on similar to the correct post, and much more. This helps your users, and it also helps your search engine optimization, as search engines like for each page to be available in one canonical location.

Ah… A link that never goes bad. Should be helpful when I change my options in permalinks (again!).

4. Our new pending review feature will be great for multi-author blogs. It allows authors to submit a post for review by an editor or administrator, where before they would just have to save a draft and hope someone noticed it.

While this is not relevant for my primary blog, I’m looking forward to that feature as an alternative to Role Manager. I’ll be using it on my business website, though, (probably along with Role Manager).

5. There is new advanced WYSIWYG functionality (we call it the kitchen sink button) that allows you to access some features of TinyMCE that were previously hidden.

Some of the features were already via a short cut on the keyboard, wonder if that is better than the short cut trick.

Interesting, but I think I will stave off the upgrade till version 2.3.1 comes out squatting the bugs. I may try the release on a minor site of mine, just to play with it.