WordPress plugin intelligence profile

WP-DownloadCounter

Since WordPress does offer attaching downloads to pages, but doesn't keep track of the amount of downloads, this plugin was written.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 2.7
Current version1.01
WordPress coverageTested up to WordPress 2.7
Minimum stackWP 2.0.2 · PHP —
Directory statusactive
Last directory update22 Apr 200917y ago
Active installations100Adoption metric — not a quality score
WordPress.org rating2.5 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP-DownloadCounter version 1.01 as active, updated 17y ago and tested up to WordPress 2.7.

Overview

About this plugin

Since WordPress does offer attaching downloads to pages, but doesn’t keep track of statistical information about these downloads, I wrote this plugin.

I should mention statistical information is a big word for just another download counter, since that is main purpose of this plugin.

Features:

  • Keeps track of the amount of downloads of a certain file.
  • Keeps track of the last download time
  • Allows you to reset the counter
  • Allows you to add counters to both internal and external urls
  • Can use fancy urls (like /downloads/file.zip)
  • Can print the amount of downloads, the filesize and the last modified date in a post.

Arbitrary section

Using tags in your posts

When writing a post or a page, you may want to add the URL or the amount of downloads in your post. Using [ download(downloadname) ] (without the spaces) will be replaced with the download url, [ downloadcounter(downloadname) ] will be replaced with the amount of downloads, [ downloadsize(downloadname) ] will print the size of the download (in GB, MB, kB or B), [ downloadupdated(downloadname) ] will print the last modified date, using the WordPress setting you’ve specified for the date format.

When creating a link, you could, for instance, use Download (of course, again, without the spaces within the [] brackets).

Finally, when using downloadsize of downloadupdated, you can specify one extra argument. With downloadsize, you can add,false to prevent the usage of the GB, MB, kB or B postfixes. zip, false) ] will just display the size in bytes.

With downloadupdated, you can enter a PHP date format string as extra argument. zip, d-m-Y) ] will display a date like 27-11-2008.

Retrieving download information from PHP

6 is it possible to get information about the downloads using PHP, so you can use this information directly in your templates or in you own plugins. Only one function is important at the moment:

download_information($download_name, $return_information = DOWNLOAD_URL | DOWNLOAD_AMOUNT)

This function will return an array with the requested information. You can specify what information to return by the argument $return_information. php contains the correct define statements which can be used.

Currently only URL, Amount, Size and Last Modified Date are available.

Using the code

zip, DOWNLOAD_URL | DOWNLOAD_AMOUNT | DOWNLOAD_SIZE | DOWNLOAD_LASTMODIFIED); var_dump($info);

returns:

zip" ["amount"]=> string(4) "1878" ["size"]=> int(11006) ["lastmodified"]=> int(1228157426) }

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • download counter
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 2.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 2.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to2.7
Minimum requirementsWordPress 2.0.2 · PHP not listed
Update activity22 Apr 200917y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.