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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.19MB] [CPU: ▼20.84ms] Passed 4 tests
Analyzing server-side resources used by Easy Google Analytics Toolkit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.27 ▲5.85 |
Dashboard /wp-admin | 3.12 ▼0.23 | 30.68 ▼31.76 |
Posts /wp-admin/edit.php | 3.26 ▼0.11 | 30.30 ▼17.24 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 71.22 ▼29.24 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 27.30 ▼5.13 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Google Analytics Toolkit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲31 | 13.32 ▼0.97 | 22.24 ▲20.38 | 43.01 ▲4.70 |
Dashboard /wp-admin | 2,221 ▲46 | 5.75 ▲0.03 | 98.98 ▼0.74 | 42.48 ▲2.55 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.24 ▲0.24 | 35.79 ▲1.50 | 35.61 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 22.77 ▼0.48 | 577.92 ▼80.19 | 52.31 ▼0.71 |
Media Library /wp-admin/upload.php | 1,425 ▲31 | 4.18 ▼0.02 | 97.91 ▼2.34 | 41.73 ▼4.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: event in wp-content/plugins/scand-easy-ga-toolkit/includes/views/_custom_event_preview.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Scand_Easy_GA_Toolkit_Validator' not found in wp-content/plugins/scand-easy-ga-toolkit/includes/class-scand-easy-ga-toolkit-event-validator.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/scand-easy-ga-toolkit/includes/views/_custom_event_preview.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Scand_Easy_GA_Toolkit_Gtag' not found in wp-content/plugins/scand-easy-ga-toolkit/includes/views/_custom_event_preview.php:11
- > PHP Notice
Undefined variable: event in wp-content/plugins/scand-easy-ga-toolkit/includes/views/_custom_event_preview.php on line 8
- > PHP Notice
Undefined variable: key in wp-content/plugins/scand-easy-ga-toolkit/includes/views/_custom_event_preview.php on line 8
- > PHP Notice
Undefined variable: event in wp-content/plugins/scand-easy-ga-toolkit/includes/views/_custom_event_preview.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Scand_Easy_GA_Toolkit_Validator_Interface' not found in wp-content/plugins/scand-easy-ga-toolkit/includes/class-scand-easy-ga-toolkit-validator.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/scand-easy-ga-toolkit/includes/views/main.php:1
- > PHP Fatal error
Uncaught Error: Class 'Scand_Easy_GA_Toolkit_Base' not found in wp-content/plugins/scand-easy-ga-toolkit/includes/class-scand-easy-ga-toolkit-gtag.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3 in scand-easy-ga-toolkit/assets to your readme.txt
scand-easy-ga-toolkit/scand-easy-ga-toolkit.php Passed 13 tests
The entry point to "Easy Google Analytics Toolkit" version 1.0.6 is a PHP file that has certain tags in its header comment area
116 characters long description:
Scand Easy Google Analytics Toolkit makes it super easy to integrate Google Analytics tracking code in your web-site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,414 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 180 | 253 | 1,564 |
JavaScript | 1 | 36 | 0 | 425 |
CSS | 1 | 58 | 0 | 246 |
PO File | 1 | 81 | 99 | 179 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 8 | 8.33% |
▷ Public methods | 77 | 80.21% |
▷ Protected methods | 19 | 19.79% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin