Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼139.84ms] Passed 4 tests
Analyzing server-side resources used by Maintenance Mode with Site Build Status
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 39.64 ▲14.95 |
Dashboard /wp-admin | 3.29 ▲0.24 | 61.61 ▲11.29 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 55.01 ▲7.46 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 99.87 ▼574.00 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 34.39 ▼4.11 |
Server storage [IO: ▲8.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Maintenance Mode with Site Build Status
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,899 ▲303 | 17.68 ▲1.93 | 7.71 ▼1.86 | 50.18 ▼0.44 |
Dashboard /wp-admin | 3,191 ▲260 | 7.97 ▲2.01 | 174.53 ▲27.53 | 117.32 ▲5.72 |
Posts /wp-admin/edit.php | 2,989 ▲250 | 4.35 ▲1.66 | 90.43 ▲18.32 | 105.61 ▲13.60 |
Add New Post /wp-admin/post-new.php | 1,638 ▼45 | 21.15 ▲2.45 | 263.29 ▼111.54 | 141.06 ▲30.88 |
Media Library /wp-admin/upload.php | 1,835 ▲25 | 4.81 ▼0.19 | 120.98 ▼49.90 | 126.47 ▼9.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/maintenance-mode-with-site-build-status/public/partials/template-parts/footer.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/maintenance-mode-with-site-build-status/public/partials/template-parts/header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-with-site-build-status/public/partials/templates/mm-basic.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/maintenance-mode-with-site-build-status/public/partials/template-parts/header.php:3
- > PHP Fatal error
Uncaught Error: Class 'MM_Site_Build_Status_Clear_Cache' not found in wp-content/plugins/maintenance-mode-with-site-build-status/admin/partials/mm-site-build-status-admin-display.php:18
- > 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 83% from 29 tests
readme.txt 81% 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 need to be fixed:
- Requires at least: Version format is invalid
- Contributors: Contributors not specified
- Screenshots: These screenshots need descriptions #1, #2, #3 in maintenance-mode-with-site-build-status/assets to your readme.txt
maintenance-mode-with-site-build-status/mm-site-build-status.php 85% from 13 tests
The main PHP script in "Maintenance Mode with Site Build Status" version 1.0.9 is automatically included on every request by WordPress
It is important to 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-with-site-build-status.php" instead of "mm-site-build-status.php")
- 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
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
Good job! No executable or dangerous file extensions detected2,012 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 24 | 139 | 64 | 787 |
PHP | 23 | 295 | 696 | 702 |
CSS | 2 | 0 | 37 | 255 |
JavaScript | 3 | 35 | 116 | 136 |
PO File | 1 | 26 | 30 | 77 |
Markdown | 1 | 42 | 0 | 55 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 3 | 5.00% |
▷ Public methods | 55 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.33% |
Functions | 12 | |
▷ Named functions | 12 | 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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/default-client-logo.png | 7.08KB | 7.07KB | 0.22% |