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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.27ms] Passed 4 tests
An overview of server-side resources used by Hide Shipping Method For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.69 ▼5.33 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.86 ▼12.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.15 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.28 ▼11.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.53 ▲0.89 |
Server storage [IO: ▲8.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 268 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_active_plugins |
whsm_version |
theysaidso_admin_options |
fs_accounts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Hide Shipping Method For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.12 | 1.72 ▼0.67 | 42.58 ▼4.48 |
Dashboard /wp-admin | 2,203 ▲18 | 5.82 ▼0.08 | 99.89 ▼2.82 | 37.58 ▼3.21 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 39.10 ▲2.78 | 35.40 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.17 ▲0.16 | 653.00 ▼28.36 | 56.71 ▲5.09 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▲0.01 | 93.98 ▼3.27 | 43.63 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- db_upgraded
- widget_recent-posts
- whsm_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
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 issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #5, #6 in hide-shipping-method-for-woocommerce/assets to your readme.txt
hide-shipping-method-for-woocommerce/woo-hide-shipping-methods.php 77% from 13 tests
"Hide Shipping Method For WooCommerce" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("hide-shipping-method-for-woocommerce.php" instead of "woo-hide-shipping-methods.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.1")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin45,533 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 8,654 | 18,603 | 38,754 |
PO File | 4 | 1,652 | 2,787 | 4,452 |
JavaScript | 7 | 233 | 251 | 1,486 |
CSS | 23 | 43 | 59 | 795 |
XML | 1 | 0 | 0 | 38 |
SVG | 3 | 0 | 0 | 8 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 91.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,365 | |
▷ Static methods | 212 | 15.53% |
▷ Public methods | 967 | 70.84% |
▷ Protected methods | 19 | 1.39% |
▷ Private methods | 379 | 27.77% |
Functions | 112 | |
▷ Named functions | 111 | 99.11% |
▷ Anonymous functions | 1 | 0.89% |
Constants | 159 | |
▷ Global constants | 109 | 68.55% |
▷ Class constants | 50 | 31.45% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 3.09MB with 1.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/getting-started/option-1-2.png | 55.13KB | 16.32KB | ▼ 70.40% |
admin/images/pro-features-img/feature-box-nine-img.png | 120.95KB | 42.93KB | ▼ 64.51% |
admin/images/pro-features-img/feature-box-seven-img.png | 170.58KB | 55.09KB | ▼ 67.70% |
admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/images/getting-started/option-4-3.png | 50.48KB | 15.45KB | ▼ 69.39% |