Statistics Widgets


Statistics Widgets is an easy solution to display authors’ activity and popular posts statistic information in sidebar widgets. This plugin comes with many smart widgets, which show adaptive statistic information depended on current page.

Widgets – Author & Popular Post Statistics

* My statistics,
* My most viewed posts,
* My most commented posts,
* Post author statistics,
* Post author most viewed posts,
* Post author most commented posts,

Widgets – Popular Users

* Popular users (by posts count),
* Popular users (by posts views count),
* Popular users (by posts comments count),

Widgets – Popular Posts

* Most viewed posts,
* Most commented posts,


  • Quick translation for all front-end phrases
  • Page views statistic under post content
  • Dashboard: General Settings
  • Dashboard: Widget Settings
  • Dashboard: Widget Styles Settings
  • Dashboard: Reset Statistics

  • | Pro | Dashboard: Own Published Posts Graphical Statistic

  • | Pro | Dashboard: Own Posts’ Views Graphical Statistic
  • | Pro | Dashboard: Own Posts Popularity Graphical Statistic
  • | Pro | Dashboard: Own Posts’ Readers Graphical Statistic by Countries
  • | Pro | Dashboard: If you’re the admin, there is also a statistic for all authors activity and posts popularity


  • Author and Post Statistic Widget | Screenshot #1
  • Popular Posts Widget | Screenshot #2
  • Popular Users Widget | Screenshot #3
  • Dashboard > Widgets | Screenshot #5
  • APSW Settings | Screenshot #6
  • Page views statistic under post content | Screenshot #4


  1. Activate plugin.
  2. Go to Dashboard -> Appearance -> Widgets to add/remove APSW Widgets
  3. Go to Dashboard -> Statistics Widgets to manage widget settings.


Now you can set custom time interval for stat widgets. Put according code in current active theme’s functions.php file.

//Example - Author and Post Widget (set for last 45 days)
add_filter('apsw_author_and_post_last', 'custom_author_and_post_last');
function custom_author_and_post_last($last) {
    $last = 45;
    return $last;

//Example - Popular Posts Widget (set for last 20 days)
add_filter('apsw_popular_posts_last', 'custom_popular_posts_last');
function custom_popular_posts_last($last) {
    $last = 20;
    return $last;

//Example - Popular Users Widget (set for last 730 days)
add_filter('apsw_popular_users_last', 'custom_popular_users_last');
function custom_popular_users_last($last) {
    $last = 730;
    return $last;

Support Forum:

Installation Instructions
  1. Activate plugin.
  2. Go to Dashboard -> Appearance -> Widgets to add/remove APSW Widgets
  3. Go to Dashboard -> Statistics Widgets to manage widget settings.


A Really Neat Plugin

We have developed a website where our goal is to encourage user generated content. This Plugin does a great job of motivating people to post because we are able to show them their stats in a cool widget, as well as at the bottom of their posts. If you want to see this Plugin in action, check out our Sober Coach website.

Issue solved!

We’ve finally reached an amicable solution for everyone. Issue is solved! 🙂

Read all 12 reviews

Contributors & Developers

“Statistics Widgets” is open source software. The following people have contributed to this plugin.


Translate “Statistics Widgets” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fixed Bug : Database error on adding statistics
  • Changes : Small CSS issues


  • Added : WP Multisite support


Fixed Bug: Conflict with bbpres if guests allowed to post topics/replies
Added Filter: Dropdown filter in dashboard posts list page by posts views and comments count
Added Filter: Dropdown filter in dashboard users list page by users’ posts’ count, views count, comments count
Added WordPress Filters: For more information see plugin settings -> functions and shortcodes tab


  • Added: New time interval for stat widgets (last 180 days)
  • Added: New filter hook to set custom time interval. More info in FAQ.


  • Fixed Bug: Widgets “custom before/after HTML” saving problem.


  • Added: Option to exclude posts by IDs (author and post stat widget)
  • Added: Option to exclude posts by IDs (popular posts widget)
  • Added: Option to exclude users by IDs (popular users widget)
  • Added: Quick translation options for all front-end phrases
  • Fixed Bug: global post issue in widget function


  • Fixied Bug: Fatal error on updating


  • Added : Compatible with WordPress 4.5
  • Added : Tabbed Widgets (can be used as separate too)

    1. Author & Popular Post Stat – | Author Stat | Author Post Stat|
    2. Popular Users – | by Posts Count | by Posts Views | by Comments Count |
    3. Popular Posts – | Most Viewed Posts | Most commented posts |
  • Added : option to set post author OR current user stat for A&P Stat Widget

  • Added : option to show/hide post thumbnails
  • Added : option to manage post thumbnail size
  • Added : option to show/hide avatars
  • Added : option to manage avatar size
  • Added : option to set limit for:

    1. popular posts
    2. popular users
    3. author popular posts
  • Added : option to set post title max-length

  • Added : option to set default thumbnail for posts without image
  • Added : option to show logged in user statistic in Author & Post Statistic widget by default
  • Added : POT file – ready for translations
  • Added : clears post statistic for deleted posts
  • Optimized : less number of SQL queries
  • Optimized : decreased the number and size of js/css files,
  • Fixed bug : option saving issues
  • Fixed bug : Posts view count under post content for custom post types
  • Fixed bug : Date interval problem when interval set “yesterday”
  • Changed : Deprecated function get_currentuserinfo() to wp_get_current_user()


  • Fixed bug : Posts’ view counter invalid argument issue


  • Fixed Bug : Daily view counter for post types


  • Added : WordPress 4.3 Compability


  • Fixed Bug : Incorrect daily views count


  • Fixed Bug : Compatibility with WordPress 4.2 version


  • Fixed Bug : Invalid argument issue in “Author & Post” Widget


  • Added: Template Tags to locate widget information in template files

    function apsw_pp_static_date_widget($from, $to)
    function apsw_au_static_date_widget($from, $to)
    function apsw_pu_widget()
    function apsw_pp_dynamic_date_widget($last = -1)
    function apsw_pa_dynamic_date_widget($last = -1)

  • Added: Option to hide/show custom html fields on widget settings area

  • Fixed Bug: Issues with unicode characters


  • Fixed Bug: Ultimate Member Integration problem on WEB Servers w/o DomObject support


  • Changed: jQuery UI widget tabs to better and modern tab layout
  • Changed: jQuery UI admin section tabs to better and modern tab layout
  • Added: Integration with User Profile Plugins
    • BuddyPress, Ultimate Member, Users Ultra, UserPro


  • Fixed Bug: Invalid argument issue for post types


  • Added: Button in options page to reset APSW options


  • Fixed Bug: serialize/unserialize Warning issue


  • Added: “Settings” link on plugins page
  • Changed: “Popular Authors” widget to “Popular Users” widget
  • Changed: “Popular Users” logic by “comments count”
  • Changed: “Simple Tabs” option ON by default


  • Added: General Widget for Popular Authors with dynamic period of stat date
  • Added: General Widget for Popular Posts with dynamic period of stat date
  • Added: Widget display settings for custom post types
  • Added: “Page Views” statistic information under post content
  • Added: Language translation support with .mo and .po files
  • Fixed Bug: Correction with some statistic information and incomplete cat/post lists


  • Fixed Bug: Problem with “Popular Authors” widget on WordPress multi-sites


  • Fixed Bug: Problem with options page redirection on WordPress multi-sites


Added: Public functions to show statistics directly from template file


Added: Simple tabs for widgets on front-end


Matching WordPress 4.0 Standards


Initial version