94% admin-hot-maintenance-mode

Code Review | Admin Hot Maintenance Mode

WordPress plugin Admin Hot Maintenance Mode scored 94% from 54 tests.

About plugin

  • Plugin page: admin-hot-mainten...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Apr 27, 2018
  • Latest release: Apr 27, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: matsuoshi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,058 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.3961.91 ▼75.02
Dashboard /wp-admin3.41 ▲0.0136.51 ▼2.50
Posts /wp-admin/edit.php3.65 ▲0.0142.40 ▼0.98
Add New Post /wp-admin/post-new.php6.88 ▼0.0899.15 ▼1,205.36
Media Library /wp-admin/upload.php3.30 ▲0.0027.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.78 ▲0.555.52 ▼0.592.45 ▼0.27
Dashboard /wp-admin2,878 ▲236.11 ▼0.07119.73 ▼27.51161.64 ▼10.57
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0062.22 ▼1.61139.66 ▼0.50
Add New Post /wp-admin/post-new.php1,687 ▼3019.87 ▼1.31430.36 ▼7.70177.96 ▲16.67
Media Library /wp-admin/upload.php1,698 ▲35.49 ▼0.02140.44 ▲1.26229.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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