MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy)

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can grow your business with powerful analytics.

v10.2.2chriscct7Updated Added 2m+ installs90% rating64% support resolved
25
Score
116
Errors
441
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance98
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

557 findings

Maintainability

308

18 issue groups

Security

212

5 issue groups

I18n

26

2 issue groups

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.123
Category
Security
Occurrences
123
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$background_color".84
Category
Maintainability
Occurrences
84
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$background_color".

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['_monsterinsights_sitenote_note']41
Category
Security
Occurrences
41
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['_monsterinsights_sitenote_note']

ERRORMaintainabilitybadly named filesFile and folder names must not contain spaces or special characters.41
Category
Maintainability
Occurrences
41
Severity
error

Sample message

File and folder names must not contain spaces or special characters.

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.37
Category
Maintainability
Occurrences
37
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().35
Category
Maintainability
Occurrences
35
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;35
Category
Maintainability
Occurrences
35
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGSecurityRequest data is not unslashed$_POST['date_range'] not unslashed before sanitization. Use wp_unslash() or similar24
Category
Security
Occurrences
24
Severity
warning

Sample message

$_POST['date_range'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "admin_head".23
Category
Maintainability
Occurrences
23
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "admin_head".

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $sql used in $wpdb->get_results()\n$sql assigned unsafely at line 327.21
Category
Security
Occurrences
21
Severity
warning

Sample message

Unescaped parameter $sql used in $wpdb->get_results()\n$sql assigned unsafely at line 327.

Show 15 more
ERRORI18nText Domain Mismatch20
Category
I18n
Occurrences
20
Severity
error

Sample message

Mismatched text domain. Expected 'google-analytics-for-wordpress' but got 'google-analytics-premium'.

WARNINGMaintainabilityNon-prefixed constant13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "WP_ADMIN".

WARNINGMaintainabilityNon-prefixed function8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "current_datetime".

WARNINGMaintainabilityNo PHP code found6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.

ERRORI18nMissing Translators Comment6
Category
I18n
Occurrences
6
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

WARNINGMaintainabilitySchema Change5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Attempting a database schema change is discouraged.

WARNINGMaintainabilityslow db query meta key4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

ERRORSecurityLike Wildcards In Query3
Category
Security
Occurrences
3
Severity
error

Sample message

SQL wildcards for a LIKE query should be passed in through a replacement parameter. Found: LIKE '_transient_monsterinsights_report_%%'.

WARNINGMaintainabilityslow db query meta value3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

ERRORMaintainabilityunlink unlink3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Google Analytics for WordPress by MonsterInsights" - contains the restricted term "google" and cannot be used to begin your plugin name. We disallow the use of certain terms in ways that are abused, or potentially infringe on and/or are misleading with regards to trademarks. You may use the term "google" elsewhere in your plugin name, such as "... for google".

ERRORMaintainabilityPlugin Directory Write2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Plugin folders are deleted when upgraded. Do not save data to the plugin folder using unzip_file(). Detected usage of constant WP_CONTENT_DIR. Use wp_upload_dir() to get the uploads directory path or save to the database instead.

WARNINGMaintainabilityDiscouraged PHP function2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

The use of function set_time_limit() is discouraged

WARNINGMaintainabilityMissing Version2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

ERRORMaintainabilityNon Enqueued Stylesheet2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Stylesheets must be registered/enqueued via wp_enqueue_style()

Score History

First score snapshot

v10.2.2

25

Latest

Findings
557
Errors
116
Warnings
441
Check
2.0.0

Related Plugins

Machete

7k+ active installs

99
Search Analytics for WP

3k+ active installs

99
Web Worker Offloading

10k+ active installs

99
98
Google Tag Manager

10k+ active installs

98