Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.54ms] Passed 4 tests
A check of server-side resources used by WooCommerce Weight Based Shipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.83 ▲5.23 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.35 ▼12.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 39.38 ▼7.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.86 ▼11.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.34 ▲5.42 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 172 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Weight Based Shipping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.27 ▼0.03 | 2.14 ▲0.40 | 44.84 ▲0.66 |
Dashboard /wp-admin | 2,201 ▲30 | 5.60 ▲0.02 | 90.20 ▼8.24 | 39.35 ▼4.02 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.03 | 34.77 ▼4.12 | 35.12 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.40 ▼0.16 | 692.02 ▲58.55 | 70.46 ▲21.23 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.01 | 102.38 ▲2.01 | 46.62 ▲3.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/weight-based-shipping-for-woocommerce/server/tpl/main.php
- 104× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WbsVendors\\Dgm\\SimpleProperties\\SimpleProperties' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/range/src/Range.php:14
- > PHP Fatal error
Uncaught Error: Class 'WbsVendors\\Dgm\\ClassNameAware\\ClassNameAware' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Conditions/Common/AbstractCondition.php:8
- > PHP Fatal error
Uncaught Error: Class 'WbsVendors\\Dgm\\ClassNameAware\\ClassNameAware' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Aggregators/AverageAggregator.php:9
- > PHP Fatal error
Uncaught Error: Interface 'WbsVendors\\Dgm\\Shengine\\Migrations\\Interfaces\\Migrations\\IRuleMigration' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/migrations/5.2.6.php:7
- > PHP Fatal error
Uncaught Error: Class 'WbsVendors\\Dgm\\Shengine\\Attributes\\MapAttribute' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Attributes/ProductVariationAttribute.php:7
- > PHP Fatal error
Uncaught Error: Class 'WbsVendors\\Dgm\\Shengine\\Conditions\\Common\\AbstractCondition' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Conditions/Package/AbstractPackageCondition.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WbsVendors\\Dgm\\Shengine\\Interfaces\\IPackage' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Model/Package.php:12
- > PHP Fatal error
Uncaught Error: Class 'WbsVendors\\Dgm\\Shengine\\Conditions\\Common\\GroupCondition' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Conditions/Common/Logic/OrCondition.php:7
- > PHP Fatal error
Uncaught Error: Interface 'WbsVendors\\Dgm\\Shengine\\Interfaces\\IItemAggregatables' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/Interfaces/IPackage.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WbsVendors\\Dgm\\Shengine\\Interfaces\\IMatcher' not found in wp-content/plugins/weight-based-shipping-for-woocommerce/server/vendor/dangoodman/shengine/src/RuleMatcher.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
weight-based-shipping-for-woocommerce/plugin.php 92% from 13 tests
The main file in "WooCommerce Weight Based Shipping" v. 5.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("weight-based-shipping-for-woocommerce.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,626 lines of code in 170 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 1,471 | 908 | 5,613 |
JavaScript | 2 | 4 | 1 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 4.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 25 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 13 | 9.63% |
▷ Concrete classes | 122 | 90.37% |
▷ Final classes | 0 | 0.00% |
Methods | 480 | |
▷ Static methods | 78 | 16.25% |
▷ Public methods | 388 | 80.83% |
▷ Protected methods | 24 | 5.00% |
▷ Private methods | 68 | 14.17% |
Functions | 33 | |
▷ Named functions | 2 | 6.06% |
▷ Anonymous functions | 31 | 93.94% |
Constants | 29 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 29 | 100.00% |
▷ Public constants | 28 | 96.55% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin