Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼333.16ms] Passed 4 tests
Analyzing 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.54 ▲0.02 | 60.98 ▲1.08 |
Dashboard /wp-admin | 3.42 ▲0.01 | 35.73 ▼14.74 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 41.28 ▼0.21 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 114.13 ▼1,318.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 29.83 ▲3.36 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 101 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Conditional shipping & Advanced Flat rate shipping rates / Flexible shipping for WooCommerce shipping
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲51 | 15.59 ▼0.32 | 5.59 ▼0.04 | 2.18 ▼0.12 |
Dashboard /wp-admin | 2,902 ▲41 | 6.16 ▼0.00 | 118.64 ▼17.76 | 152.52 ▼9.50 |
Posts /wp-admin/edit.php | 2,701 ▲7 | 3.24 ▼0.01 | 63.92 ▼3.94 | 143.51 ▼9.50 |
Add New Post /wp-admin/post-new.php | 1,667 ▼23 | 16.20 ▼4.94 | 383.32 ▼60.10 | 153.62 ▲0.66 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.49 ▲0.03 | 141.90 ▲5.90 | 186.28 ▲3.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-free-flat-shipping-woocommerce/includes/pisol.class.form.php
- > /wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/help.php
- 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'pisol_help' not found in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/additional-charges/template/weight-based-charges.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/partials/listShippingMethod.php:2
- > 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 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_product.php on line 129
- > 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/delivery_type.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/selection_rules/rules/category_product.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/custom-group/rules/virtual_category_qty.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 Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-free-flat-shipping-woocommerce/admin/additional-charges/pro-charges.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #6 in advanced-free-flat-shipping-woocommerce/assets to your readme.txt
- Donate link: Invalid URI ("")
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
advanced-free-flat-shipping-woocommerce/extended-flat-rate-shipping-woocommerce.php 85% from 13 tests
"Conditional shipping & Advanced Flat rate shipping rates / Flexible shipping for WooCommerce shipping" version 1.6.3.41's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal 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: The description should be shorter than 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin19,667 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2,055 | 38 | 9,430 |
SVG | 8 | 7 | 7 | 4,890 |
PHP | 57 | 1,201 | 597 | 4,764 |
JavaScript | 6 | 106 | 66 | 583 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 307 | |
▷ Static methods | 58 | 18.89% |
▷ Public methods | 302 | 98.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 1.63% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.55MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/additional-charges/image/cart-weight.png | 23.80KB | 7.80KB | ▼ 67.21% |
admin/additional-charges/image/product-quantity.png | 28.36KB | 9.47KB | ▼ 66.60% |
admin/additional-charges/image/cart-quantity.png | 30.11KB | 9.79KB | ▼ 67.48% |
includes/background.png | 74.27KB | 26.29KB | ▼ 64.60% |
admin/additional-charges/image/product-subtotal.png | 25.63KB | 8.61KB | ▼ 66.42% |