Benchmarks
Plugin footprint 65% from 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: ▼1.24MB] [CPU: ▼43.20ms] Passed 4 tests
Server-side resources used by Maintenance Mode Redirect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 13.63 ▼27.68 |
Dashboard /wp-admin | 2.77 ▼0.54 | 16.03 ▼33.88 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 18.09 ▼29.43 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 17.70 ▼81.81 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 14.94 ▼20.49 |
Maintenance Mode Redirect /wp-admin/options-general.php?page=maintenance_mode_options | 2.77 | 16.96 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Maintenance Mode Redirect: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.50 ▼0.87 | 1.51 ▼0.17 | 40.10 ▼0.17 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.99 | 94.68 ▼7.19 | 38.62 ▼6.66 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.01 | 40.80 ▼4.05 | 35.92 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,548 ▲26 | 18.35 ▼4.74 | 586.51 ▼79.94 | 53.52 ▲2.75 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.02 | 93.15 ▼5.66 | 40.83 ▼6.31 |
Maintenance Mode Redirect /wp-admin/options-general.php?page=maintenance_mode_options | 923 | 2.03 | 24.97 | 24.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/maintenance-mode-redirect/maintenance-mode-redirect.php+31
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=maintenance_mode_options
- > Notice in wp-content/plugins/maintenance-mode-redirect/maintenance-mode-redirect.php+113
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-mode-redirect/maintenance-mode-redirect.php:142
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: under construction, admin, maintenance, technical break, redirect...
maintenance-mode-redirect/maintenance-mode-redirect.php Passed 13 tests
This is the main PHP file of "Maintenance Mode Redirect" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Redirect and display a maintenance message to visitors and logs out non-admin users during maintenance periods.
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
No dangerous file extensions were detected104 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 24 | 104 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin