WordPress Blog Vitals Plugin – Show Your Blog’s Vital Statistics to Your Visitors

Categories: Wordpress Plugin

wordpress_blog_vitals_128

Simple WordPress Stats Plugin to show Google Page Rank, Alexa rank, Technorati rank, Feedburner Feed Count, Number of Posts, Comments, Trackbacks etc anywhere on your wordpress blog to show off to your visitors. 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.

download_icon

Plugin Screenshot

WordPress Blog Vitals Screenshot

WordPress Blog Vitals Screenshot

Demo

You can see a working demo of this plugin on the sidebar of this blog.

Installation

  1. Unzip and Upload the folder ‘wordpress-blog-vitals’ to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings and configure the options eg. which stats you want to show off, caching time etc.
  4. Use the widget, trigger text or call the php function to show the stats.

Usage

There are three ways you can use this plugin:

1. Add the following shortcode to a post or page to show the stats

wp_blog_vitals]

2. Use the following function from a template (.php) file
blog_vitals_php_function

3. Use the ‘WP Blog Vitals’ widget from the widgets menu

Additional Documentation

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.

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:

<?php echo vitals_get_cached_alexa_rank(‘http://www.tipsandtricks-hq.com’); ?>

The cached version of the function is used rather than the live one to improve page load time.

Donation Option

Donation option can be found on my projects page.

Download Latest Version (v1.4)

Download the WordPress Blog Vitals plugin.

I will be updating this plugin over the next few days 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.

  • Share/Bookmark
Tags: Statistics, Wordpress Plugin

Similar posts that you may like

Subscribe to Tips and Tricks HQ to stay informed

twitter_icon

66 Comments (and 2 trackbacks)

  • #1 by baron on April 17, 2009 - 9:26 am

    Works great, thank you

  • #2 by Dragon Blogger on April 17, 2009 - 11:41 am

    Getting serious error when trying to embed inside a page or post:
    I am trying to use this:

    Fatal error: Using $this when not in object context in /home/germinoj/dragonblogger.com/wp-content/plugins/show-wordpress-blog-vital-stats/vitals-misc-functions.php on line 33

  • #3 by elizer on April 17, 2009 - 3:53 pm

    i have many file in my template

    * 404 Template (404.php)
    * Archives (archive.php)
    * Archives Page Template (archives.php)
    * Comments (comments.php)
    * Footer (footer.php)
    * Header (header.php)
    * Links Page Template (links.php)
    * Main Index Template (index.php)
    * Page Template (page.php)
    * Page without sidebar Page Template (page-without-sidebar.php)
    * Search Results (search.php)
    * Sidebar (sidebar.php)
    * Single Post (single.php)
    * Theme Functions (functions.php)

    where should i put that code..??

    thanks

  • #4 by admin on April 17, 2009 - 10:11 pm

    @Dragon Blogger, most likely you don’t have ‘snoopy’. I am going out for the weekend but I will investigate this when I get back.

  • #5 by admin on April 17, 2009 - 10:12 pm

    @elizer, put the code wherever you want to show the stats. Fore example if you want to show the stats on your footer then put it in the ‘footer.php’ file.

  • #6 by gina on April 17, 2009 - 10:57 pm

    Also getting same error as Dragon Blogger.

  • #7 by Ben on April 18, 2009 - 11:22 am

    Hi Admin:
    It’s about time someone write a plugin like this.
    Here are my suggestions for expanding this plugin:
    – General Stat: Number of commenters
    – Twitter: No of followers
    – Feedburner: No of feed subscribers; No of email subscribers
    – Technorati: Authority (you already have Technorati Rank but not authority)
    Keep up the good work!
    Ben

  • #8 by Eric on April 19, 2009 - 3:45 am

    Also getting the error from Dragon.
    Hope you find the solution since your plug looks interesting

  • #9 by admin on April 19, 2009 - 9:06 pm

    Just released a new version. This should fix the error you were getting when trying to show the Technorati rank. Please download the new version and use it… let me know how you go.

  • #10 by admin on April 19, 2009 - 9:08 pm

    @Ben, Thank you for your suggestions… I have put them in my future to do spreadsheet for this plugin. I will include those stats in a later release.

  • #11 by Eric on April 20, 2009 - 11:47 am

    instaled new version and it shows correctly now, seems solved for now
    thanks

  • #12 by abbie on April 21, 2009 - 10:49 am

    Downloaded!
    Thanks for developing such a nice plugin.
    :)

  • #13 by ovizii on April 23, 2009 - 9:30 am

    tried it on one of my sites, the widget title shows jsut fine, but when I look into the source code it shows:

    `Blog Vitals


    `

    so something is broken here. I have already deleted the cache, still no output. any ideas?

  • #14 by ovizii on April 23, 2009 - 9:32 am

    oh, I just went back to the widgets configuration and instead of seing the widget and being able to remove it, I only see:

    `%BEG_OF_TITLE%Blog Vitals%END_OF_TITLE%`

  • #15 by ovizii on April 23, 2009 - 9:36 am

    found it: dunno why but the plugin folder was named: show-wp_blog-vitals or similar, so somewhere the paths got mixed up :-( all solved now.

  • #16 by wq on April 30, 2009 - 12:41 pm

    why is my google page rank 0? is there an error or is my site not listed in the engine? do i need to edit or key in my URL for it to work properly or will it detect my URL automatically?

  • #17 by garry_bajaj on April 30, 2009 - 2:17 pm

    Hi,
    I am facing a problem in my project,i am creating a wordpress based shopping cart.For this i have pluged wp-estore plugin and nextgen gallery plugin,i also integrated both the plugins. gallery imgages are being displaying on the post and shopping cart also displaying on the sidebar with paypal.
    The problem is that ,i want when user click on the image displayed on the post area , then that image should display on the next page with add to cart button and then that transfer to cart if user want to purchase it.please help me to solve this problem.

  • #18 by admin on April 30, 2009 - 9:38 pm

    @wq, the pluging will detect the URL of your blog automatically.

    why is my google page rank 0? – You need to ask Google why your page rank is 0. This plugin just retrieves your page rank from Googles server and shows it.

  • #19 by admin on April 30, 2009 - 9:45 pm

    @Garry, please leave your comment on the appropriate plugin page.

  • #20 by mssmotorrd on May 3, 2009 - 8:48 am

    It’s the first time I commented here and I must say you share us genuine, and quality information for bloggers! Good job.
    p.s. You have a very good template for your blog. Where did you find it?

  • #21 by admin on May 3, 2009 - 7:29 pm

    Hi mssmotorrd, Glad to hear that. I bought the wordpress theme a while back and then customized it so much that it doesn’t look like the original one anymore.

  • #22 by The Local Landing on May 5, 2009 - 11:53 am

    This is a fun plugin.
    Maybe we’re just internet junkies, but have you thought of incorporating MySpace, Facebook, Twitter, YouTube friends into the rankings? All with a neat little button like you’ve got showing how many friends/followers for each of those social networking sites?

  • #23 by admin on May 6, 2009 - 5:08 am

    Twitter is in my list of ‘stats to add’ but didn’t think about MySpace, Facebook and YouTube. I will explore the options… thanks for the suggestion.

  • #24 by Theo on May 7, 2009 - 5:16 am

    Same problem as Dragon Blogger.

  • #25 by Theo on May 7, 2009 - 5:20 am

    By the way, I Do have Snoopy. So……

  • #26 by Theo on May 7, 2009 - 5:28 am

    The problem is not in Snoopy, the problem are these statements in your code

    $this->snoopy->

    just change them to

    $snoopy->

    and the problem is fixed !

  • #27 by admin on May 7, 2009 - 7:23 am

    @Theo, yeah I fixed that in version1.1. Thanks for pointing it out

  • #28 by Boddhayan on May 8, 2009 - 3:09 am

    Nice widget. But does it have a workaround to work for the free wordpress blog?

  • #29 by Max on May 12, 2009 - 4:23 am

    Nice post, thanks!

  • #30 by Scott on May 19, 2009 - 11:52 pm

    I have a Google Page Rank of 3 cannot get this to show anything but 0. Everything else is fine. Any workaround?

  • #31 by admin on May 20, 2009 - 3:19 am

    @Boddhayan, unfortunately WordPress.com doesn’t allow the use of plugins.

  • #32 by admin on May 20, 2009 - 3:29 am

    It shows the PageRank of your WordPress Installation’s URL. Did you install your wordpress to a sub directory and then change it to other directory using the .htaccess file? Also remember that the plugin caches the results so it is not making a query on every page loads… so it will only recalculate the stats after the cache timer expires.

  • #33 by kaye on June 6, 2009 - 2:48 am

    hello! thanks for this great plug-in! it’s an eye candy. i do have one prob though. the page rank image won’t show. i wonder why?

  • #34 by admin on June 6, 2009 - 4:13 am

    Hi Kaya, I have changed the image directory structure of the Google Page Rank in version 1.1. So if you used v1.0 before and upgraded to a later version then I think it is still caching the old image URL. Give it some time for the cache to expire (cache expiry time) and it should pick up the new one on it’s next iteration. Let me know how you go.

    PS. an eye candy plugin like this is needed on an eye candy site like yours :)

  • #35 by The Local Landing on July 22, 2009 - 10:43 am

    Update today… where’s the changelog? What’s new?

  • #36 by alfon on July 26, 2009 - 8:30 am

    thank a lot for the plugin its really work :)
    alfon´s last blog ..Harnessing Action to stop Smoking My ComLuv Profile

  • #37 by doruman on September 7, 2009 - 5:41 am

    Thank you for your work offered for free. Your plugin could create more trusting if it could be downloaded from WordPress.com. I saw what you wroted a little above, how knows, maybe it would be possible in the near future. I wish you good luck!

  • #38 by Rob Aid on September 9, 2009 - 5:58 pm

    Is there a way to show singular stats from within a page instead all? If not, it would be nice to add that feature.

    For example:
    <!–wp_blog_vitals_page_rank–>
    Rob Aid´s last blog ..ASIMO can recognize three speakers simultaneously My ComLuv Profile

  • #39 by admin on September 10, 2009 - 1:59 am

    Hi Rob, I will add it in the next release

  • #40 by Greg Satell on September 10, 2009 - 1:51 pm

    Where do I actually see the statistics?

    I put the code in a post with this URL: http://www.digitaltonto.com/archives/329

    - Greg
    Greg Satell´s last blog ..Can Magazine Publishers Transform Themselves into Digital Giants? My ComLuv Profile

  • #41 by Ark's on September 11, 2009 - 1:12 am

    Hi… i had try this plugin already but i only can see PR image… there s no alexa image, techo image, etc…how to fix this?
    Ark’s´s last blog ..Shower time, baby My ComLuv Profile

  • #42 by admin on September 11, 2009 - 5:28 am

    Hi Ark, please download the latest version from this page. WordPress.org probably has a slightly older version (I haven’t updated it on wordpress.org yet)

  • #43 by admin on September 11, 2009 - 5:29 am

    @Greg, you see it where you put it.. please make sure you put the tag in HTML view of your post or page.

  • #44 by Mullikin on October 8, 2009 - 2:57 pm

    Works fine nice work!

    Hose Reels

  • #45 by farbige kontaktlinsen on October 20, 2009 - 1:07 pm

    Thanks for sharing this, it will really improve my use of twitter.

  • #46 by ali on October 27, 2009 - 7:47 pm

    Well done guys , nice plugin and l might use this for blog
    ali´s last blog ..Turkish coast this week My ComLuv Profile

  • #47 by Young Blogger on November 4, 2009 - 3:48 pm

    This looks like a very handy plugin. I have downloaded and will install on my blog.

    Thanks for this great plugin
    Young Blogger´s last blog ..Why Teens Should Start Blogging for Bucks Now My ComLuv Profile

  • #48 by HighTechDad on November 5, 2009 - 8:05 pm

    Love the plugin. It’s extremely useful.

    However, today I noticed an error on the page where it is running:

    Warning: Missing argument 1 for vitals_http::getFromUrl(), called in /home/missing3/public_html/hightechdad/wp-content/plugins/show-wordpress-blog-vital-stats/class_vitals_http.php on line 78 and defined in /home/missing3/public_html/hightechdad/wp-content/plugins/show-wordpress-blog-vital-stats/class_vitals_http.php on line 127

    You can see it here: http://www.hightechdad.com/about

    Any thoughts?
    -HTD

CommentLuv Enabled

Featured & Popular Articles

Tips and Tricks Hot Items

wordpress_estore_icon
wordpress membership plugin
WordPress PDF Stamper Plugin
WordPress Affiliate Link Manager Plugin
wordpress_affiliate_plugin_icon