Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.75MB] [CPU: ▼56.54ms] Passed 4 tests
A check of server-side resources used by Sukellos Enable Classic Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 6.97 ▼32.89 |
Dashboard /wp-admin | 2.26 ▼1.08 | 7.44 ▼55.30 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 9.32 ▼41.43 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.62 | 7.46 ▼96.53 |
Media Library /wp-admin/upload.php | 2.26 ▼0.96 | 8.00 ▼27.92 |
Tools /wp-admin/admin.php?page=wp_sukellos_fw_tools | 2.27 | 7.43 |
Sukellos Fw /wp-admin/admin.php?page=wp_sukellos_fw_dashboard | 2.27 | 6.69 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 324 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sukellos Enable Classic Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲204 | 14.78 ▲0.43 | 1.78 ▲0.29 | 42.42 ▼0.34 |
Dashboard /wp-admin | 2,369 ▲195 | 6.19 ▲0.67 | 119.51 ▲27.54 | 38.53 ▼5.95 |
Posts /wp-admin/edit.php | 2,297 ▲197 | 3.31 ▲1.31 | 55.77 ▲17.82 | 37.53 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 22.92 ▼0.20 | 641.71 ▼40.49 | 36.94 ▼17.51 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.10 ▼0.12 | 82.06 ▼28.16 | 48.50 ▲1.20 |
Tools /wp-admin/admin.php?page=wp_sukellos_fw_tools | 1,047 | 3.12 | 38.11 | 30.34 |
Sukellos Fw /wp-admin/admin.php?page=wp_sukellos_fw_dashboard | 1,292 | 3.26 | 41.72 | 39.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- wp_sukellos_fw_edd_licenses
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_sukellos_fw_dashboard
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 96× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/sukellos-enable-classic-editor/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: user meta, post meta, gutenberg, custom admin panel, option...
sukellos-enable-classic-editor/sukellos-enable-classic-editor.php 77% from 13 tests
The main PHP file in "Sukellos Enable Classic Editor" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin16,787 lines of code in 301 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 4,509 | 9,930 | 12,774 |
JavaScript | 86 | 299 | 507 | 2,426 |
CSS | 13 | 44 | 103 | 716 |
Markdown | 4 | 192 | 0 | 604 |
JSON | 4 | 0 | 0 | 267 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 13 | |
Traits | 10 | |
Classes | 163 | |
▷ Abstract classes | 27 | 16.56% |
▷ Concrete classes | 136 | 83.44% |
▷ Final classes | 3 | 2.21% |
Methods | 1,127 | |
▷ Static methods | 104 | 9.23% |
▷ Public methods | 812 | 72.05% |
▷ Protected methods | 232 | 20.59% |
▷ Private methods | 83 | 7.36% |
Functions | 23 | |
▷ Named functions | 1 | 4.35% |
▷ Anonymous functions | 22 | 95.65% |
Constants | 136 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 136 | 100.00% |
▷ Public constants | 114 | 83.82% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.59MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 449.22KB | 114.46KB | ▼ 74.52% |
assets/screenshot-2.png | 59.06KB | 59.06KB | 0.00% |
assets/screenshot-3.png | 90.83KB | 90.82KB | 0.01% |