Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼1.53ms] Passed 4 tests
Server-side resources used by Shipping Manager For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 37.47 ▼7.85 |
Dashboard /wp-admin | 3.90 ▲0.59 | 50.35 ▲2.97 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 45.75 ▲3.56 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 94.74 ▼4.79 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 39.28 ▲3.62 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.02 | 36.83 |
Server storage [IO: ▲3.26MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 193 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
fs_active_plugins |
theysaidso_admin_options |
fs_accounts |
widget_recent-posts |
fs_debug_mode |
Browser metrics Passed 4 tests
Shipping Manager For WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.53 ▼0.20 | 1.74 ▲0.13 | 29.13 ▼18.13 |
Dashboard /wp-admin | 2,228 ▲48 | 5.51 ▼0.13 | 81.19 ▼7.68 | 40.31 ▼3.34 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.97 ▲0.02 | 35.31 ▼0.20 | 34.52 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 18.54 ▼4.50 | 605.02 ▼37.62 | 62.29 ▼1.38 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.19 ▲0.03 | 97.10 ▼1.43 | 44.67 ▲1.72 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,088 | 1.69 | 24.17 | 26.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/shipping-manager-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shipping-manager-for-woocommerce/inc/wcsm-functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipping-manager-for-woocommerce/inc/wcsm-admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: Add a description for screenshot #3 in shipping-manager-for-woocommerce/assets to your readme.txt
shipping-manager-for-woocommerce/shipping-manager-for-wooCommerce.php 85% from 13 tests
Analyzing the main PHP file in "Shipping Manager For WooCommerce" version 1.4.0
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shipping-manager-for-woocommerce.php" instead of "shipping-manager-for-wooCommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected37,287 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,053 | 17,227 | 33,538 |
JavaScript | 6 | 595 | 436 | 2,830 |
CSS | 15 | 115 | 24 | 632 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 1 | 24 | 26 | 73 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 89.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,271 | |
▷ Static methods | 198 | 15.58% |
▷ Public methods | 882 | 69.39% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.27% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/select2.png | 0.51KB | 0.99KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/img/add-icon.png | 0.85KB | 0.80KB | ▼ 5.07% |
assets/img/remove-icon.png | 0.33KB | 0.42KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |