WP Statistics - Version 12.0.10

Version Description

  • Release Date: July 24, 2017
  • Added: UptimeRobot to the default robots list.
  • Fixed: Uses esc_attr() for cleaning $_GET in referrers page.
  • Removed: screen_icon() function from the plugin. (This function has been deprecated).
Download this release

Release Info

Developer mostafa.s1990
Plugin Icon 128x128 WP Statistics
Version 12.0.10
Comparing to
See all releases

Code changes from version 12.0.9 to 12.0.10

README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WP Statistics
2
+ A free and advanced stats plugin for WordPress
3
+
4
+ A comprehensive plugin for your WordPress visitor statistics, come visit us at our website for all the latest news and information.
5
+
6
+ Track statistics for your WordPress site without depending on external services and uses arrogate data whenever possible to respect your users privacy.
7
+
8
+ On screen statistics presented as graphs are easily viewed through the WordPress admin interface.
9
+
10
+ This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.
11
+
12
+ # Features
13
+
14
+ * Online users, visits, visitors and page statistics
15
+ * Search Engines, see search queries and redirects from popular search engines like Google, Bing, DuckDuckGo, Yahoo, Yandex and Baidu
16
+ * Overview and detail pages for all kinds of data, including; browser versions, country stats, hits, exclusions, referrers, searches, search words and visitors
17
+ * GeoIP location by Country
18
+ * Support for hashing IP addresses in the database to protect your users privacy
19
+ * Interactive map of visitors location
20
+ * E-mail reports of statistics
21
+ * Set access level for view and manage roles based on WordPress roles
22
+ * Exclude users from statistics collection based on various criteria, including; user roles, common robots, IP subnets, page URL, login page, RSS pages, admin pages, Country, number of visits per day, hostname
23
+ * Record statistics on exclusions
24
+ * Automatic updates to the GeoIP database
25
+ * Automatically prune the databases of old data
26
+ * Export the data to XML, CSV or TSV files
27
+ * Widget to provide information to your users
28
+ * Shortcodes for many different types of data in both widgets and posts/pages
29
+ * Dashboard widgets for the admin area
30
+ * Comprehensive Admin Manual
31
+
32
+ # Internationalization
33
+ WP Statistics has been translated in to many languages, for the current list and contributors, please visit the [translate page](https://translate.wordpress.org/projects/wp-plugins/wp-statistics).
34
+
35
+ Translations are done by people just like you, help make WP Statistics available to more people around the world and [do a translation](https://wp-statistics.com/translations/) today!
36
+
37
+ # Installation
38
+ 1. Upload wp-statistics to the /wp-content/plugins/ directory.
39
+ 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
40
+ 3. Make sure the Date and Time is set correctly in WordPress.
41
+ 4. Go to the plugin settings page and configure as required (note this will also download the GeoIP database for the fist time).
42
+
43
+ # Function API
44
+ WP Statistics supports several functions for other plug-in and theme authors to use to retrieve statistics about the site. All of the external functions available in [this link](https://wp-statistics.com/2017/05/26/function-api/).
45
+
46
+ # Shortcodes
47
+ WP Statistics supports shortcodes in WordPress, these can be used in either a post and page body as well as an HTML widget. Description of shortcode available in [this link](https://wp-statistics.com/2017/05/26/shortcodes/)
48
+
49
+ # Community Links
50
+ Thank you [jetbrains](https://www.jetbrains.com) for giving us Intellij IDEA Ultimate licenses for develop this project.
51
+ * [Wordpress plugin page](http://wordpress.org/plugins/wp-statistic/)
52
+ * [Plugin website](https://wp-statistics.com)
53
+ * [Donate](https://wp-statistics.com/donate/)
includes/log/all-browsers.php CHANGED
@@ -27,7 +27,6 @@ $rangeenddate = $WP_Statistics->real_current_date( 'Y-m-d', '-0', $rangeend_ut
27
 
28
  ?>
29
  <div class="wrap">
30
- <?php screen_icon( 'options-general' ); ?>
31
  <h2><?php _e( 'Browser Statistics', 'wp_statistics' ); ?></h2>
32
 
33
  <div><?php wp_statistics_date_range_selector( WP_STATISTICS_BROWSERS_PAGE, $daysToDisplay ); ?></div>
27
 
28
  ?>
29
  <div class="wrap">
 
30
  <h2><?php _e( 'Browser Statistics', 'wp_statistics' ); ?></h2>
31
 
32
  <div><?php wp_statistics_date_range_selector( WP_STATISTICS_BROWSERS_PAGE, $daysToDisplay ); ?></div>
includes/log/authors.php CHANGED
@@ -9,7 +9,6 @@
9
  });
10
  </script>
11
  <div class="wrap">
12
- <?php screen_icon( 'options-general' ); ?>
13
  <h2><?php _e( 'Author Statistics', 'wp_statistics' ); ?></h2>
14
 
15
  <?php
9
  });
10
  </script>
11
  <div class="wrap">
 
12
  <h2><?php _e( 'Author Statistics', 'wp_statistics' ); ?></h2>
13
 
14
  <?php
includes/log/categories.php CHANGED
@@ -9,7 +9,6 @@
9
  });
10
  </script>
11
  <div class="wrap">
12
- <?php screen_icon( 'options-general' ); ?>
13
  <h2><?php _e( 'Category Statistics', 'wp_statistics' ); ?></h2>
14
 
15
  <?php
9
  });
10
  </script>
11
  <div class="wrap">
 
12
  <h2><?php _e( 'Category Statistics', 'wp_statistics' ); ?></h2>
13
 
14
  <?php
includes/log/exclusions.php CHANGED
@@ -146,7 +146,6 @@ if ( $total_stats == 1 ) {
146
  }
147
  ?>
148
  <div class="wrap">
149
- <?php screen_icon( 'options-general' ); ?>
150
  <h2><?php _e( 'Exclusions Statistics', 'wp_statistics' ); ?></h2>
151
 
152
  <?php wp_statistics_date_range_selector( WP_STATISTICS_EXCLUSIONS_PAGE, $daysToDisplay ); ?>
146
  }
