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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.32ms] Passed 4 tests
A check of server-side resources used by Conditional shipping & Advanced Flat rate shipping rates / Flexible shipping for WooCommerce shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.50 ▼5.02 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.11 ▼2.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.01 | 46.82 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.93 ▼7.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 33.93 ▲1.93 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Conditional shipping & Advanced Flat rate shipping rates / Flexible shipping for WooCommerce shipping: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.72 ▲0.15 | 1.65 ▲0.17 | 36.80 ▼0.96 |
Dashboard /wp-admin | 2,201 ▲23 | 5.62 ▼0.07 | 90.05 ▼21.59 | 44.09 ▼0.68 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.00 | 40.46 ▼1.31 | 35.90 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.13 ▲0.09 | 665.65 ▲11.05 | 59.04 ▲3.85 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.28 ▲0.08 | 96.09 ▼1.11 | 41.27 ▼2.67 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/advanced-free-flat-shipping-woocommerce/includes/pisol.class.form.php
- > /wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/help.php
- 53× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/additional-charges/cart-subtotal-charges.php:8
- > PHP Fatal error
Uncaught Error: Class 'pisol_help' not found in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/additional-charges/template/additional-charges.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/class-extended-flat-rate-shipping-woocommerce-add-shipping-method.php:329
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/additional-charges/additional-charges.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/selection_rules/rules/selected_delivery_day.php:8
- > PHP Warning
Use of undefined constant PI_EFRS_SELECTION_RULE_SLUG - assumed 'PI_EFRS_SELECTION_RULE_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/selection_rules/rules/delivery_type.php on line 139
- > PHP Warning
Use of undefined constant PI_EFRS_SELECTION_RULE_SLUG - assumed 'PI_EFRS_SELECTION_RULE_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/custom-group/rules/virtual_category_qty.php on line 204
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/custom-group/partials/listShippingMethod.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/combine-method.php:98
- > PHP Warning
Use of undefined constant PI_EFRS_SELECTION_RULE_SLUG - assumed 'PI_EFRS_SELECTION_RULE_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/custom-group/rules/virtual_category_total.php on line 204
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Donate link: Invalid URI ("piwebsolution.com")
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #6 in advanced-free-flat-shipping-woocommerce/assets to your readme.txt
advanced-free-flat-shipping-woocommerce/extended-flat-rate-shipping-woocommerce.php 85% from 13 tests
The main PHP file in "Conditional shipping & Advanced Flat rate shipping rates / Flexible shipping for WooCommerce shipping" ver. 1.6.4.21 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-free-flat-shipping-woocommerce.php" instead of "extended-flat-rate-shipping-woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 207 characters long)
Code Analysis Passed 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 plugin20,218 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2,055 | 38 | 9,430 |
PHP | 61 | 1,391 | 623 | 5,312 |
SVG | 8 | 7 | 7 | 4,890 |
JavaScript | 6 | 107 | 66 | 586 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 336 | |
▷ Static methods | 60 | 17.86% |
▷ Public methods | 331 | 98.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 1.49% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.55MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/additional-charges/image/cart-subtotal.png | 30.71KB | 9.27KB | ▼ 69.83% |
admin/additional-charges/image/category-quantity.png | 30.07KB | 9.59KB | ▼ 68.10% |
admin/additional-charges/image/shippingclass-quantity.png | 28.04KB | 8.65KB | ▼ 69.16% |
admin/additional-charges/image/category-weight.png | 30.72KB | 9.89KB | ▼ 67.82% |
admin/additional-charges/image/cart-weight.png | 23.80KB | 7.80KB | ▼ 67.21% |