Categories: Wordpress Plugin
Simple WordPress Stats Plugin to show various vital blog statistics to your visitors. Currently it can be used to show off the following stats of you WordPress site:
- Google Page Rank
- Alexa rank
- Technorati rank
- Feedburner Feed Count
- Twitter follower count
- Number of Blog Posts
If you don’t want the hassle of updating your “Advertise Here” page of your blog every few days with the important statistics then this plugin will come in handy.
You can also show the stats widget on your sidebar.
Blog Stats Plugin Screenshot
Blog Stats Plugin Installation
- Unzip and Upload the folder ‘wordpress-blog-vitals’ to the ‘/wp-content/plugins/’ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Settings and configure the options eg. which stats you want to show off, caching time etc.
- Use the widget, trigger text or call the php function to show the stats.
Blog Stats Plugin Usage
There are three ways you can use this plugin:
1. Add the following shortcode to a post or page to show the stats
2. Use the following function from a template (.php) file
3. Use the ‘WP Blog Vitals’ widget from the widgets menu
Blog Stats Plugin Settings
Here is a screenshot of the settings menu showing you what you can configure.
The following php functions can be used to display/retrieve specific stats:
- <?php echo vitals_getpagerank(URL); ?> – Displays the Google page rank of the URL specified.
- <?php echo vitals_get_cached_alexa_rank(URL); ?> – Displays the Alexa rank of the URL specified.
- <?php echo vitals_get_cached_technorati_rank(URL); ?> – Displays the Technorati rank of the URL specified.
- <?php echo vitals_get_cached_post_count(); ?> – Displays the total number of blog posts.
- <?php echo vitals_get_cached_comments_count(); ?> – Displays the total number of blog comments.
- <?php echo vitals_get_cached_pingbacks_count(); ?> – Displays the total number of trackbacks.
- <?php echo vitals_get_cached_twitter_count(“twitter_username”); ?> - Displays the total number of Twitter follower count.
Replace ‘URL’ with the actual URL of the site. For example, to show the Alexa Rank of tips and tricks HQ site I would use the following code in my .php (template) files:
The cached version of the function is used rather than the live one to improve page load time.
Donation option can be found on my projects page.
Download Latest Version (v1.7)
Download the WordPress Blog Vitals plugin.
I will be updating this plugin over the next few months and add more stats and other options. Feel free to leave your suggestions in the comment area below and don’t forget to subscribe to stay upto date.
Checkout the list of best WordPress plugins to find out what other plugins you should be using.