Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▼8.71ms] Passed 4 tests
This is a short check of server-side resources used by Zedna Maintenance Mode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 31.37 ▼11.45 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.65 ▼7.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.97 ▼6.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 99.06 ▼9.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.95 ▲0.23 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options |
---|
zednamm_maintenance_role |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
zednamm_message |
widget_recent-comments |
widget_theysaidso_widget |
zednamm_redirect_to_login |
Browser metrics Passed 4 tests
Checking browser requirements for Zedna Maintenance Mode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.41 ▲0.03 | 2.05 ▲0.20 | 39.39 ▼5.02 |
Dashboard /wp-admin | 2,208 ▲31 | 5.59 ▼0.03 | 81.61 ▼10.32 | 40.11 ▼2.29 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.04 ▲0.05 | 39.22 ▲3.04 | 35.68 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,567 ▲36 | 18.29 ▼5.11 | 614.59 ▼77.90 | 47.24 ▼8.83 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.36 ▲0.17 | 98.27 ▼11.11 | 45.58 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- theysaidso_admin_options
- zednamm_maintenance_role
- zednamm_message
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- zednamm_redirect_to_login
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/zedna-maintenance-mode/zedna-maintenance-mode.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: content, redirect, maintenance, capabilities, roles...
zedna-maintenance-mode/zedna-maintenance-mode.php Passed 13 tests
The primary PHP file in "Zedna Maintenance Mode" version 1.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Set you website under maintenance to lock content while development.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin242 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 29 | 173 |
PO File | 1 | 21 | 21 | 69 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 7 | |
▷ Named functions | 7 | 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 are no PNG files in this plugin