Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼8.47ms] Passed 4 tests
This is a short check of server-side resources used by Conditionnal Maintenance Mode for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.34 ▼1.43 |
Dashboard /wp-admin | 3.09 ▼0.22 | 26.97 ▼24.20 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.20 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.35 ▼9.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.49 ▲4.56 |
Maintenance Mode /wp-admin/options-general.php?page=maintenance-mode | 3.24 | 50.03 |
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: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Conditionnal Maintenance Mode for WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.34 ▼0.22 | 1.65 ▼0.07 | 44.91 ▲6.23 |
Dashboard /wp-admin | 2,213 ▲33 | 5.63 ▼0.03 | 94.02 ▲2.67 | 43.64 ▼2.68 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.03 ▲0.05 | 35.78 ▼3.15 | 33.21 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,534 ▲5 | 22.91 ▼0.23 | 669.54 ▲9.22 | 55.69 ▲0.75 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.16 ▼0.05 | 111.23 ▲4.64 | 46.88 ▲0.12 |
Maintenance Mode /wp-admin/options-general.php?page=maintenance-mode | 885 | 2.17 | 25.96 | 27.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/maintenance-mode-based-on-user-roles/Maintenance_mode.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Maintenance Mode settings page), #2 (Maintenance message displayed to users without the necessary roles)
maintenance-mode-based-on-user-roles/Maintenance_mode.php 92% from 13 tests
The main file in "Conditionnal Maintenance Mode for WordPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("maintenance-mode-based-on-user-roles.php" instead of "Maintenance_mode.php")
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
Everything looks great! No dangerous files found in this plugin163 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 31 | 133 |
PO File | 1 | 2 | 2 | 22 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/evolurise_logo.png | 10.90KB | 6.02KB | ▼ 44.77% |