Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.90MB] [CPU: ▲20.41ms] Passed 4 tests
An overview of server-side resources used by ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.33 | 49.88 ▲8.53 |
Dashboard /wp-admin | 6.76 ▲3.41 | 74.83 ▲13.13 |
Posts /wp-admin/edit.php | 6.78 ▲3.42 | 80.39 ▲33.91 |
Add New Post /wp-admin/post-new.php | 9.40 ▲3.51 | 116.84 ▲26.05 |
Media Library /wp-admin/upload.php | 6.67 ▲3.44 | 69.52 ▲37.68 |
Settings /wp-admin/admin.php?page=exactmetrics_settings | 6.64 | 70.61 |
Welcome to ExactMetrics /wp-admin/index.php?page=exactmetrics-getting-started | 6.67 | 67.11 |
Reports /wp-admin/admin.php?page=exactmetrics_reports | 6.65 | 64.86 |
Server storage [IO: ▲19.36MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 496 new files
Database: no new tables, 13 new options
New WordPress options |
---|
can_compress_scripts |
widget_exactmetrics-popular-posts-widget |
exactmetrics_db_version |
exactmetrics_review |
exactmetrics_settings |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
exactmetrics_current_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,130 ▲383 | 19.07 ▲4.35 | 26.48 ▲24.79 | 30.43 ▼13.73 |
Dashboard /wp-admin | 2,415 ▲240 | 8.65 ▲3.06 | 163.94 ▲58.40 | 55.14 ▲16.98 |
Posts /wp-admin/edit.php | 2,277 ▲174 | 3.57 ▲1.63 | 71.38 ▲31.53 | 42.27 ▲6.18 |
Add New Post /wp-admin/post-new.php | 1,619 ▲93 | 18.88 ▼4.09 | 770.50 ▲161.21 | 76.85 ▲21.84 |
Media Library /wp-admin/upload.php | 1,574 ▲174 | 6.08 ▲1.83 | 124.67 ▲29.15 | 49.50 ▲8.62 |
Settings /wp-admin/admin.php?page=exactmetrics_settings | 1,510 | 7.36 | 192.55 | 203.16 |
Welcome to ExactMetrics /wp-admin/index.php?page=exactmetrics-getting-started | 1,450 | 6.66 | 135.88 | 80.15 |
User Journey /wp-admin/admin.php?page=exactmetrics_reports#/user-journey-report | 1,360 | 11.93 | 217.32 | 81.86 |
Reports /wp-admin/admin.php?page=exactmetrics_reports | 1,449 | 11.33 | 317.76 | 89.74 |
Setup Checklist15 /wp-admin/admin.php?page=exactmetrics_settings#/setup-checklist | 1,650 | 7.09 | 168.66 | 96.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 13 options in the database
- exactmetrics_settings
- db_upgraded
- exactmetrics_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_exactmetrics-popular-posts-widget
- exactmetrics_current_version
- exactmetrics_usage_tracking_config
- exactmetrics_review
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/gutenberg/headline-tool/phpinsight/lib/PHPInsight/data/data.prefix.php
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/gutenberg/headline-tool/phpinsight/lib/PHPInsight/data/data.ign.php
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/gutenberg/headline-tool/phpinsight/examples/demo.php
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/gutenberg/headline-tool/phpinsight/lib/PHPInsight/data/data.neu.php
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/gutenberg/headline-tool/phpinsight/lib/PHPInsight/data/data.pos.php
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/gutenberg/headline-tool/phpinsight/lib/PHPInsight/data/data.neg.php
- > /wp-content/plugins/google-analytics-dashboard-for-wp/includes/emails/templates/body-default-plain.php
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-analytics-dashboard-for-wp/lite/includes/admin/helpers.php:11
- > PHP Fatal error
Uncaught Error: Class 'ExactMetrics_Notification_Event' not found in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-multiple-gtags.php:4
- > PHP Fatal error
Uncaught Error: Class 'ExactMetrics_Notification_Event' not found in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-upgrade-to-pro.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/licensing/plugin-upgrader.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'ExactMetrics_Notification_Event' not found in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-audience.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/google-analytics-dashboard-for-wp/includes/frontend/verified-badge/Controller.php:66
- > PHP Fatal error
Uncaught Error: Class 'ExactMetrics_Notification_Event' not found in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-install-optinmonster.php:9
- > PHP Fatal error
Uncaught Error: Class 'ExactMetrics_Notification_Event' not found in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-install-user-feedback.php:9
- > PHP Fatal error
Uncaught Error: Class 'ExactMetrics_Notification_Event' not found in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-upgrade-for-search-console.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function ExactMetrics() in wp-content/plugins/google-analytics-dashboard-for-wp/includes/admin/notifications/notification-events.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=exactmetrics_settings#/setup-checklist
- > Javascript (severe) in unknown
/wp-content/plugins/google-analytics-dashboard-for-wp/lite/assets/vue/js/chunk-vendors.js?ver=7.22.0 0:5157 Uncaught TypeError: Cannot read properties of null (reading 'style')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: google analytics widget, google analytics, google analytics plugin, gtag, analytics...
google-analytics-dashboard-for-wp/gadwp.php 85% from 13 tests
The main file in "ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)" v. 7.22.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("google-analytics-dashboard-for-wp.php" instead of "gadwp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin34,992 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 6,210 | 21,164 | 31,631 |
JavaScript | 25 | 207 | 293 | 1,551 |
CSS | 26 | 222 | 24 | 1,214 |
SVG | 64 | 13 | 0 | 551 |
JSON | 1 | 1 | 0 | 26 |
Markdown | 2 | 8 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 22.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 97 | |
▷ Abstract classes | 1 | 1.03% |
▷ Concrete classes | 96 | 98.97% |
▷ Final classes | 39 | 40.62% |
Methods | 682 | |
▷ Static methods | 25 | 3.67% |
▷ Public methods | 602 | 88.27% |
▷ Protected methods | 33 | 4.84% |
▷ Private methods | 47 | 6.89% |
Functions | 193 | |
▷ Named functions | 188 | 97.41% |
▷ Anonymous functions | 5 | 2.59% |
Constants | 24 | |
▷ Global constants | 21 | 87.50% |
▷ Class constants | 3 | 12.50% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
157 PNG files occupy 6.25MB with 1.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lite/assets/img/emails/summaries/icon-top-pages.png | 0.44KB | 0.33KB | ▼ 23.83% |
lite/assets/vue/img/monsterinsights-report-ecommerce.png | 44.45KB | 47.11KB | 0.00% |
lite/assets/vue/img/woocommerce.png | 5.57KB | 5.71KB | 0.00% |
assets/images/up.png | 1.03KB | 0.21KB | ▼ 79.54% |
lite/assets/img/emails/summaries/stats@2x.png | 0.39KB | 0.28KB | ▼ 28.04% |