Simple Blog Stats

Description

Simple Blog Stats (SBS) provides shortcodes and tags to display site stats in posts, pages, and anywhere in your theme.

Display Statistics

  • Total number of posts
  • Total number of pages
  • Total number of drafts
  • Total number of comments
  • Number of comments in moderation
  • Number of approved comments
  • Number of registered users
  • Number of categories
  • Number of tags
  • Number of words for any post
  • Number of words for all posts
  • Display all blog stats in a list

Plugin Features

  • Provides shortcodes to display stats in Posts and Pages
  • Provides template tags to display stats anywhere in your theme
  • Configure text/markup to appear before and/or after each shortcode
  • Built with the WP API for optimal performance and security
  • Provides slick settings screen with toggling panels
  • Provides option to restore default plugin settings
  • Displays your stats with clean, valid markup
  • NEW! Display stats via Dashboard widget

More Statistics

  • Display date of most recent site update
  • Display list of recent posts (configurable)
  • Display list of recent comments (configurable)
  • Display number of users per role (configurable)
  • Display all blog stats in a nicely formatted list
  • Configure all shortcodes via the plugin settings
  • Eat a bowl of ice cream 🙂

Support development of this plugin

I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a cash donation, bitcoin donation, or purchase one of my books:

And/or purchase one of my premium WordPress plugins:

  • BBQ Pro – Pro version of Block Bad Queries
  • Blackhole Pro – Pro version of Blackhole for Bad Bots
  • SES Pro – Super-simple & flexible email signup forms
  • USP Pro – Pro version of User Submitted Posts

Links, tweets and likes also appreciated. Thanks! 🙂

Screenshots

  • Simple Blog Stats: Settings Screen (panels toggle open/closed)

Installation

Installation

  1. Upload the plugin to your blog and activate
  2. Visit the settings to configure your options

More info on installing WP plugins

Usage

Visit the SBS settings page to configure your shortcodes. Then copy/paste the shortcodes in any Post, Page, or Widget to display your stats. To display your stats anywhere in your theme template, visit the Template Tags section of the settings page.

Upgrades

To upgrade SBS, remove the old version and replace with the new version. Or just click “Update” from the Plugins screen and let WordPress do it for you automatically.

Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.

Restore Default Options

To restore default plugin options, either uninstall/reinstall the plugin, or visit the plugin settings > Restore Default Options.

Uninstalling

Simple Blog Stats cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.

FAQ

Installation Instructions

Installation

  1. Upload the plugin to your blog and activate
  2. Visit the settings to configure your options

More info on installing WP plugins

Usage

Visit the SBS settings page to configure your shortcodes. Then copy/paste the shortcodes in any Post, Page, or Widget to display your stats. To display your stats anywhere in your theme template, visit the Template Tags section of the settings page.

Upgrades

To upgrade SBS, remove the old version and replace with the new version. Or just click “Update” from the Plugins screen and let WordPress do it for you automatically.

Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.

Restore Default Options

To restore default plugin options, either uninstall/reinstall the plugin, or visit the plugin settings > Restore Default Options.

Uninstalling

Simple Blog Stats cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.

How do I use the count-word shortcode?

There are three ways to count words:

[sbs_word_count]         // displays word count of current post
[sbs_word_count id="1"]  // displays word count of post with ID = 1
[sbs_word_count_all]     // displays word count for all published posts
How do I use the user-role shortcode?

There are three ways to display user roles:

[sbs_roles]                // displays list of roles and number of users
[sbs_roles role="author"]  // displays number of users for specified role
[sbs_roles role="all"]     // displays list of roles and number of users
Got a question?

Send any questions or feedback via my contact form. Thanks! 🙂

Reviews

Simple But Powerful

Initially I was using the mailchimp chiclet plugin to count users that registered with my clients website, but it kept breaking. I’m so glad that I came across this plugin. Easy to use and I didn’t have any problems applying formats. My registered user counts are in sync and display correctly.Thank you!

Congratulations

Extraordinary plugin that enables many useful shortcodes, allowing the users to set up the blog without using other plugins. Thank you

Celebrating 9 Years of Simple Blog Stats!

Simple Blog Stats was launched in September of 2006, and has been rocking WordPress blog statistics ever since! So huge THANK YOU to everyone who uses the plugin — here’s to another 9 years of Simple Blog Stats!! 🙂

Read all 6 reviews

Contributors & Developers

“Simple Blog Stats” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

20170801

  • Updates GPL license blurb
  • Adds GPL license text file
  • Tests on WordPress 4.9 (alpha)

20170325

  • Refines display of settings panels
  • Adds dashboard widget to display stats
  • Adds user-role shortcode [sbs_roles role="all"]
  • Updates show support panel in plugin settings
  • Replaces global $wp_version with get_bloginfo('version')
  • Regenerates default translation template
  • Tests on WordPress version 4.8

20161118

  • New shortcodes to count words in posts!
  • Added shortcode to count words in any post: [sbs_word_count]
  • Added shortcode to count words in all posts: [sbs_word_count_all]
  • Added new shortcodes to sbs_blog_stats() function
  • Updated plugin author URL
  • Changed stable tag from trunk to latest version
  • Added » to rate plugin link and home link
  • Updated URL for rate this plugin links
  • Removed default abbr styles
  • Generated new default language template
  • Tested on WordPress version 4.7 (beta)

20160813

  • Streamlined and optimized the plugin settings page
  • Replaced _e() with esc_html_e() or esc_attr_e()
  • Replaced __() with esc_html__() or esc_attr__()
  • Added plugin icons and larger banner image
  • Replaced plugin icon on settings page
  • Changed text-domain from “sbs” to “simple-blog-stats”
  • Removed local translations in favor of GlotPress
  • Improved translation support
  • Generated new translation template
  • Added ellipsis to recent comment excerpt
  • Tested on WordPress 4.6

20160408

  • Replaced icon with retina version
  • Added screenshot to readme/docs
  • Added retina version of banner
  • Reorganized and refreshed readme.txt
  • Tested on WordPress version 4.5 beta

20151111

  • Updated heading hierarchy in plugin settings
  • Updated minimum version requirement
  • Tested on WordPress 4.4 beta

20150808

  • Tested on WordPress 4.3
  • Updated minimum version requirement

20150507

  • Tested with WP 4.2 + 4.3 (alpha)
  • Changed a few “http” links to “https”

20150315

  • Tested with latest version of WP (4.1)
  • Increased minimum version to WP 3.8
  • Removed deprecated screen_icon()
  • Streamline/fine-tune plugin code
  • Added $sbs_wp_vers for version check
  • Added Text Domain and Domain Path to file header
  • Added .pot translation template to /languages/

20140925

  • Tested on latest version of WP (4.0)
  • Increased min-version requirement to WP 3.7
  • Added conditional check for min-version function

20140305

  • Bugfix: replaced mysql_real_escape_string() with esc_attr(), resolves PHP error

20140123

  • Tested with latest WordPress (3.8)
  • Added trailing slash to load_plugin_textdomain()

20131106

  • Removed closing ?> from simple-blog-stats.php
  • General code cleanup and maintenance
  • Tested on latest version of WordPress 3.7
  • Added “rate this plugin” links
  • Added uninstall.php file
  • Added i18n support
  • Added line to prevent direct loading of script

20130713

  • General code check n clean
  • Improved localization support
  • Overview and Updates admin panels toggled open by default

20130104

  • Added margins to submit buttons

20121029

  • Initial release of new plugin

20121028

  • Fine-tuned, tested, tested, etc.

20121027

  • Rebuilt and renamed BlogStats PCC plugin

20060828