Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.49ms] Passed 4 tests
This is a short check of server-side resources used by Multiple Google Analytics Trackers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.21 ▼3.63 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.40 ▼5.79 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.10 ▲2.78 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.56 ▼3.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.32 ▲3.42 |
Google Analytics /wp-admin/options-general.php?page=google-analytics | 3.24 | 30.19 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ahr_ga_ids |
ahr_ga_location |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Multiple Google Analytics Trackers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.49 | 1.68 ▼0.29 | 44.83 ▼0.12 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.07 | 84.79 ▼8.69 | 42.23 ▲1.65 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.04 | 37.99 ▲1.68 | 34.25 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.28 ▼4.88 | 657.75 ▼25.01 | 65.67 ▲11.81 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▼0.01 | 96.61 ▼21.57 | 40.31 ▼7.84 |
Google Analytics /wp-admin/options-general.php?page=google-analytics | 906 | 2.09 | 40.29 | 34.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- ahr_ga_ids
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- ahr_ga_location
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/multi-google-analytics/frontend/ga-script.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/multi-google-analytics/admin/activation-notice.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multi-google-analytics/admin/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-google-analytics/google-analytics.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: tracking, analytics, google analytics, stats, google...
multi-google-analytics/google-analytics.php 92% from 13 tests
Analyzing the main PHP file in "Multiple Google Analytics Trackers" version 1.1.2
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("multi-google-analytics.php" instead of "google-analytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin630 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 24 | 9 | 283 |
PHP | 5 | 35 | 15 | 194 |
PO File | 1 | 18 | 50 | 72 |
CSS | 2 | 11 | 0 | 56 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected