Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼1.76ms] Passed 4 tests
A check of server-side resources used by WPX Maintenance Pro Light
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 49.24 ▲9.94 |
Dashboard /wp-admin | 3.81 ▲0.50 | 53.77 ▼2.64 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 57.44 ▲8.00 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 89.88 ▼12.86 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 38.56 ▲0.48 |
Server storage [IO: ▲15.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 134 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
wpx_maintenance_pro_light_slug |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPX Maintenance Pro Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲44 | 14.35 ▼0.21 | 1.90 ▼0.10 | 44.95 ▲1.98 |
Dashboard /wp-admin | 2,211 ▲34 | 5.61 ▼0.07 | 92.44 ▼3.17 | 40.86 ▼2.39 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.98 ▲0.03 | 40.03 ▼1.27 | 36.81 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.83 ▲0.30 | 679.53 ▼15.24 | 61.02 ▲9.23 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.16 ▼0.10 | 101.82 ▼8.03 | 42.13 ▼2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- wpx_maintenance_pro_light_slug
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Foundation\\Plugin' not found in wp-content/plugins/wpx-maintenance-pro-light/bootstrap/plugin.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\Http\\Controllers\\Controller' not found in wp-content/plugins/wpx-maintenance-pro-light/plugin/Http/Controllers/Settings/SettingsController.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-maintenance-pro-light/vendor/wpbones/wpbones/src/Html/HtmlTagForm.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-maintenance-pro-light/vendor/wpbones/wpbones/src/Html/HtmlTagFieldSet.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/wpx-maintenance-pro-light/resources/views/settings/scheduling.php:4
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-maintenance-pro-light/vendor/wpbones/wpbones/src/Html/HtmlTagOptGroup.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/wpx-maintenance-pro-light/resources/views/settings/rules.php:4
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Routing\\Controller' not found in wp-content/plugins/wpx-maintenance-pro-light/plugin/Http/Controllers/Controller.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-maintenance-pro-light/vendor/wpbones/wpbones/src/Html/HtmlTagOption.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXMaintenanceProLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-maintenance-pro-light/vendor/wpbones/wpbones/src/Html/HtmlTagA.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: coming, maintenance, users, ip
wpx-maintenance-pro-light/index.php 69% from 13 tests
The entry point to "WPX Maintenance Pro Light" version 2.3.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("localization")
- 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
- Domain Path: Please prefix the domain path with a forward slash character ("/localization")
- Main file name: Name the main plugin file the same as the plugin slug ("wpx-maintenance-pro-light.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin6,733 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,224 | 2,275 | 4,842 |
CSS | 15 | 11 | 26 | 497 |
Markdown | 7 | 165 | 0 | 387 |
LESS | 5 | 56 | 18 | 360 |
JSON | 5 | 0 | 0 | 272 |
PO File | 2 | 134 | 200 | 252 |
JavaScript | 5 | 42 | 32 | 123 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 10 | 22.73% |
▷ Concrete classes | 34 | 77.27% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 57 | 22.27% |
▷ Public methods | 204 | 79.69% |
▷ Protected methods | 42 | 16.41% |
▷ Private methods | 10 | 3.91% |
Functions | 19 | |
▷ Named functions | 13 | 68.42% |
▷ Anonymous functions | 6 | 31.58% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.69MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 16.58KB | 6.41KB | ▼ 61.33% |
assets/screenshot-4.png | 198.26KB | 47.35KB | ▼ 76.12% |
assets/screenshot-1.png | 111.43KB | 27.78KB | ▼ 75.07% |
assets/screenshot-3.png | 181.36KB | 44.70KB | ▼ 75.35% |
assets/icon-256x256.png | 35.63KB | 12.23KB | ▼ 65.66% |