Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▲4.56ms] Passed 4 tests
An overview of server-side resources used by Metrics Query
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 43.41 ▲5.46 |
Dashboard /wp-admin | 4.19 ▲0.89 | 57.89 ▲9.89 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 57.52 ▲10.48 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 90.40 ▼5.31 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 40.80 ▲8.21 |
Frontend Settings /wp-admin/admin.php?page=gadwp_frontend_settings | 4.19 | 37.69 |
General Settings /wp-admin/admin.php?page=gadwp_settings | 6.59 | 45.14 |
Backend Settings /wp-admin/admin.php?page=gadwp_backend_settings | 4.19 | 35.26 |
Errors & Debug /wp-admin/admin.php?page=gadwp_errors_debugging | 4.19 | 37.25 |
Tracking Code /wp-admin/admin.php?page=gadwp_tracking_settings | 4.19 | 35.05 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 132 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
gadwp_options |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_gadwp-frontwidget-report |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Metrics Query
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 15.72 ▲1.34 | 1.77 ▼0.07 | 41.85 ▼0.44 |
Dashboard /wp-admin | 2,367 ▲176 | 7.34 ▲1.54 | 128.16 ▲23.19 | 40.97 ▼2.90 |
Posts /wp-admin/edit.php | 2,197 ▲105 | 3.98 ▲1.96 | 50.69 ▲9.73 | 75.59 ▲39.23 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 23.35 ▲5.18 | 647.27 ▲9.90 | 53.46 ▲6.18 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.25 ▲0.03 | 94.93 ▼7.55 | 44.10 ▼1.32 |
Frontend Settings /wp-admin/admin.php?page=gadwp_frontend_settings | 1,144 | 3.72 | 98.25 | 45.00 |
General Settings /wp-admin/admin.php?page=gadwp_settings | 1,090 | 3.69 | 78.53 | 30.67 |
Backend Settings /wp-admin/admin.php?page=gadwp_backend_settings | 1,262 | 3.69 | 73.12 | 32.54 |
Errors & Debug /wp-admin/admin.php?page=gadwp_errors_debugging | 1,143 | 3.69 | 71.34 | 35.89 |
Tracking Code /wp-admin/admin.php?page=gadwp_tracking_settings | 2,992 | 3.75 | 72.25 | 37.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_gadwp-frontwidget-report
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gadwp_tracking_settings
- > Notice in wp-content/plugins/metrics-query/admin/settings.php+437
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/metrics-query/front/views/analytics-optout-code.php
- > /wp-content/plugins/metrics-query/front/views/optimize-code.php
- > /wp-content/plugins/metrics-query/front/views/tagmanager-code.php
- > /wp-content/plugins/metrics-query/front/views/tagmanager-amp-code.php
- > /wp-content/plugins/metrics-query/front/views/analytics-amp-clientidapi.php
- > /wp-content/plugins/metrics-query/front/views/analytics-code.php
- > /wp-content/plugins/metrics-query/front/views/analytics-amp-code.php
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/metrics-query/front/views/analytics-code.php on line 17
- > PHP Notice
Undefined variable: data in wp-content/plugins/metrics-query/front/views/analytics-optout-code.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/metrics-query/front/views/tagmanager-code.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/metrics-query/front/views/analytics-code.php on line 18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/metrics-query/front/views/tagmanager-amp-code.php on line 12
- > PHP Notice
Undefined variable: data in wp-content/plugins/metrics-query/front/views/analytics-code.php on line 17
- > PHP Notice
Undefined variable: data in wp-content/plugins/metrics-query/front/views/optimize-code.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/metrics-query/front/views/analytics-optout-code.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/metrics-query/front/views/analytics-amp-code.php on line 12
- > PHP Notice
Undefined variable: data in wp-content/plugins/metrics-query/front/views/tagmanager-amp-code.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #4 (Google Analytics Dashboard for WP Geo Map), #5 (Google Analytics Dashboard for WP Top Pages, Top Referrers and Top Searches), #6 (Google Analytics Dashboard for WP Traffic Overview), #7 (Google Analytics Dashboard for WP statistics per page on Frontend), #8 (Google Analytics Dashboard for WP cities on region map), #9 (Google Analytics Dashboard for WP Widget)
metrics-query/gadwp.php 77% from 13 tests
The main PHP script in "Metrics Query" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("metrics-query.php" instead of "gadwp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected19,161 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,797 | 4,749 | 18,098 |
JavaScript | 11 | 1 | 0 | 1,055 |
CSS | 8 | 0 | 4 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 188 | |
▷ Abstract classes | 6 | 3.19% |
▷ Concrete classes | 182 | 96.81% |
▷ Final classes | 12 | 6.59% |
Methods | 1,727 | |
▷ Static methods | 49 | 2.84% |
▷ Public methods | 1,637 | 94.79% |
▷ Protected methods | 24 | 1.39% |
▷ Private methods | 66 | 3.82% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 57 | |
▷ Global constants | 5 | 8.77% |
▷ Class constants | 52 | 91.23% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/realtime/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
common/realtime/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/images/gadwp-icon.png | 0.34KB | 0.27KB | ▼ 19.08% |
common/realtime/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
realtime/jquery/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |