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: ▲0.23MB] [CPU: ▼0.40ms] Passed 4 tests
A check of server-side resources used by Maintenance Mode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 38.67 ▼5.90 |
Dashboard /wp-admin | 3.54 ▲0.23 | 48.47 ▼0.18 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 49.83 ▲4.75 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 95.37 ▼0.29 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.72 ▲5.49 |
Maintenance Mode /wp-admin/options-general.php?page=hkdev_Maintenance_Mode | 3.49 | 41.46 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_hkdev_mm_access_keys |
wp_hkdev_mm_unrestricted_ips |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
hkdev_mm |
hkdev_maintenance_mode_version |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maintenance Mode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲49 | 14.32 ▼0.03 | 1.85 ▼0.03 | 41.55 ▼3.07 |
Dashboard /wp-admin | 2,219 ▲42 | 5.62 ▲0.02 | 92.10 ▼8.02 | 43.48 ▲1.12 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 1.95 ▼0.06 | 39.90 ▼2.13 | 33.42 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.36 ▲0.41 | 705.14 ▲39.68 | 58.73 ▼1.15 |
Media Library /wp-admin/upload.php | 1,421 ▲27 | 4.19 ▼0.08 | 97.79 ▲0.83 | 41.56 ▼1.49 |
Maintenance Mode /wp-admin/options-general.php?page=hkdev_Maintenance_Mode | 1,988 | 9.05 | 223.86 | 76.61 |
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
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_hkdev_mm_access_keys
- wp_hkdev_mm_unrestricted_ips
- Zombie WordPress options were found after uninstall: 7 options
- hkdev_maintenance_mode_version
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hkdev-maintenance-mode/hkdev_maintenance_mode.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=hkdev_Maintenance_Mode
- > Network (severe)
wp-admin/[[WP_STYLE]] - Failed to load resource: the server responded with a status of 404 (Not 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
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in hkdev-maintenance-mode/assets to your readme.txt
hkdev-maintenance-mode/hkdev_maintenance_mode.php 92% from 13 tests
The main PHP script in "Maintenance Mode" version 2.5.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("hkdev-maintenance-mode.php" instead of "hkdev_maintenance_mode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,604 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 130 | 177 | 1,284 |
PO File | 1 | 100 | 113 | 318 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin