Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.93ms] Passed 4 tests
Server-side resources used by Per Product Shipping for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 49.97 ▲11.15 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.14 ▼3.50 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.23 ▼11.07 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 82.12 ▼13.41 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.08 ▼3.73 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Per Product Shipping for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.17 | 1.77 ▲0.25 | 41.06 ▲1.50 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.05 | 80.36 ▼21.82 | 36.88 ▼6.79 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.02 | 33.44 ▼4.64 | 34.43 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.16 ▲0.16 | 628.18 ▼66.36 | 49.35 ▼3.13 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.10 | 95.15 ▼1.64 | 43.34 ▼3.71 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\WPRPP_Abstract_Endpoint' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/class-wprpp-sort-rules-endpoint.php:5
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\WPRPP_Abstract_Endpoint' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/class-wprpp-create-rule-endpoint.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/per-product-shipping-for-wc/core/class-wprpp-per-product-shipping-method.php:6
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\WPRPP_Abstract_Endpoint' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/class-wprpp-search-products-endpoint.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function self_admin_url() in wp-content/plugins/per-product-shipping-for-wc/app/placeholder.php:2
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\Errors\\WPRPP_Error' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/errors/class-wprpp-generic-error.php:7
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\WPRPP_Abstract_Endpoint' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/class-wprpp-update-rule-endpoint.php:4
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\WPRPP_Abstract_Endpoint' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/class-wprpp-delete-rule-endpoint.php:5
- > PHP Fatal error
Uncaught Error: Class 'PerProduct\\Api\\Endpoints\\WPRPP_Abstract_Endpoint' not found in wp-content/plugins/per-product-shipping-for-wc/api/endpoints/class-wprpp-load-rules-endpoint.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: woocommerce extension, per product shipping, shipping method, woocommerce, admin...
per-product-shipping-for-wc/per-product-shipping-for-wc.php 85% from 13 tests
Analyzing the main PHP file in "Per Product Shipping for WooCommerce" version 1.0.1
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "3.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin656 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 232 | 162 | 651 |
JavaScript | 1 | 0 | 17 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 7 | 12.28% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 3 | 5.26% |
▷ Private methods | 3 | 5.26% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected