Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼8.42ms] Passed 4 tests
This is a short check of server-side resources used by Smart Maintenance Mode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▼0.51 | 20.40 ▼17.57 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.94 ▼0.71 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.62 ▲1.37 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 82.50 ▼16.75 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 37.80 ▲6.87 |
Maintenance Mode /wp-admin/options-general.php?page=smart-maintenance-mode | 3.30 | 33.25 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_smart_maintenance_mode |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
smm_donate_popup |
theysaidso_admin_options |
db_upgraded |
smm_version |
widget_recent-posts |
disable_smm |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Maintenance Mode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,444 ▼302 | 13.26 ▼1.42 | 0.51 ▼1.34 | 10.59 ▼36.96 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.99 | 110.64 ▲1.71 | 39.41 ▼2.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 40.00 ▼0.28 | 36.72 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.13 ▼0.08 | 621.80 ▲11.88 | 70.96 ▲21.81 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.05 | 98.43 ▼1.64 | 45.37 ▲2.22 |
Maintenance Mode /wp-admin/options-general.php?page=smart-maintenance-mode | 1,908 | 2.05 | 26.00 | 32.97 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+679
Undefined index: disable_smm
- 198 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+769
Trying to access array offset on value of type bool
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+724
Undefined index: smm_countdown_year
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+733
Undefined index: smm_countdown_month
- 31 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+742
Undefined index: smm_countdown_day
- 24 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+751
Undefined index: smm_countdown_hour
- 59 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+760
Undefined index: smm_countdown_minute
- 59 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-maintenance-mode
- > Notice in wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php+769
Undefined index: smm_countdown_second
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smart-maintenance-mode/smart-maintenance-mode.php
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 96% from 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
8 plugin tags: maintenance mode, customize, mode, smart maintenance mode, maintenance...
smart-maintenance-mode/smart-maintenance-mode.php 92% from 13 tests
The principal PHP file in "Smart Maintenance Mode" v. 1.4.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 296 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected727 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 166 | 48 | 710 |
JavaScript | 1 | 11 | 49 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
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 | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
33 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flipper80.png | 1.32KB | 1.51KB | 0.00% |
images/flipper12.png | 0.98KB | 1.61KB | 0.00% |
screenshot-2.png | 107.90KB | 54.78KB | ▼ 49.24% |
images/flipper20.png | 1.13KB | 1.51KB | 0.00% |
images/flipper11.png | 1.36KB | 1.71KB | 0.00% |