Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼142.50ms] Passed 4 tests
This is a short check of server-side resources used by Multisite Maintenance Mode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 37.98 ▲2.45 |
Dashboard /wp-admin | 3.08 ▲0.03 | 47.17 ▼0.14 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 48.22 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 93.74 ▼572.25 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.85 ▲2.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Multisite Maintenance Mode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.85 ▲0.29 | 8.79 ▲2.11 | 47.64 ▼11.56 |
Dashboard /wp-admin | 2,973 ▲39 | 6.09 ▲0.05 | 142.13 ▼4.46 | 112.46 ▲3.80 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.81 ▼0.00 | 72.66 ▼0.31 | 91.35 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.78 ▲0.93 | 388.41 ▲6.62 | 113.82 ▼1.14 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.03 | 153.86 ▼19.15 | 122.95 ▼3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/multisite-maintenance-mode/views/display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multisite-maintenance-mode/multisite-maintenance-mode.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multisite-maintenance-mode/views/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (The MMM settings page.) image missing
multisite-maintenance-mode/multisite-maintenance-mode.php Passed 13 tests
"Multisite Maintenance Mode" version 0.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
Disables logins for all WordPress users except network administrators
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin235 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 59 | 90 | 126 |
CoffeeScript | 1 | 5 | 0 | 56 |
PO File | 1 | 7 | 13 | 27 |
JSON | 1 | 0 | 0 | 17 |
Ruby | 1 | 6 | 9 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 55.81KB | 18.50KB | ▼ 66.86% |