Der Rechtsklick ist für diese Website deaktiviert.


wp-shortstat is a litte statistics plugin for WordPress up to version 3.3.1. The plugin was written by Jeff Minard but the latest original version does not work with WordPress 2.02. I fixed this problem and developed further changes to the plugin. Some changes from other people are also included. To send Patches mail to mk(at)

Download the latest version as zip version.

[quads id=“1″]

Installation instructions: copy wp-shortstat.php and your language file *.mo (optional) per ftp to your „your_blog/wp-content/plugins“ directory and activate the plugin in the WordPress|Plugins|Plugins-menu. Now you can visit your statistics in WordPress|DashBoard|ShortStat.

Slovene translation from Vid Kosir, Spanish translation from Jaime Gómez Obregón

Update: If you have a large database, you may delete old statistic entries before 2007 with the SQL „SELECT FROM wp_ss_stats WHERE dt < 1167609599“. More about this topic in article „WordPress Tip: Reduce the Size of the WP-ShortStat Database Table“


Version 1.17a (5. October 2011)

  • lithuanian translation from professional translator Nata Strazda,
  • ukrainian translation from professional translator Alyona Lompar,
  • romanian translation from Alexander Ovsov, Web Geek Science

Version 1.16 ( 25. February 2011)

  • translatetion to Bulgarian language from Dimitar Atanasov
  • encoding fixed (Thx to Alexey Demakov)

Version 1.14c (28. July 2009 )

  • disabled more error warnings
  • added new russian translation from Fat Cow
  • Patch from hacker-piao: fixed possible security vulnerabilities

Version 1.14b (19. February 2009 )

  • fixed php warning
  • patch from Eric Caron: fixed possible security problem (prevent SQL injections)

Version 1.14a (08. January 2009)

  • removed support for wordpress before version 2.3, tested up to version 2.7
  • fixed creation of tables at setup
  • compatibility fix for WP_MU
  • removed deprecated functions
  • disabled the country detection, because is not working anymore and there where no more updates to the country panel
  • little bit more space for the modules
  • language template is now included in standard download file

Version 1.13c (14. April 2008)

  • Small changes, maybe improving compatibility with WordPress 2.5
  • Corrected handling of hits having no referrers as suggested by Stian

Version 1.13a (14. November 2007)

  • fixed Bug with not working Browser and Platform Tabs (Thx to Stian for fixing the bug)
  • show percent in Countries tab
  • calculate percentage in Browsers and Platforms tab relative to all hits, where these information are known, not to all hits

Version 1.12b (2. October 2007)

  • small compatibility fix for WordPress 2.3, tested with WordPress 2.3.1
  • we had to switch off the UDP server because of massive server stability problems. We are investigating the problem and may start the service again. Untils this, there is no country code detection possible. Another way to fix this problem would be a local database with ip-ranges and countries. If someone want to write this…

Version 1.12a (8. Januar 2007)

  • new database format, about half the size of the old format
  • added to detected search engines
  • fix for broken referer
  • added debug version which shows all errors
  • some internal fixes (uninitialized variables, …)
  • disabled old country detection code
  • If you wish to compress your SQL database to about half of the original size, execute these SQL statements once (replace all ‚ with the standard character before)

    UPDATE ‚wp_ss_stats‘ SET ‚language‘ = “ WHERE ‚language‘ = ‚empty‘
    UPDATE ‚wp_ss_stats‘ SET ‚browser‘ = “ WHERE ‚browser‘ = ‚Indeterminable‘
    UPDATE ‚wp_ss_stats‘ SET ‚version‘ = “ WHERE ‚version‘ = ‚Indeterminable‘
    UPDATE ‚wp_ss_stats‘ SET ‚platform‘ = “ WHERE ‚platform‘ = ‚Indeterminable‘
    ALTER TABLE ‚wp_ss_stats‘ CHANGE ‚country‘ ‚country‘ CHAR( 2 ) NOT NULL
    ALTER TABLE ‚wp_ss_stats‘ DROP ‚user_agent‘

Whois PHP service switched off (13. December 2006)

Now it is 6 months ago that we wrote and launched the UDP-based whois service on our server to process the whois queries in wp-shortstat. The new service replaces the old PHP based ip2country.php script which should not be used anymore. Please download the latest version of wp-shortstat to use the UDP service because the PHP based is switched off now.

Version 1.11 (27. June 2006)

  • fixed lost referer for some strange php configurations

Version 1.10 (22. May 2006)

  • More timeout handling for UDP connect/usage
  • If UDP connect to fails, use old TCP algorithm
  • Show feed hits separatly

Version 1.9b (11. May 2006)

  • We added a new country detection service, using our own server written only for wp-shortstat (using c# with mono) and UDP, instead of HTTP with php/apache/mysql as server. We hope, that we can rise the limit of 5 queries/second to at least 50 queries/second. This should also improve the performance of your weblog. Please donate to allow us to improve this service.
  • search termes with special characters (all chars not included in US-ASCII) where not handled correctly
  • more charset problems fixed, we use html entities instead of unicode for output now
  • added new module: „Last Keywords“, shows the last couple of search keywords extracted from the referrers
  • Improved CSS a little bit

Version 1.8 (23. April 2006)

  • added PHP 5 compatibility
  • added more search engine strings

Version 1.7h (06. April 2006)

  • Localized date strings
  • Search terms are now converted to blog charset
  • Fixed more date/time offset problems. Incorrect timestamps where written to the database if server time and wordpress time are differ (thx to John Holman and James Skemp)
  • Added detection to more newer browsers like Safari 2.0.2-2.0.3 and others (thx to Sean Park)
  • Stripp PHP-SessionID from referrer string
  • Added three russion search engines (from
  • Test if function mb_convert_encoding exists, because not all PHP installations have this function
  • Don’t foget to adjust your daylight saving time (+1) in Admin|Options|General

Version 1.6 (27. Feb. 2006)

Version 1.5a (17. Feb. 2006)

  • We from Happy Arts added a new server service: This service determinates the country from an IP address, using a 300 MB MySQL database from We could not use hostip, it is to slow and doesn’t work anymore. This fixes the problem that the languages are „Indeterminable“.
  • Fixed some quote marks in incorrect charsets (thx to David), fixed title for links in the two referrers boxes

Version 1.4a

  • for performance reasons show only the last 7 days of hits statistics
  • speedup for weekly statistic (nearly doubled the performance)
  • fixed time difference in weekly statistics

older changes:

  • new host for detecting country code (thx to
  • fixed time offset calculation in wp_shortstat_display_stats, TodayHits and UniqueHits, now uses time zone configured in WordPress
  • search terms are now saved case insensitive
  • do not check for „is_admin_page“ function anymore, because some plugins like Google Sitemap Plugin from Arne Brachhold include this function an wp-shortstat thinks that we are admin, even on standard pages
  • fixes from included
  • do not check for „is_admin_page“ function anymore, because some plugins like Google Sitemap Plugin from Arne Brachhold include this function an wp-shortstat thinks that we are admin, even on standard pages
  • multiple fixes for detecting pages that should not been counted
  • page calls from users that are logged in and are admins don’t counted anymore
  • changes from WebKeyDesign included: changed CSS to match WP2 theme (
  • search term recognition added
  • fixed all reported warnings from Zend Code Analyzer