Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.32ms] Passed 4 tests
An overview of server-side resources used by Maintenance
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.01 ▲1.06 |
Dashboard /wp-admin | 3.84 ▲0.53 | 55.59 ▼1.11 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 54.62 ▲3.63 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 89.99 ▼12.84 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 46.19 ▲8.43 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/maintenance/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 136 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
mtnc_db_version |
maintenance_meta |
widget_recent-posts |
maintenance_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maintenance
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.73 ▼0.56 | 1.66 ▼0.21 | 54.36 ▲9.37 |
Dashboard /wp-admin | 2,293 ▲90 | 5.19 ▲0.30 | 104.34 ▼22.62 | 78.08 ▲31.86 |
Posts /wp-admin/edit.php | 2,178 ▲75 | 2.33 ▲0.33 | 46.70 ▲12.11 | 42.17 ▲5.25 |
Add New Post /wp-admin/post-new.php | 1,721 ▲176 | 22.24 ▼1.20 | 716.34 ▲93.52 | 30.77 ▼27.07 |
Media Library /wp-admin/upload.php | 1,503 ▲103 | 4.47 ▲0.20 | 114.87 ▲12.86 | 79.65 ▲35.87 |
Uninstaller [IO: ▲0.56MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance/load/functions.php:164
- > PHP Fatal error
Uncaught Error: Call to undefined function mtnc_get_custom_login_code() in wp-content/plugins/maintenance/load/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance/maintenance.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance/includes/update.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance/includes/functions.php:337
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance/includes/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: bunny fonts, maintenance page, maintenance, coming soon, under construction page...
maintenance/maintenance.php 92% from 13 tests
The main PHP script in "Maintenance" version 4.08 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 214 characters long)
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
There were no executable files found in this plugin17,986 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 2,551 | 720 | 9,882 |
SVG | 2 | 0 | 3 | 3,638 |
PHP | 10 | 395 | 43 | 2,603 |
CSS | 8 | 281 | 24 | 1,862 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 76 | 97.44% |
▷ Anonymous functions | 2 | 2.56% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.34MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wf-flyout/icons/301-logo.png | 6.33KB | 3.09KB | ▼ 51.22% |
wf-flyout/icons/maintenance.png | 24.13KB | 8.04KB | ▼ 66.68% |
images/maintenance-mascot.png | 161.93KB | 44.28KB | ▼ 72.66% |
images/icon-small.png | 15.68KB | 0.76KB | ▼ 95.13% |
images/wp-maintenance-logo.png | 23.53KB | 3.74KB | ▼ 84.09% |