WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Plugin Stats

This plugin is made for WP plugin developers. It can show download stats in your WordPress page/post.

Which bbcode tag I need to use for... ?

This plugin supports six different tags to show six different types of data.

  1. Today's downloads

To show how many times your plugin has been downloaded today, just place [today=plugin-name-slug]. For example: "My plugin has been downloaded [today=wp-plugin-stats] times today."

  1. Yesterday's downloads

To show how many times your plugin has been downloaded yesterday, just place [yesterday=plugin-name-slug].

  1. Last week's downloads

To show how many times your plugin has been downloaded last week, just place [lastweek=plugin-name-slug].

  1. Total downloads

To show how many times your plugin has been downloaded since it is hosted on WordPress.org, just place [total=plugin-name-slug].

  1. All downloads

To show all data of above at once, just place [stats=plugin-name-slug].

  1. Download chart

To show Flash download chart which is displayed on your plugin's stats page, just place [chart=plugin-name-slug]

How to change dimensions of Flash chart?

In short: you can't. You can resize flash applet, but chart will be cropped then, so I haven't introduced possibility to change dimensions of flash chart. Default dimensions are 540x400 px

How to disable automatic getting of data?

To disable automatic getting of data and force users to click on plus sign (click.gif) find and open file wp-content/plugins/wp-plugin-stats/wp-plugin-stats.php and look for string <script type='text/javascript'> window.onload=function(){. Replace that with this: <script type='text/javascript'> //window.onload=function(){ and that's it. From now on, a plus sign (click.gif) will be always be shown and data will be fetched only when user clicks on that.

How to change template of [stats] bbcode tag?

Go to Options -> Plugin Stats and change template in large text box. Following keywords will be replaced with actual data:

  • %today% - will be replaced with number of today's downloads
  • %yesterday% - will be replaced with number of yesterday's downloads
  • %lastweek% - will be replaced with number of last week's downloads
  • %total% - will be replaced with total number of downloads

Can I change styles of results?

Yes, you can style results with css styles. All styles are already placed in file wp-content/plugins/wp-plugin-stats/wp-plugin-stats.css and styles that apply to this plugin are:

  • .wpstats_all - class of results' DIV tag, used for [stats] bbcode
  • .wpstats_loading - class of results' SPAN tag, used for all bbcodes (except [chart]), applied when load.gif image is shown
  • .wpstats_result - class of results' SPAN tag, used for all bbcodes (except [chart] and [stats]), applied when results are fetched from WordPress.org

My plugin won't get data, but it displays chart well...?

Make sure that "Allow URL fopen" on your server is enabled. You can't enable this manually if it is disabled, you'll need to contact your webhost provider. Charts are directly embeded in page while other data is fetched from WordPress.org

Requires: 2.0.2 or higher
Compatible up to: 2.5
Last Updated: 2008-4-21
Downloads: 5,716

Ratings

4 stars
4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
50,2,1
100,1,1
0,1,0
0,1,0
0,1,0