Tag Archives: WP Super Cache

baby names blogs form usability Google Google Docs how-to Javascript journalism robots.txt WordPress

Spring Cleaning – 4 Steps to Rehab Your Old WordPress Blog

I’m thinking about doing a bit more writing, and to be honest I have left this blog pretty unloved since my last redesign in… hmmm… 2008? Much has chanced since then – for example, a huge percentage of visitors these days are on tablets and mobile devices. Your old WordPress theme might not look very nice on an iPhone or Nexus 5 (I know mine didn’t).

I spent a couple of hours shaking the cobwebs off my old WordPress site, taking it from this:

The old WordPress default theme with minor tweaks

To what you’re looking at now. I also made a few small changes to speed up my blog.

Step 1: Update your theme

This used to be a huge pain, requiring you to download files, customize the HTML and CSS, and upload it to your server. The WordPress theme system is a lot friendlier now. I just went to to Appearance -> Themes and clicked the “Add New” button. This gives you search box, but I found the “Featured” link was the best place to start. I chose TwentyThirteen, it allows me to set a nice big header image and it looks good on different screen sizes. The current header is a photo of the Sierras from Lone Pine, CA.

Step 2: Clear out old widgets and code

I used to have a bunch of extra widgets in my blog, but many of them were never really useful for my readers or now pointed to defunct services (I still miss you, Google Reader!). I cleared out a Feedburner widget, an old version of the Google Translate widget, and a few other things. You might be surprised how much you can improve your site’s loading time just by deleting some inefficient Javascript.

Step 3: Speed it up

Speaking of loading time, my site was abysmally slow. Not slow enough that I noticed on my fast connection at home, but faster sites make users and search engines happier. One of the best tools to find bottlenecks is Google PageSpeed. You can have Google analyze your site and get a detailed report of the problems or install a Chrome or Firefox extension to check from your browser.

A few things worth checking:

  1. Are you compressing your files? You can set up Gzip compression on your server or use a plugin like WP Super Cache.
  2. Are you telling browsers when they can use their own cache? Instead of sending a page or image to a user, you can let them know they can use their cached version with a 304 Not Modified HTTP status code. WP Super Cache also has a setting for this.
  3. Are you hosting your own copies of common libraries like jQuery? I’m using a plugin called Use Google Libraries that points to widely-cached copies of these files on Google’s servers.
  4. Are you regenerating pages from PHP and MySQL every time someone visits? If your pages don’t change very often, use WP Super Cache.

Step 4: Actually start writing again

This is the hard one. I feel like between work, family, and posting small things to social networks, I’ve lost the time and energy to write longer-form articles. I have a fun project coming up that will definitely prompt some posting, and this article itself is a start, right?

If you have any other tips for cleaning up a WordPress blog or getting back into writing, let me know in the comments.

Choosing the Best Baby Name is Hard on your Server

We reproduce, you decide! We’ve hit well over 2000 votes on our baby name survey, and so far my blog has held up well (thank you, WP Super Cache). The traffic has been enough at times to slow the Google Docs form and graphs. To get slightly back on track for this blog, here’s a quick usability lesson – as a form becomes less responsive to users, double- and triple-submissions will increase.

Votes have been coming from all sorts of interesting places:

  • Many, many Googlers contributed votes. Obviously I can’t link to any internal company discussion, but I can assure you it was equal parts amusing, helpful, and nerdly. I had a fun time explaining all the programming jokes to Ann, particularly why we won’t be naming the baby after little Bobby Tables. Wysz supplied the very first votes, for Erin and Isaac.
  • For some international perspective, The Telegraph wrote about the survey in their “How About That?” column. If anyone has a copy of today’s print edition, I’d love to see if the story made it’s way on to dead trees, given my former journalistic predilections. I really got a kick of the headline, “Google man asks Internet to name his baby” – now that I’ve been publicly outed as Google Man, I’ll need to start wearing my cape to work.

If I’ve missed any, please add them in the comments below. And if you’re having trouble voting or seeing the charts and graphs, try again a little later – I think I my use of Docs and Spreadsheets is somewhere between “statistical outlier” and “abusive” at this point.