Blog Stats Plugin for WordPress
In addition to a visual overhaul, WordPress 2.5 added several new plugin hooks, including a widgetized dashboard. The new Blog Stats Plugin for WordPress adds blog stats to the dashboard, and makes integrating the tracking code into a theme simple.
It’s also the first use of W3Counter’s “visitor labeling” I previewed in October (spooky visitor labeling). By using the plugin instead of inserting the tracking code manually, the names of any previous commentors on your blog is picked up from the cookie WordPress sets and passed on to W3Counter.
Creating a dashboard widget was surprisingly easy. Of course, most of the code isn’t in the plugin — I just fill the widget’s box with an iframe that pulls up the stats from a specially formatted w3counter.com page. Some JavaScript trickery passes in the width of the box on your screen — if it’s narrow, you get two columns of stats, but if your window is approximately 800 pixels or wider, you get three.
If you’re using W3Counter on your blog, and have upgraded to WordPress 2.5, download it now.
