Benchmarks
Plugin footprint 65% 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.56MB] [CPU: ▲1.27ms] 75% from 4 tests
This is a short check of server-side resources used by Shipping Method Display Style for WooCommerce
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,626.35ms on /wp-admin/admin.php?page=woo-shipping-display-mode)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 36.40 ▼0.98 |
Dashboard /wp-admin | 3.93 ▲0.62 | 49.10 ▼5.81 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 50.82 ▲5.35 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 108.67 ▲13.29 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 37.38 ▲6.50 |
Shipping Method Display Style for WooCommerce /wp-admin/admin.php?page=woo-shipping-display-mode | 3.93 | 1,626.35 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.01 | 38.29 |
Server storage [IO: ▲3.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 214 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
fs_accounts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Shipping Method Display Style for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.43 ▼1.30 | 8.48 ▲6.76 | 29.63 ▼15.64 |
Dashboard /wp-admin | 2,212 ▲31 | 5.61 ▼0.09 | 91.60 ▼23.17 | 47.93 ▲4.84 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.99 ▼0.02 | 41.81 ▲6.84 | 40.64 ▲4.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.55 ▲0.50 | 582.86 ▼71.59 | 52.94 ▼0.55 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.17 ▼0.04 | 96.87 ▼7.70 | 46.19 ▼0.41 |
Shipping Method Display Style for WooCommerce /wp-admin/admin.php?page=woo-shipping-display-mode | 982 | 1.65 | 28.97 | 53.55 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,069 | 1.69 | 23.92 | 27.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/woo-shipping-display-mode/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- fs_active_plugins
- can_compress_scripts
- fs_accounts
- fs_debug_mode
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("-")
- Screenshots: Please add descriptions for these screenshots #2, #4 in woo-shipping-display-mode/assets to your readme.txt
woo-shipping-display-mode/woo-shipping-display-mode.php 92% from 13 tests
The main PHP script in "Shipping Method Display Style for WooCommerce" version 3.7.8 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.5")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin35,113 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 8,245 | 17,968 | 34,030 |
PO File | 5 | 195 | 258 | 763 |
JavaScript | 5 | 36 | 86 | 211 |
CSS | 15 | 5 | 4 | 109 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 75.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,319 | |
▷ Static methods | 201 | 15.24% |
▷ Public methods | 915 | 69.37% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 387 | 29.34% |
Functions | 107 | |
▷ Named functions | 106 | 99.07% |
▷ Anonymous functions | 1 | 0.93% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/help.png | 0.30KB | 0.32KB | 0.00% |
admin/images/rate-us.png | 8.46KB | 8.06KB | ▼ 4.69% |
admin/images/icon-128x128.png | 5.99KB | 3.11KB | ▼ 48.10% |
freemius/assets/img/woo-shipping-display-mode.png | 8.32KB | 4.41KB | ▼ 47.08% |
admin/images/woo-shipping-display-mode.png | 66.85KB | 3.86KB | ▼ 94.22% |