Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.14MB] [CPU: ▼45.80ms] Passed 4 tests
Server-side resources used by Maintenance Mode by IP Address
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 15.26 ▼24.42 |
Dashboard /wp-admin | 2.88 ▼0.47 | 17.45 ▼50.96 |
Posts /wp-admin/edit.php | 2.88 ▼0.48 | 17.35 ▼27.67 |
Add New Post /wp-admin/post-new.php | 2.88 ▼3.01 | 16.05 ▼80.13 |
Media Library /wp-admin/upload.php | 2.88 ▼0.35 | 16.25 ▼19.14 |
Server storage [IO: ▲4.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
rc_mmip_settings |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Maintenance Mode by IP Address: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.34 ▼0.02 | 1.65 ▼0.05 | 44.28 ▼0.49 |
Dashboard /wp-admin | 2,216 ▲39 | 5.64 ▼0.03 | 85.10 ▼14.43 | 37.14 ▼6.67 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 1.99 ▲0.02 | 32.81 ▼5.11 | 34.16 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 22.95 ▼0.13 | 680.86 ▼4.14 | 50.45 ▼5.27 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.20 ▲0.01 | 97.92 ▼2.24 | 39.98 ▼6.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/maintenance-mode-by-ip-address/rc_maintenance_mode.php+511
Undefined index: rc_mmip_disablemodephrase
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: proxy1 in wp-content/plugins/maintenance-mode-by-ip-address/admin/admin_page.php on line 49
- > PHP Notice
Undefined variable: urlGeneral in wp-content/plugins/maintenance-mode-by-ip-address/admin/admin_page.php on line 76
- > PHP Notice
Undefined variable: urlSocial in wp-content/plugins/maintenance-mode-by-ip-address/admin/admin_page.php on line 78
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-by-ip-address/admin/settings/design.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-by-ip-address/admin/settings/general.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-by-ip-address/admin/settings/social.php:2
- > PHP Notice
Undefined variable: currentIP in wp-content/plugins/maintenance-mode-by-ip-address/admin/admin_page.php on line 66
- > PHP Notice
Undefined variable: urlDesign in wp-content/plugins/maintenance-mode-by-ip-address/admin/admin_page.php on line 77
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-by-ip-address/admin/settings/mailchimp.php:3
- > PHP Notice
Undefined index: tab in wp-content/plugins/maintenance-mode-by-ip-address/admin/admin_page.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
maintenance-mode-by-ip-address/rc_maintenance_mode.php 85% from 13 tests
The main PHP script in "Maintenance Mode by IP Address" version 3.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("maintenance-mode-by-ip-address.php" instead of "rc_maintenance_mode.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,486 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 423 | 182 | 2,645 |
PHP | 7 | 490 | 59 | 1,368 |
CSS | 4 | 127 | 50 | 1,245 |
SVG | 1 | 0 | 0 | 228 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 15 | |
▷ Named functions | 15 | 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 were not PNG files found in your plugin