Slimstat Analytics - Version 4.1.5.1

Version Description

  • [Update] Our Export to Excel add-on now includes the post slug, when appropriate.
  • [Fix] Removed a few warnings displayed when DEBUG MODE was enabled.
  • [Fix] A warning was being displayed when exporting certain reports.
Download this release

Release Info

Developer coolmann
Plugin Icon 128x128 Slimstat Analytics
Version 4.1.5.1
Comparing to
See all releases

Code changes from version 4.1.5 to 4.1.5.1

admin/config/index.php CHANGED
@@ -48,9 +48,6 @@ if (!empty($_POST['options']['ignore_users'])){
48
  }
49
  }
50
  }
51
- else {
52
- wp_slimstat::$options['ignore_users'] = '';
53
- }
54
 
55
  if (!empty($_POST['options']['ignore_capabilities'])){
56
  // Make sure all the capabilities exist in the system
@@ -70,9 +67,6 @@ if (!empty($_POST['options']['ignore_capabilities'])){
70
  wp_slimstat_admin::$faulty_fields[] = __('Invalid capability. Please check <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_new">this page</a> for more information','wp-slimstat');
71
  }
72
  }
73
- else {
74
- wp_slimstat::$options['ignore_capabilities'] = '';
75
- }
76
 
77
  if (!empty($_POST['options']['can_view'])){
78
  // Make sure all the users exist in the system
@@ -89,9 +83,6 @@ if (!empty($_POST['options']['can_view'])){
89
  }
90
  }
91
  }
92
- else {
93
- wp_slimstat::$options['can_view'] = '';
94
- }
95
 
96
  if (!empty($_POST['options']['capability_can_view'])){
97
  if (isset($GLOBALS['wp_roles']->role_objects['administrator']->capabilities) && array_key_exists($_POST['options']['capability_can_view'], $GLOBALS['wp_roles']->role_objects['administrator']->capabilities)){
@@ -101,9 +92,6 @@ if (!empty($_POST['options']['capability_can_view'])){
101
  wp_slimstat_admin::$faulty_fields[] = __('Invalid minimum capability. Please check <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_new">this page</a> for more information','wp-slimstat');
102
  }
103
  }
104
- else {
105
- wp_slimstat::$options['capability_can_view'] = '';
106
- }
107
 
108
  if (!empty($_POST['options']['can_admin'])){
109
  // Make sure all the users exist in the system
@@ -120,10 +108,7 @@ if (!empty($_POST['options']['can_admin'])){
120
  }
121
  }
122
  }
123
- else {
124
- wp_slimstat::$options['can_admin'] = '';
125
- }
126
-
127
  if (!empty($_POST['options']['capability_can_admin'])){
128
  if (isset($GLOBALS['wp_roles']->role_objects['administrator']->capabilities) && array_key_exists($_POST['options']['capability_can_admin'], $GLOBALS['wp_roles']->role_objects['administrator']->capabilities)){
129
  wp_slimstat::$options['capability_can_admin'] = $_POST['options']['capability_can_admin'];
@@ -132,9 +117,6 @@ if (!empty($_POST['options']['capability_can_admin'])){
132
  wp_slimstat_admin::$faulty_fields[] = __('Invalid minimum capability. Please check <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_new">this page</a> for more information','wp-slimstat');
133
  }
134
  }
135
- else {
136
- wp_slimstat::$options['capability_can_admin'] = '';
137
- }
138
 
139
  $current_tab = empty( $_GET[ 'tab' ] ) ? 1 : intval( $_GET[ 'tab' ] );
140
 
48
  }
49
  }
50
  }
 
 
 
51
 
52
  if (!empty($_POST['options']['ignore_capabilities'])){
53
  // Make sure all the capabilities exist in the system
67
  wp_slimstat_admin::$faulty_fields[] = __('Invalid capability. Please check <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_new">this page</a> for more information','wp-slimstat');
68
  }
69
  }
 
 
 
70
 
71
  if (!empty($_POST['options']['can_view'])){
72
  // Make sure all the users exist in the system
83
  }
84
  }
85
  }
 
 
 
86
 
87
  if (!empty($_POST['options']['capability_can_view'])){
88
  if (isset($GLOBALS['wp_roles']->role_objects['administrator']->capabilities) && array_key_exists($_POST['options']['capability_can_view'], $GLOBALS['wp_roles']->role_objects['administrator']->capabilities)){
92
  wp_slimstat_admin::$faulty_fields[] = __('Invalid minimum capability. Please check <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_new">this page</a> for more information','wp-slimstat');
93
  }
94
  }
 
 
 
