Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/easy-speed-optimizer/app/controllers/class-plugin-assets-controller.php+19
Use of undefined constant WPPLGNBLRPLT_PLUGIN_VERSION - assumed 'WPPLGNBLRPLT_PLUGIN_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.81MB] [CPU: ▼55.10ms] Passed 4 tests
Server-side resources used by Easy Speed Optimizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.49 ▼2.17 |
Dashboard /wp-admin | 2.13 ▼1.17 | 8.34 ▼45.91 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 6.87 ▼45.09 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 6.02 ▼101.27 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 7.70 ▼28.13 |
Easy Speed Optimizer /wp-admin/options-general.php?page=espdopt_settings | 2.14 | 6.72 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Easy Speed Optimizer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.20 ▼1.39 | 4.75 ▲2.96 | 47.35 ▲0.31 |
Dashboard /wp-admin | 2,214 ▲23 | 4.89 ▲0.02 | 106.80 ▲2.52 | 39.06 ▼4.61 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.03 | 39.85 ▼1.62 | 34.19 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,363 ▼158 | 16.63 ▼6.37 | 591.21 ▼60.20 | 45.19 ▼5.94 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.27 ▲0.09 | 96.79 ▼13.48 | 41.34 ▼5.77 |
Easy Speed Optimizer /wp-admin/options-general.php?page=espdopt_settings | 816 | 1.85 | 25.83 | 30.23 |
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
- > Warning in wp-content/plugins/easy-speed-optimizer/app/controllers/class-plugin-assets-controller.php+19
Use of undefined constant WPPLGNBLRPLT_PLUGIN_VERSION - assumed 'WPPLGNBLRPLT_PLUGIN_VERSION' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=espdopt_settings
- > Warning in wp-content/plugins/easy-speed-optimizer/app/controllers/class-plugin-assets-controller.php+19
Use of undefined constant WPPLGNBLRPLT_PLUGIN_VERSION - assumed 'WPPLGNBLRPLT_PLUGIN_VERSION' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Espdopt\\Entities\\Abstract_Entity' not found in wp-content/plugins/easy-speed-optimizer/app/entities/class-settings-tab.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Espdopt\\Interfaces\\Singleton' not found in wp-content/plugins/easy-speed-optimizer/app/controllers/class-speed-optimize-controller.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-speed-optimizer/templates/settings/fields/checkbox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-speed-optimizer/templates/settings/fields/hidden.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/easy-speed-optimizer/config/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-speed-optimizer/templates/settings/fields/button.php:8
- > PHP Notice
Undefined variable: id in wp-content/plugins/easy-speed-optimizer/templates/settings/fields/text.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-speed-optimizer/templates/settings/fields/select.php:8
- > PHP Fatal error
Trait 'Espdopt\\Traits\\Singleton' not found in wp-content/plugins/easy-speed-optimizer/app/controllers/class-plugin-assets-controller.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Espdopt\\Interfaces\\Service' not found in wp-content/plugins/easy-speed-optimizer/app/services/class-assets-listener.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #4 (Use the Critical CSS settings to load the page faster.) image missing
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== easy-speed-optimizer ===
)
easy-speed-optimizer/easy-speed-optimizer.php Passed 13 tests
The main file in "Easy Speed Optimizer" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
This plugin removes redundant scripts from the pages and provides possibility to setup above the fold critical CSS.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin848 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 241 | 269 | 776 |
CSS | 2 | 9 | 0 | 67 |
JSON | 1 | 0 | 0 | 4 |
JavaScript | 1 | 0 | 0 | 1 |
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.30 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 6 | 8.57% |
▷ Public methods | 43 | 61.43% |
▷ Protected methods | 26 | 37.14% |
▷ Private methods | 1 | 1.43% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 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