147
  ?>
148
  <div class="wrap">
 
149
  <h2><?php _e( 'Exclusions Statistics', 'wp_statistics' ); ?></h2>
150
 
151
  <?php wp_statistics_date_range_selector( WP_STATISTICS_EXCLUSIONS_PAGE, $daysToDisplay ); ?>
includes/log/hit-statistics.php CHANGED
@@ -4,7 +4,6 @@
4
  });
5
  </script>
6
  <div class="wrap">
7
- <?php screen_icon( 'options-general' ); ?>
8
  <h2><?php _e( 'Hit Statistics', 'wp_statistics' ); ?></h2>
9
 
10
  <?php
4
  });
5
  </script>
6
  <div class="wrap">
 
7
  <h2><?php _e( 'Hit Statistics', 'wp_statistics' ); ?></h2>
8
 
9
  <?php
includes/log/last-search.php CHANGED
@@ -25,7 +25,6 @@ if ( array_key_exists( 'referred', $_GET ) ) {
25
  $total = $search_result[ $referred ];
26
  ?>
27
  <div class="wrap">
28
- <?php screen_icon( 'options-general' ); ?>
29
  <h2><?php _e( 'Latest Search Words', 'wp_statistics' ); ?></h2>
30
  <ul class="subsubsub">
31
  <?php
25
  $total = $search_result[ $referred ];
26
  ?>
27
  <div class="wrap">
 
28
  <h2><?php _e( 'Latest Search Words', 'wp_statistics' ); ?></h2>
29
  <ul class="subsubsub">
30
  <?php
includes/log/last-visitor.php CHANGED
@@ -33,7 +33,6 @@ if ( $_get != '%' ) {
33
 
34
  ?>
35
  <div class="wrap">
36
- <?php screen_icon( 'options-general' ); ?>
37
  <h2><?php _e( 'Recent Visitors', 'wp_statistics' ); ?></h2>
38
  <ul class="subsubsub">
39
  <li class="all"><a <?php if ( $_get == '%' ) {
33
 
34
  ?>
35
  <div class="wrap">
 
36
  <h2><?php _e( 'Recent Visitors', 'wp_statistics' ); ?></h2>
37
  <ul class="subsubsub">
38
  <li class="all"><a <?php if ( $_get == '%' ) {
includes/log/log.php CHANGED
@@ -28,7 +28,6 @@ function wp_statistics_generate_overview_postbox_contents( $post, $args ) {
28
  ?>
29
  <div class="wrap">
30
  <?php echo $nag_html; ?>
31
- <?php screen_icon( 'options-general' ); ?>
32
  <h2><?php echo get_admin_page_title(); ?></h2>
33
  <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
34
  <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
28
  ?>
29
  <div class="wrap">
30
  <?php echo $nag_html; ?>
 
31
  <h2><?php echo get_admin_page_title(); ?></h2>
32
  <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
33
  <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
includes/log/online.php CHANGED
@@ -7,7 +7,6 @@
7
 
8
  ?>
9
  <div class="wrap">
10
- <?php screen_icon( 'options-general' ); ?>
11
  <h2><?php _e( 'Online Users', 'wp_statistics' ); ?></h2>
12
  <div class="postbox-container" id="last-log">
13
  <div class="metabox-holder">
7
 
8
  ?>
9
  <div class="wrap">
 
10
  <h2><?php _e( 'Online Users', 'wp_statistics' ); ?></h2>
11
  <div class="postbox-container" id="last-log">
12
  <div class="metabox-holder">
includes/log/page-statistics.php CHANGED
@@ -48,7 +48,6 @@ if ( array_key_exists( 'rangeend', $_GET ) ) {
48
  }
49
  ?>
50
  <div class="wrap">
51
- <?php screen_icon( 'options-general' ); ?>
52
  <h2><?php echo __( 'Page Trend for Post ID', 'wp_statistics' ) . ' ' . $pageid . ' - ' . $title; ?></h2>
53
 
54
  <?php wp_statistics_date_range_selector( WP_STATISTICS_PAGES_PAGE, $daysToDisplay, null, null, $urlfields ); ?>
48
  }
49
  ?>
50
  <div class="wrap">
 
51
  <h2><?php echo __( 'Page Trend for Post ID', 'wp_statistics' ) . ' ' . $pageid . ' - ' . $title; ?></h2>
52
 
53
  <?php wp_statistics_date_range_selector( WP_STATISTICS_PAGES_PAGE, $daysToDisplay, null, null, $urlfields ); ?>
includes/log/search-statistics.php CHANGED
@@ -26,7 +26,6 @@ list( $daysToDisplay, $rangestart_utime, $rangeend_utime ) = wp_statistics_date_
26
  $daysInThePast = round( ( time() - $rangeend_utime ) / 86400, 0 );
27
  ?>
28
  <div class="wrap">
29
- <?php screen_icon( 'options-general' ); ?>
30
  <h2><?php _e( 'Search Engine Referral Statistics', 'wp_statistics' ); ?></h2>
31
 
32
  <?php wp_statistics_date_range_selector( WP_STATISTICS_SEARCHES_PAGE, $daysToDisplay ); ?>
26
  $daysInThePast = round( ( time() - $rangeend_utime ) / 86400, 0 );
27
  ?>
28
  <div class="wrap">
 
29
  <h2><?php _e( 'Search Engine Referral Statistics', 'wp_statistics' ); ?></h2>
30
 
31
  <?php wp_statistics_date_range_selector( WP_STATISTICS_SEARCHES_PAGE, $daysToDisplay ); ?>
includes/log/tags.php CHANGED
@@ -9,7 +9,6 @@
9
  });
10
  </script>
11
  <div class="wrap">
12
- <?php screen_icon( 'options-general' ); ?>
13
  <h2><?php _e( 'Tag Statistics', 'wp_statistics' ); ?></h2>
14
 
15
  <?php
9
  });
