Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.42ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Maintenance Mode (Free)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.59 ▼5.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.30 ▼10.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.83 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.42 ▼20.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▲1.01 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Maintenance Mode (Free)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.59 ▼0.71 | 4.07 ▲2.20 | 38.56 ▼6.63 |
Dashboard /wp-admin | 2,209 ▲21 | 5.02 ▲0.12 | 106.48 ▼11.06 | 36.30 ▼7.11 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.01 | 38.89 ▲0.74 | 35.41 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.58 ▼5.47 | 683.33 ▲26.18 | 55.83 ▼7.21 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▲0.05 | 96.72 ▼5.12 | 40.30 ▼1.98 |
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
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- woo_maint_display_scope
- widget_theysaidso_widget
- widget_recent-posts
- woo_maint_display_type
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
woocommerce-maintenance-mode/woocommerce-maintenance-mode.php 92% from 13 tests
The main PHP script in "WooCommerce Maintenance Mode (Free)" version 2.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 479 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,062 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 17 | 21 | 2,402 |
PHP | 9 | 285 | 416 | 777 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 8 | 41 | 17 | 184 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.26% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.40MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/date_deactivation.png | 47.97KB | 15.84KB | ▼ 66.97% |
assets/img/popup.png | 65.82KB | 22.42KB | ▼ 65.94% |
assets/img/use_shortcodes.png | 120.47KB | 37.24KB | ▼ 69.09% |
assets/img/cookies.png | 27.76KB | 9.82KB | ▼ 64.62% |
assets/img/shortcodes.png | 78.73KB | 26.20KB | ▼ 66.73% |