95
 
96
  if (!empty($_POST['options']['can_admin'])){
97
  // Make sure all the users exist in the system
108
  }
109
  }
110
  }
111
+
 
 
 
112
  if (!empty($_POST['options']['capability_can_admin'])){
113
  if (isset($GLOBALS['wp_roles']->role_objects['administrator']->capabilities) && array_key_exists($_POST['options']['capability_can_admin'], $GLOBALS['wp_roles']->role_objects['administrator']->capabilities)){
114
  wp_slimstat::$options['capability_can_admin'] = $_POST['options']['capability_can_admin'];
117
  wp_slimstat_admin::$faulty_fields[] = __('Invalid minimum capability. Please check <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_new">this page</a> for more information','wp-slimstat');
118
  }
119
  }
 
 
 
120
 
121
  $current_tab = empty( $_GET[ 'tab' ] ) ? 1 : intval( $_GET[ 'tab' ] );
122
 
admin/view/wp-slimstat-db.php CHANGED
@@ -76,6 +76,11 @@ class wp_slimstat_db {
76
  'interval_minutes' => array( __( 'minutes', 'wp-slimstat' ), 'int' ),
77
  'dt' => array( __( 'Unix Timestamp', 'wp-slimstat' ), 'int' ),
78
 
 
 
 
 
 
79
  // Events
80
  'event_id' => array( __( 'Event ID', 'wp-slimstat' ), 'int' ),
81
  'type' => array( __( 'Type', 'wp-slimstat' ), 'int' ),
76
  'interval_minutes' => array( __( 'minutes', 'wp-slimstat' ), 'int' ),
77
  'dt' => array( __( 'Unix Timestamp', 'wp-slimstat' ), 'int' ),
78
 
79
+ // Other columns
80
+ 'language_substring' => array( __( 'Language', 'wp-slimstat' ), 'varchar' ),
81
+ 'platform_substring' => array( __( 'Operating System', 'wp-slimstat' ), 'varchar' ),
82
+ 'resource_substring' => array( __( 'Permalink', 'wp-slimstat' ), 'varchar' ),
83
+
84
  // Events
85
  'event_id' => array( __( 'Event ID', 'wp-slimstat' ), 'int' ),
86
  'type' => array( __( 'Type', 'wp-slimstat' ), 'int' ),
admin/view/wp-slimstat-reports.php CHANGED
@@ -1347,7 +1347,7 @@ class wp_slimstat_reports {
1347
  <p><?php self::inline_help(__('A referrer (or referring site) is the site that a visitor previously visited before following a link to your site.','wp-slimstat')) ?>
1348
  <?php _e('Unique Referrers', 'wp-slimstat') ?> <span><?php echo number_format(wp_slimstat_db::count_records('referer', "referer NOT LIKE '%{$_SERVER['SERVER_NAME']}%'"), 0, '', wp_slimstat_db::$formats['thousand']) ?></span></p>
1349
  <p><?php self::inline_help(__("Visitors who visited the site by typing the URL directly into their browser. <em>Direct</em> can also refer to the visitors who clicked on the links from their bookmarks/favorites, untagged links within emails, or links from documents that don't include tracking variables.",'wp-slimstat')) ?>
1350
- <?php _e('Direct Pageviews', 'wp-slimstat') ?> <span><?php echo number_format(wp_slimstat_db::count_records('id', 'referer IS NULL'), 0, '', wp_slimstat_db::$formats['thousand']) ?></span></p>
1351
  <p><?php self::inline_help(__("Visitors who came to your site via searches on Google or some other search engine.",'wp-slimstat')) ?>
1352
  <?php _e('From a search result', 'wp-slimstat') ?> <span><?php echo number_format(wp_slimstat_db::count_records('id', "searchterms IS NOT NULL AND referer IS NOT NULL AND referer NOT LIKE '%".home_url()."%'"), 0, '', wp_slimstat_db::$formats['thousand']) ?></span></p>
1353
  <p><?php self::inline_help(__("The first page that a user views during a session. This is also known as the <em>entrance page</em>. For example, if they search for 'Brooklyn Office Space,' and they land on your home page, it gets counted (for that visit) as a landing page.",'wp-slimstat')) ?>
1347
  <p><?php self::inline_help(__('A referrer (or referring site) is the site that a visitor previously visited before following a link to your site.','wp-slimstat')) ?>
1348
  <?php _e('Unique Referrers', 'wp-slimstat') ?> <span><?php echo number_format(wp_slimstat_db::count_records('referer', "referer NOT LIKE '%{$_SERVER['SERVER_NAME']}%'"), 0, '', wp_slimstat_db::$formats['thousand']) ?></span></p>
1349
  <p><?php self::inline_help(__("Visitors who visited the site by typing the URL directly into their browser. <em>Direct</em> can also refer to the visitors who clicked on the links from their bookmarks/favorites, untagged links within emails, or links from documents that don't include tracking variables.",'wp-slimstat')) ?>
1350
+ <?php _e('Direct Pageviews', 'wp-slimstat') ?> <span><?php echo number_format(wp_slimstat_db::count_records('id', 'resource IS NULL'), 0, '', wp_slimstat_db::$formats['thousand']) ?></span></p>
1351
  <p><?php self::inline_help(__("Visitors who came to your site via searches on Google or some other search engine.",'wp-slimstat')) ?>
1352
  <?php _e('From a search result', 'wp-slimstat') ?> <span><?php echo number_format(wp_slimstat_db::count_records('id', "searchterms IS NOT NULL AND referer IS NOT NULL AND referer NOT LIKE '%".home_url()."%'"), 0, '', wp_slimstat_db::$formats['thousand']) ?></span></p>
1353
  <p><?php self::inline_help(__("The first page that a user views during a session. This is also known as the <em>entrance page</em>. For example, if they search for 'Brooklyn Office Space,' and they land on your home page, it gets counted (for that visit) as a landing page.",'wp-slimstat')) ?>
admin/wp-slimstat-admin.php CHANGED
@@ -11,8 +11,7 @@ class wp_slimstat_admin{
11
  */
12
  public static function init(){
13
  if ((wp_slimstat::$options['enable_ads_network'] == 'yes' || wp_slimstat::$options['enable_ads_network'] == 'no')){
14
- self::$admin_notice = "Join us in welcoming our new partner <a href='' target='_blank'>GetSocial.io</a>, a service that allows you to find your true influencers and understand which users are driving your traffic and conversions through their shares. Our users get <strong>free access</strong> to their platform through a new report located in the Site Analysis screen. We hope you will enjoy all the benefits of social media analytics. Please note: by enabling this feature, you agree to have Slimstat send GetSocial your posts' URLs once daily for analysis. No other information is disclosed. You can always opt-out and deactivate this functionality by using the corresponding option under Settings > Reports.";
15
- // self::$admin_notice = "We are still getting support requests from users having issues with Slimstat because of the Geolite add-on that was distributed a few months ago. If you are still using this separate add-on, we'd like to remind you that Slimstat 4 introduced a new more intuitive way of managing the MaxMind Geolocation database bundled with our software. Actually, the free Geolite plugin <strong>is not compatible</strong> with the latest version of Slimstat, because of the IPv6 support we implemented. We recommend that you uninstall the add-on from your systems, thus improving the overall performance of your website. As usual, do not hesitate to contact us if you have any questions.";
16
  self::$admin_notice .= '<br/><br/><a id="slimstat-hide-admin-notice" href="#" class="button-secondary">I got it, thanks</a>';
17
  }
18
  else {
@@ -111,7 +110,7 @@ class wp_slimstat_admin{
111
  add_action('manage_posts_custom_column', array(__CLASS__, 'add_post_column'), 10, 2);
112
  add_action('manage_pages_custom_column', array(__CLASS__, 'add_post_column'), 10, 2);
113
 
114
- if( strpos( $_SERVER['REQUEST_URI'], '/wp-admin/edit.php' ) !== false ) {
115
  add_action('admin_enqueue_scripts', array(__CLASS__, 'wp_slimstat_stylesheet'));
116
  }
117
  }
11
  */
12
  public static function init(){
13
  if ((wp_slimstat::$options['enable_ads_network'] == 'yes' || wp_slimstat::$options['enable_ads_network'] == 'no')){
14
+ self::$admin_notice = "<strong>Attention, please!</strong> We are still getting support requests from users having issues with Slimstat because of the GeoLite add-on that was distributed a few months ago. If you are still using this separate add-on, we'd like to remind you that Slimstat 4 introduced a new more intuitive way of managing the MaxMind Geolocation database bundled with our software. Actually, the free Geolite plugin <strong>is not compatible</strong> with the latest version of Slimstat, because of the IPv6 support we introduced a few weeks ago. We recommend that you uninstall the add-on from your systems, thus improving the overall performance of your website. As usual, do not hesitate to contact us if you have any questions.";
 
15
  self::$admin_notice .= '<br/><br/><a id="slimstat-hide-admin-notice" href="#" class="button-secondary">I got it, thanks</a>';
16
  }
17
  else {
110
  add_action('manage_posts_custom_column', array(__CLASS__, 'add_post_column'), 10, 2);
111
  add_action('manage_pages_custom_column', array(__CLASS__, 'add_post_column'), 10, 2);
112
 
113
+ if( strpos( $_SERVER['REQUEST_URI'], 'edit.php' ) !== false || ( $temp >= 0 && strpos($_SERVER['REQUEST_URI'], '/wp-admin/', $temp) !== false ) ) {
114
  add_action('admin_enqueue_scripts', array(__CLASS__, 'wp_slimstat_stylesheet'));
115
  }
116
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: coolmann
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BNJR5EZNY3W38
4
  Tags: analytics, tracking, reports, analyze, wassup, geolocation, online users, spider, tracker, pageviews, stats, maxmind, statistics, statpress
5
  Requires at least: 3.8
6
- Tested up to: 4.2
7
- Stable tag: 4.1.5
8
 
9
  == Description ==
10
  [youtube https://www.youtube.com/watch?v=iJCtjxArq4U]
@@ -59,6 +59,11 @@ Our knowledge base is available on our [support center](http://docs.wp-slimstat.
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
62
  = 4.1.5 =
63
  * [New] Welcome our new partner GetSocial.io, a service that allows you to find your true influencers and understand which users are driving your traffic and conversions through their shares. Our users get free access to their platform through a new report located in the Site Analysis screen.
64
  * [New] Slimstat can now differentiate between viewport size and screen size (or resolution). Two new reports, hidden by default, will enumerate the most popular of both categories.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BNJR5EZNY3W38
4
  Tags: analytics, tracking, reports, analyze, wassup, geolocation, online users, spider, tracker, pageviews, stats, maxmind, statistics, statpress
5
  Requires at least: 3.8
6
+ Tested up to: 4.3
7
+ Stable tag: 4.1.5.1
8
 
9
  == Description ==
10
  [youtube https://www.youtube.com/watch?v=iJCtjxArq4U]
59
 
60
  == Changelog ==
61
 
62
+ = 4.1.5.1 =
63
+ * [Update] Our Export to Excel add-on now includes the post slug, when appropriate.
64
+ * [Fix] Removed a few warnings displayed when DEBUG MODE was enabled.
65
+ * [Fix] A warning was being displayed when exporting certain reports.
66
+
67
  = 4.1.5 =
68
  * [New] Welcome our new partner GetSocial.io, a service that allows you to find your true influencers and understand which users are driving your traffic and conversions through their shares. Our users get free access to their platform through a new report located in the Site Analysis screen.
69
  * [New] Slimstat can now differentiate between viewport size and screen size (or resolution). Two new reports, hidden by default, will enumerate the most popular of both categories.
wp-slimstat.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Slimstat
4
  Plugin URI: http://wordpress.org/plugins/wp-slimstat/
5
  Description: The leading web analytics plugin for WordPress
6
- Version: 4.1.5
7
  Author: Camu
8
  Author URI: http://www.wp-slimstat.com/
9
  */
@@ -11,7 +11,7 @@ Author URI: http://www.wp-slimstat.com/
11
  if ( !empty( wp_slimstat::$options ) ) return true;
12
 
13
  class wp_slimstat {
14
- public static $version = '4.1.5';
15
  public static $options = array();
16
 
17
  public static $wpdb = '';
3
  Plugin Name: WP Slimstat
4
  Plugin URI: http://wordpress.org/plugins/wp-slimstat/
5
  Description: The leading web analytics plugin for WordPress
6
+ Version: 4.1.5.1
7
  Author: Camu
8
  Author URI: http://www.wp-slimstat.com/
9
  */
11
  if ( !empty( wp_slimstat::$options ) ) return true;
12
 
13
  class wp_slimstat {
14
+ public static $version = '4.1.5.1';
15
  public static $options = array();
16
 
17
  public static $wpdb = '';