Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.68ms] Passed 4 tests
A check of server-side resources used by WooCommerce Maintenance Mode | WooCommerce Redirects | WooCommerce Banner Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.18 ▼2.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.43 ▼3.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.84 ▼3.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.51 ▼8.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.77 ▼3.47 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Maintenance Mode | WooCommerce Redirects | WooCommerce Banner Notice
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.36 ▲0.16 | 1.67 ▼0.15 | 40.36 ▼2.43 |
Dashboard /wp-admin | 2,200 ▼6 | 5.86 ▼0.02 | 105.72 ▼3.28 | 40.69 ▼0.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.03 | 39.51 ▼1.19 | 34.20 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,536 ▲183 | 23.32 ▲5.03 | 661.01 ▼76.79 | 72.81 ▲24.89 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▼0.03 | 96.16 ▼13.24 | 43.23 ▼4.54 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in ultimate-maintenance-mode-for-woocommerce/assets to your readme.txt
ultimate-maintenance-mode-for-woocommerce/gpls-woo-shop-maintenance.php 92% from 13 tests
The main PHP script in "WooCommerce Maintenance Mode | WooCommerce Redirects | WooCommerce Banner Notice" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-maintenance-mode-for-woocommerce.php" instead of "gpls-woo-shop-maintenance.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,990 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 363 | 839 | 1,977 |
JavaScript | 7 | 0 | 16 | 8 |
CSS | 5 | 0 | 12 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 39.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 11 | 10.09% |
▷ Public methods | 98 | 89.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 10.09% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |
core/assets/dist/images/logo-icon-lg.png | 3.56KB | 2.72KB | ▼ 23.62% |
core/assets/dist/images/logo-icon-md.png | 0.91KB | 0.96KB | 0.00% |
core/assets/dist/images/full-logo.png | 6.58KB | 3.86KB | ▼ 41.28% |