Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.88ms] Passed 4 tests
A check of server-side resources used by Maintenance Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.80 ▼2.77 |
Dashboard /wp-admin | 3.51 ▲0.20 | 44.85 ▼5.25 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 45.72 ▼6.13 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 84.30 ▼9.38 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.15 ▲1.95 |
Maintenance Redirect /wp-admin/options-general.php?page=JF3_Maint_Redirect | 3.40 | 32.42 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_wpjf3_mr_access_keys |
wp_wpjf3_mr_unrestricted_ips |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
wpjf3_mr |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
wpjf3_maintenance_redirect_version |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maintenance Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.33 ▲0.33 | 1.81 ▼0.26 | 43.93 ▼1.80 |
Dashboard /wp-admin | 2,196 ▲19 | 5.53 ▼0.11 | 81.89 ▼18.18 | 36.27 ▼8.81 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.02 ▲0.03 | 35.58 ▼8.15 | 30.34 ▼8.90 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.30 ▼4.56 | 624.33 ▼13.35 | 78.51 ▲29.86 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.22 ▼0.07 | 100.47 ▼3.17 | 44.29 ▼0.43 |
Maintenance Redirect /wp-admin/options-general.php?page=JF3_Maint_Redirect | 1,237 | 1.69 | 26.52 | 41.32 |
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
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_wpjf3_mr_access_keys
- wp_wpjf3_mr_unrestricted_ips
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- wpjf3_maintenance_redirect_version
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- wpjf3_mr
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jf3-maintenance-mode/uninstall.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/jf3-maintenance-mode/wpjf3_maintenance_redirect.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
jf3-maintenance-mode/wpjf3_maintenance_redirect.php 92% from 13 tests
Analyzing the main PHP file in "Maintenance Redirect" version 2.0
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jf3-maintenance-mode.php" instead of "wpjf3_maintenance_redirect.php")
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
Good job! No executable or dangerous file extensions detected1,085 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 185 | 168 | 1,085 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 109.00 |
▷ Minimum class complexity | 109.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin