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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.93ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Name: Maintenance mode page generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.01 ▼2.00 |
Dashboard /wp-admin | 3.33 ▼0.01 | 55.42 ▼3.23 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 53.22 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.65 ▼16.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.64 ▲2.23 |
Maintenance settings /wp-admin/options-general.php?page=maintenance-settings | 3.27 | 33.54 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
mmpg_options |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Name: Maintenance mode page generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 14.78 ▲0.43 | 1.69 ▼0.12 | 38.31 ▼1.72 |
Dashboard /wp-admin | 2,348 ▲163 | 6.46 ▲0.58 | 129.78 ▲5.87 | 52.38 ▲9.24 |
Posts /wp-admin/edit.php | 2,271 ▲179 | 3.40 ▲1.37 | 56.79 ▲16.52 | 47.43 ▲11.45 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.53 ▲0.23 | 646.26 ▼19.22 | 52.54 ▼4.41 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.19 ▲0.00 | 84.41 ▼21.51 | 54.34 ▲6.10 |
Maintenance settings /wp-admin/options-general.php?page=maintenance-settings | 1,713 | 6.72 | 144.58 | 118.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=maintenance-settings
- > Notice in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php+8
Undefined variable: style
- > GET request to /wp-admin/options-general.php?page=maintenance-settings
- > Notice in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php+49
Undefined variable: logo
- > GET request to /wp-admin/options-general.php?page=maintenance-settings
- > Notice in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php+118
Undefined variable: css
- > GET request to /wp-admin/options-general.php?page=maintenance-settings
- > Notice in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php+127
Undefined variable: js
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: description in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php on line 62
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/maintenance-mode-page-editor/core/view/front/maintenance.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-mode-page-editor/core/controller/mmpga_admin.class.php:10
- > PHP Notice
Undefined variable: style in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-mode-page-editor/core/controller/mmpga_admin.class.php:10
- > PHP Notice
Undefined variable: logo in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php on line 49
- > PHP Fatal error
Uncaught Error: Class 'mmpga_controller' not found in wp-content/plugins/maintenance-mode-page-editor/core/controller/mmpga_frontend.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'mmpga_controller' not found in wp-content/plugins/maintenance-mode-page-editor/core/controller/mmpga_admin.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/maintenance-mode-page-editor/core/view/back/options.php:65
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== Plugin Name: Maintenance mode page generator ===
) - Contributors: The plugin contributors field is missing
maintenance-mode-page-editor/maintenance-mode-page-generator.php 92% from 13 tests
Analyzing the main PHP file in "Plugin Name: Maintenance mode page generator" version 1.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maintenance-mode-page-editor.php" instead of "maintenance-mode-page-generator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,315 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 7 | 36 | 21 | 514 |
CSS | 1 | 0 | 21 | 478 |
PHP | 9 | 72 | 21 | 307 |
JavaScript | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/facebook.png | 5.57KB | 3.52KB | ▼ 36.74% |
assets/img/twitter.png | 13.24KB | 8.15KB | ▼ 38.44% |
assets/img/instagram.png | 9.17KB | 9.14KB | 0.36% |