Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼320.97ms] Passed 4 tests
A check of server-side resources used by Admin Hot Maintenance Mode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.39 | 61.91 ▼75.02 |
Dashboard /wp-admin | 3.41 ▲0.01 | 36.51 ▼2.50 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 42.40 ▼0.98 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.08 | 99.15 ▼1,205.36 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 27.19 ▲0.56 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admin Hot Maintenance Mode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲27 | 15.78 ▲0.55 | 5.52 ▼0.59 | 2.45 ▼0.27 |
Dashboard /wp-admin | 2,878 ▲23 | 6.11 ▼0.07 | 119.73 ▼27.51 | 161.64 ▼10.57 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.24 ▲0.00 | 62.22 ▼1.61 | 139.66 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,687 ▼30 | 19.87 ▼1.31 | 430.36 ▼7.70 | 177.96 ▲16.67 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.49 ▼0.02 | 140.44 ▲1.26 | 229.59 ▲23.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-hot-maintenance-mode/admin-hot-maintenance-mode.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: maintenance mode, maintenance
admin-hot-maintenance-mode/admin-hot-maintenance-mode.php Passed 13 tests
Analyzing the main PHP file in "Admin Hot Maintenance Mode" version 1.0.0
72 characters long description:
Maintenance Mode for Non-administrator login users (editor, writer etc.)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected32 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 8 | 19 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin