Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.42ms] Passed 4 tests
A check of server-side resources used by Schedule Maintenance Mode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.89 ▼1.66 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.78 ▼12.36 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 46.41 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.32 ▼5.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.26 ▲5.88 |
Schedule Maintenance Mode /wp-admin/options-general.php?page=smmgk-schedule-maintenance-mode | 3.34 | 34.48 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
smmgk_schedule_maintenance |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Schedule Maintenance Mode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 15.07 ▲0.70 | 1.77 ▼0.04 | 38.77 ▼5.68 |
Dashboard /wp-admin | 2,362 ▲174 | 6.68 ▲0.84 | 132.56 ▲11.48 | 39.22 ▼5.37 |
Posts /wp-admin/edit.php | 2,270 ▲181 | 3.77 ▲1.75 | 69.92 ▲35.66 | 33.83 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,690 ▲170 | 25.02 ▲2.07 | 607.60 ▼68.15 | 35.87 ▼36.37 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.44 ▲0.19 | 94.55 ▼7.72 | 40.91 ▼5.12 |
Schedule Maintenance Mode /wp-admin/options-general.php?page=smmgk-schedule-maintenance-mode | 1,284 | 3.57 | 51.21 | 25.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 7 options
- smmgk_schedule_maintenance
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
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 items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function smmgk_get_options() in wp-content/plugins/schedule-maintenance-mode/theme/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function smmgk_get_options() in wp-content/plugins/schedule-maintenance-mode/admin/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #3, #4 in schedule-maintenance-mode/assets to your readme.txt
schedule-maintenance-mode/schedule-maintenance-mode.php Passed 13 tests
The entry point to "Schedule Maintenance Mode" version 1.9 is a PHP file that has certain tags in its header comment area
75 characters long description:
Enable Maintenance page for any specific interval time or specified by you.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,230 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 652 | 894 | 1,284 |
PHP | 4 | 53 | 19 | 506 |
CSS | 3 | 106 | 22 | 440 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default_maintenance_logo.png | 152.82KB | 35.95KB | ▼ 76.48% |