Windows Gadget: WordPress Statistics

For those of you who don’t like to read, this Windows Gadget can be downloaded from CodePlex here.

I have never actually used a Windows Gadget as I’m kind of a neat freak when it comes to my desktop. But, a couple of weeks ago I actually thought of a gadget that I would actually use: a WordPress gadget that allowed me to see view statistics of my blog as well as provide a few shortcuts to help administer my blog. I searched the internet and found one that has been developed that provides links to various actions on your blog here, but it didn’t provide any statistical information. So, I decided to create my own gadget.

For those who aren’t familiar with the development of a Windows Gadget, it is simply a set of web pages. When I discovered this, my first question was whether or not I could use Silverlight to develop my gadget and it turns out you can! I found a Visual Studio Project template created by Ioan Lazarciuc here that does all the setup and configuration for you. It is a great starting point and allows you to get right to the development instead of having to waste time figuring out which javascript methods have to called when, what the required markup is for the html pages, etc.

Here is a run through of the gadget:

Out of the Box – When you startup the gadget for the first time you will notice the “Configuration required” text at the bottom. Before you can view your stats and manage you blog you need to enter your blog information. Click on the wrench to open the gadget settings.

Settings – To use this gadget it must know two things: your blog uri, and your blog API key. The API key is like a password provided to you by WordPress and allows programs like this Windows Gadget to access statistical information. You can find it by logging into your WordPress account and clicking Users -> Personal Settings on the left hand navigation bar. At the top of the page you will see your API key. Copy and paste that into the Blog API Key text box.

Alternatively, you can enter your blog uri and click the Show Me link and a web browser will be opened directly to the page containing your API key.

Statistics – After you define the gadget settings and you click OK, the statistics for you blog will be loaded and you should see a line graph like the one pictured above.

Menu Options – If you click the arrow on the bottom right corner of the gadget you will see various menu items that will allow you to administer your blog. If you double click on any of them, you will be taken directly to the corresponding page.

Since this gadget was written with the Silverlight 4 Framework, you must have Silverlight installed on your machine for it to run. If you don’t have it installed, you will see the following image appear when you place the gadget on your desktop. If you click on the image, Silverlight will be downloaded and installed.

64-bit Users: If you have a 64-bit system, this image will appear even if you have Silverlight installed. The problem is that there is no 64-bit Silverlight Framework (just as there is no 64-bit version of Flash) but there is a 64-bit Windows Sidebar application which is started by default if you have a 64-bit system. Thus, if you want to run this gadget, you will need to have the 32-bit version of the Windows Sidebar application startup when Windows starts. John McClelland has posted instructions here on how to solve this problem (it says it is for Windows Vista but it works on Windows 7 as well).

This Windows Gadget can be downloaded here and the source code is available here. I consider this project still in beta but I currently use it every day and it appears stable enough for release. Let me know if you run into any issues by posting to the Issue Tracker on CodePlex.

Resources – I built this Silverlight based Windows Gadget using the following tools

16 Responses to “Windows Gadget: WordPress Statistics”

  1. Berita Harian Online Says:

    Good information..

  2. Jeorge Peter Says:

    Great, this windows gadget wil help me in my WordPress account.

    • Nick Olsen Says:

      Let me know if you have any problems with it as this is the first release. Hope you like it!

  3. Lisa Harris Says:

    Useful information and very well explained thank you!

    • Nick Olsen Says:

      Thanks! Hopefully you find it useful.

  4. gadget news and reviews Says:

    nice article
    i like this
    thank u very much

    • Nick Olsen Says:

      Glad you like it!

  5. Steve Thoeny Says:

    You are obviously VERY talented Nick! I sure enjoy having my WP stats readily accessible.

    In fact I enjoy the gadget so much I was thinking of running more than one copy for my other WP sites…it would be nice to have the blog uri displayed so I can tell them apart. Maybe a future release?

    Keep up the GREAT work and Happy New Year!

    • Nick Olsen Says:

      I’m glad you found the gadget useful. Multiple blog support is definitely in the future. I was thinking of supporting multiple blogs in the same gadget; either a drop down menu to select which blog’s stats you want to see or a single colored series for each blog in the same graph. If you desire, subscribe to the page dedicated to this gadget here to ensure you are notified when an update is released.


  6. Hody Says:

    Hello Nick,
    I have this gadget installed on two systems and find it most useful. I am using it since last year but yesterday it stopped working on both machines and giving me an error message, saying: On Error occured. Sorry for the inconvenience (SystemFormatException)

    Its installed on Win7 64BIT German Languagepack (both machines)

    Can you help me out?

  7. hodyshoran Says:

    Hi Nick, I am still using this awesome Plugin, but now I am using it it fro two blocks, is there any way to add a label to the widget?

    • Nick Olsen Says:

      I’ll see what I can do. I don’t have a ton of time on my hands but I will try and get something that will solve your problem.

  8. hodyshoran Says:

    Thanks mate, much appreciated!

  9. Hody Says:

    Hi Nick, me again. I recently upgraded to Windows 8 and found it, the sidebar function of windows 7 can be installed. The problem ist that only the 64bit sidebar will work in the 64 bit version of Windows 8. Is there a chance to still get this gadget going or do you maybe have a metro app for WordPress stats for Windows 8?

    Thank you very much

  10. go to my blog Says:

    Hello, its pleasant post regarding media print, we all be familiar with media is a impressive source of facts.

  11. WordPress Statistics v1.0.4 › Diary Of A Fatman – RUN FATBOY RUN! Says:

    […] ist das Gadget aufs Nick´s Seite hier zu finden dort sind auch reichlich Screenshot und eine bebilderte Erklärung der Funktionsweise zu sehen. Da […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: