Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.75ms] Passed 4 tests
Server-side resources used by Maintenance Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 41.04 ▼2.40 |
Dashboard /wp-admin | 3.60 ▲0.29 | 58.17 ▲7.02 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 55.86 ▲4.82 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 93.45 ▼13.65 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 40.15 ▲0.25 |
Maintenance Page /wp-admin/options-general.php?page=mp_settings_api | 3.48 | 41.89 |
Server storage [IO: ▲2.86MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_maintenance_page |
New WordPress options |
---|
mp_basics |
widget_theysaidso_widget |
theysaidso_admin_options |
mp_subscribe |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
mp_social |
widget_recent-comments |
Browser metrics Passed 4 tests
Maintenance Page: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲201 | 14.87 ▲0.60 | 1.99 ▼0.43 | 43.17 ▲0.98 |
Dashboard /wp-admin | 2,365 ▲188 | 6.33 ▲0.73 | 119.50 ▲27.99 | 40.00 ▼6.93 |
Posts /wp-admin/edit.php | 2,293 ▲196 | 3.49 ▲1.52 | 49.59 ▲9.38 | 34.30 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.62 ▲0.45 | 650.10 ▼45.76 | 39.33 ▼12.30 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.31 ▲0.12 | 94.60 ▼27.76 | 47.34 ▼1.28 |
Maintenance Page /wp-admin/options-general.php?page=mp_settings_api | 2,334 | 8.19 | 188.92 | 111.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_email() in wp-content/plugins/maintenance-page/includes/lib/subscriber_handler.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/maintenance-page/public/template/maintenance-page-display.php:1
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Maintenance Page screenshot), #2 (General Settings Page), #3 (Social Settings Page), #4 (Subscribe Settings Page)
- Tags: There are too many tags (16 tag instead of maximum 10)
maintenance-page/maintenance-page.php 92% from 13 tests
The main PHP script in "Maintenance Page" version 1.0.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 408 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,170 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 20 | 75 | 2,347 |
PHP | 7 | 179 | 433 | 998 |
SVG | 1 | 0 | 0 | 520 |
JavaScript | 3 | 65 | 141 | 305 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 55 | |
▷ Static methods | 3 | 5.45% |
▷ Public methods | 51 | 92.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.27% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/maintenance-page-pro.png | 74.64KB | 23.19KB | ▼ 68.93% |