Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.09MB] [CPU: ▲30.83ms] 75% from 4 tests
This is a short check of server-side resources used by Goon - Speed Up Your WordPress Site
The following require your attention
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.09MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.80 ▲5.34 | 75.91 ▲33.39 |
Dashboard /wp-admin | 8.82 ▲5.52 | 84.71 ▲34.37 |
Posts /wp-admin/edit.php | 8.82 ▲5.46 | 85.41 ▲34.85 |
Add New Post /wp-admin/post-new.php | 9.95 ▲4.06 | 115.86 ▲20.70 |
Media Library /wp-admin/upload.php | 8.82 ▲5.59 | 84.37 ▲44.52 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.82 | 75.17 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- The plugin illegally modified 1 file (24.60KB) outside of "wp-content/plugins/goon-plugin-control/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/class-goon-mu.php
Filesystem: 207 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
default_term_goon_categories |
fs_active_plugins |
can_compress_scripts |
goon_categories_children |
fs_gdpr |
widget_recent-comments |
widget_recent-posts |
fs_debug_mode |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Goon - Speed Up Your WordPress Site
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲201 | 13.28 ▼0.91 | 1.56 ▼0.18 | 33.77 ▼9.51 |
Dashboard /wp-admin | 2,310 ▲130 | 5.09 ▼0.54 | 120.16 ▲27.13 | 43.24 ▼2.50 |
Posts /wp-admin/edit.php | 2,216 ▲113 | 2.43 ▲0.40 | 40.00 ▼0.10 | 36.01 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,621 ▲93 | 22.91 ▼0.08 | 676.32 ▼33.16 | 36.30 ▼16.88 |
Media Library /wp-admin/upload.php | 1,512 ▲115 | 4.66 ▲0.41 | 107.84 ▼6.76 | 48.53 ▲0.35 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,152 | 2.02 | 35.29 | 32.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/goon-plugin-control/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 12 options in the database
- fs_debug_mode
- fs_gdpr
- widget_recent-comments
- fs_accounts
- theysaidso_admin_options
- can_compress_scripts
- fs_active_plugins
- widget_recent-posts
- default_term_goon_categories
- goon_categories_children
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/goon-plugin-control/admin/pages/page-support.php
- 11× 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 get_posts() in wp-content/plugins/goon-plugin-control/admin/pages/page-filters-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/goon-plugin-control/includes/class-goon-mu.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/goon-plugin-control/admin/pages/page-overview-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/goon-plugin-control/admin/pages/page-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'GOON_Admin_Helper' not found in wp-content/plugins/goon-plugin-control/admin/pages/page-groups-edit.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/goon-plugin-control/admin/pages/page-groups-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/goon-plugin-control/admin/pages/page-categories-list.php:2
- > PHP Fatal error
Uncaught Error: Class 'GOON_Admin_Helper' not found in wp-content/plugins/goon-plugin-control/admin/pages/page-filters-edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/goon-plugin-control/admin/pages/page-overview.php:3
- > PHP Fatal error
Uncaught Error: Class 'GOON_Admin_Helper' not found in wp-content/plugins/goon-plugin-control/admin/pages/page-categories-edit.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: speed up, performance, save time, goon, optimization...
goon-plugin-control/goon.php 85% from 13 tests
"Goon - Speed Up Your WordPress Site" version 1.2.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("goon-plugin-control.php" instead of "goon.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin36,348 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 8,207 | 16,632 | 33,472 |
CSS | 17 | 254 | 73 | 1,860 |
JavaScript | 8 | 629 | 233 | 1,016 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 77.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,260 | |
▷ Static methods | 229 | 18.17% |
▷ Public methods | 915 | 72.62% |
▷ Protected methods | 15 | 1.19% |
▷ Private methods | 330 | 26.19% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 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
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/noimage.png | 2.08KB | 2.20KB | 0.00% |
assets/icon-128x128-white.png | 5.44KB | 2.63KB | ▼ 51.62% |
assets/goon-logo-smaller.png | 5.39KB | 3.57KB | ▼ 33.74% |
assets/icon-128x128.png | 6.11KB | 2.67KB | ▼ 56.30% |
admin/img/check_mark.png | 0.55KB | 0.62KB | 0.00% |