10
  </script>
11
  <div class="wrap">
 
12
  <h2><?php _e( 'Tag Statistics', 'wp_statistics' ); ?></h2>
13
 
14
  <?php
includes/log/top-countries.php CHANGED
@@ -24,7 +24,6 @@ list( $daysToDisplay, $rangestart_utime, $rangeend_utime ) = wp_statistics_date_
24
 
25
  ?>
26
  <div class="wrap">
27
- <?php screen_icon( 'options-general' ); ?>
28
  <h2><?php _e( 'Top Countries', 'wp_statistics' ); ?></h2>
29
 
30
  <?php wp_statistics_date_range_selector( WP_STATISTICS_COUNTRIES_PAGE, $daysToDisplay ); ?>
24
 
25
  ?>
26
  <div class="wrap">
 
27
  <h2><?php _e( 'Top Countries', 'wp_statistics' ); ?></h2>
28
 
29
  <?php wp_statistics_date_range_selector( WP_STATISTICS_COUNTRIES_PAGE, $daysToDisplay ); ?>
includes/log/top-pages.php CHANGED
@@ -27,7 +27,6 @@ list( $total, $uris ) = wp_statistics_get_top_pages( $WP_Statistics->Real_Curren
27
 
28
  ?>
29
  <div class="wrap">
30
- <?php screen_icon( 'options-general' ); ?>
31
  <h2><?php _e( 'Top Pages', 'wp_statistics' ); ?></h2>
32
 
33
  <?php wp_statistics_date_range_selector( WP_STATISTICS_PAGES_PAGE, $daysToDisplay ); ?>
27
 
28
  ?>
29
  <div class="wrap">
 
30
  <h2><?php _e( 'Top Pages', 'wp_statistics' ); ?></h2>
31
 
32
  <?php wp_statistics_date_range_selector( WP_STATISTICS_PAGES_PAGE, $daysToDisplay ); ?>
includes/log/top-referring.php CHANGED
@@ -11,19 +11,19 @@
11
  $date_args = '';
12
  $daysToDisplay = 20;
13
  if ( array_key_exists( 'hitdays', $_GET ) ) {
14
- $daysToDisplay = intval( $_GET['hitdays'] );
15
  $date_args .= '&hitdays=' . $daysToDisplay;
16
  }
17
 
18
  if ( array_key_exists( 'rangestart', $_GET ) ) {
19
- $rangestart = $_GET['rangestart'];
20
  $date_args .= '&rangestart=' . $rangestart;
21
  } else {
22
  $rangestart = '';
23
  }
24
 
25
  if ( array_key_exists( 'rangeend', $_GET ) ) {
26
- $rangeend = $_GET['rangeend'];
27
  $date_args .= '&rangeend=' . $rangeend;
28
  } else {
29
  $rangeend = '';
@@ -72,7 +72,6 @@ if ( $referr ) {
72
 
73
  ?>
74
  <div class="wrap">
75
- <?php screen_icon( 'options-general' ); ?>
76
  <h2><?php _e( 'Top Referring Sites', 'wp_statistics' ); ?></h2>
77
 
78
  <div><?php wp_statistics_date_range_selector( WP_STATISTICS_REFERRERS_PAGE, $daysToDisplay, null, null, $referr_field ); ?></div>
11
  $date_args = '';
12
  $daysToDisplay = 20;
13
  if ( array_key_exists( 'hitdays', $_GET ) ) {
14
+ $daysToDisplay = intval( esc_attr($_GET['hitdays']) );
15
  $date_args .= '&hitdays=' . $daysToDisplay;
16
  }
17
 
18
  if ( array_key_exists( 'rangestart', $_GET ) ) {
19
+ $rangestart = esc_attr($_GET['rangestart']);
20
  $date_args .= '&rangestart=' . $rangestart;
21
  } else {
22
  $rangestart = '';
23
  }
24
 
25
  if ( array_key_exists( 'rangeend', $_GET ) ) {
26
+ $rangeend = esc_attr($_GET['rangeend']);
27
  $date_args .= '&rangeend=' . $rangeend;
28
  } else {
29
  $rangeend = '';
72
 
73
  ?>
74
  <div class="wrap">
 
75
  <h2><?php _e( 'Top Referring Sites', 'wp_statistics' ); ?></h2>
76
 
77
  <div><?php wp_statistics_date_range_selector( WP_STATISTICS_REFERRERS_PAGE, $daysToDisplay, null, null, $referr_field ); ?></div>
includes/log/top-visitors.php CHANGED
@@ -8,7 +8,6 @@ $ISOCountryCode = $WP_Statistics->get_country_codes();
8
  include_once( dirname( __FILE__ ) . '/widgets/top.visitors.php' );
9
  ?>
10
  <div class="wrap">
11
- <?php screen_icon( 'options-general' ); ?>
12
  <h2><?php _e( 'Top 100 Visitors Today', 'wp_statistics' ); ?></h2>
13
  <?php
14
  wp_enqueue_script( 'jquery-ui-datepicker' );
8
  include_once( dirname( __FILE__ ) . '/widgets/top.visitors.php' );
9
  ?>
10
  <div class="wrap">
 
11
  <h2><?php _e( 'Top 100 Visitors Today', 'wp_statistics' ); ?></h2>
12
  <?php
13
  wp_enqueue_script( 'jquery-ui-datepicker' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-statistics.com/donate/
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.8
7
- Stable tag: 12.0.9
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
@@ -287,6 +287,12 @@ You may also downgrade to WP Statistics 10.3 as a temporary measure, but no new
287
  This is a security fix, please update immediately.
288
 
289
  == Changelog ==
 
 
 
 
 
 
290
  = 12.0.9 =
291
  * Release Date: July 3, 2017
292
  * Fixed: XSS issue with agent and ip in visitors page, Thanks Ryan Dewhurst from Dewhurst Security Team.
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.8
7
+ Stable tag: 12.0.10
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
287
  This is a security fix, please update immediately.
288
 
289
  == Changelog ==
290
+ = 12.0.10 =
291
+ * Release Date: July 24, 2017
292
+ * Added: UptimeRobot to the default robots list.
293
+ * Fixed: Uses `esc_attr()` for cleaning `$_GET` in referrers page.
294
+ * Removed: `screen_icon()` function from the plugin. (This function has been deprecated).
295
+
296
  = 12.0.9 =
297
  * Release Date: July 3, 2017
298
  * Fixed: XSS issue with agent and ip in visitors page, Thanks Ryan Dewhurst from Dewhurst Security Team.
robotslist.php CHANGED
@@ -151,6 +151,7 @@ $wps_robotarray = array(
151
  'uMBot-LN',
152
  'uni5download',
153
  'unrulymedia',
 
154
  'URL_Spider_SQL',
155
  'Vagabondo',
156
  'vBSEO',
@@ -176,4 +177,4 @@ $wps_robotarray = array(
176
  );
177
 
178
  $wps_robotslist = implode( "\n", $wps_robotarray );
179
- ?>
151
  'uMBot-LN',
152
  'uni5download',
153
  'unrulymedia',
154
+ 'UptimeRobot',
155
  'URL_Spider_SQL',
156
  'Vagabondo',
157
  'vBSEO',
177
  );
178
 
179
  $wps_robotslist = implode( "\n", $wps_robotarray );
180
+ ?>
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: http://wp-statistics.com/
5
  * Description: Complete statistics for your WordPress site.
6
- * Version: 12.0.9
7
  * Author: WP-Statistics Team
8
  * Author URI: http://wp-statistics.com/
9
  * Text Domain: wp_statistics
@@ -12,7 +12,7 @@
12
  */
13
 
14
  // These defines are used later for various reasons.
15
- define( 'WP_STATISTICS_VERSION', '12.0.9' );
16
  define( 'WP_STATISTICS_REQUIRED_PHP_VERSION', '5.4.0' );
17
  define( 'WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION );
18
  define( 'WPS_EXPORT_FILE_NAME', 'wp-statistics' );
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: http://wp-statistics.com/
5
  * Description: Complete statistics for your WordPress site.
6
+ * Version: 12.0.10
7
  * Author: WP-Statistics Team
8
  * Author URI: http://wp-statistics.com/
9
  * Text Domain: wp_statistics
12
  */
13
 
14
  // These defines are used later for various reasons.
15
+ define( 'WP_STATISTICS_VERSION', '12.0.10' );
16
  define( 'WP_STATISTICS_REQUIRED_PHP_VERSION', '5.4.0' );
17
  define( 'WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION );
18
  define( 'WPS_EXPORT_FILE_NAME', 'wp-statistics' );