Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.81ms] Passed 4 tests
Server-side resources used by MultiParcels Shipping For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.19 ▲1.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.48 ▼6.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.41 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.60 ▼19.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.70 ▲2.37 |
Server storage [IO: ▲1.81MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 140 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_multiparcels_carrier_selections |
wp_multiparcels_terminals |
wp_multiparcels_shipping_shipments |
wp_multiparcels_shippings |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MultiParcels Shipping For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.22 ▼1.22 | 4.32 ▲2.53 | 38.79 ▼5.82 |
Dashboard /wp-admin | 2,221 ▲30 | 4.84 ▼0.03 | 105.61 ▲2.13 | 39.24 ▼4.67 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.97 ▼0.06 | 39.73 ▲6.45 | 36.35 ▲3.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.16 ▲4.70 | 667.92 ▲61.13 | 59.56 ▲11.81 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.24 ▲0.01 | 101.08 ▼0.72 | 42.37 ▼3.16 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/multiparcels-shipping-for-woocommerce/woocommerce/emails/email-selected-pickup-location.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiparcels-shipping-for-woocommerce/woocommerce/admin/amazing-shipping.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/multiparcels-shipping-for-woocommerce/woocommerce/order/order-details-after-customer-v2.php:5
- > PHP Notice
Undefined variable: all_done in wp-content/plugins/multiparcels-shipping-for-woocommerce/woocommerce/order/mass-shipping.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/multiparcels-shipping-for-woocommerce/woocommerce/order/mass-shipping.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/multiparcels-shipping-for-woocommerce/woocommerce/order/order-details-after-customer-v3.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Screenshot #6 (Email preview) image not found
multiparcels-shipping-for-woocommerce/multiparcels-shipping-for-woocommerce.php 92% from 13 tests
The main file in "MultiParcels Shipping For WooCommerce" v. 1.16.2 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:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.0.0")
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
Good job! No executable or dangerous file extensions detected10,651 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 7,524 | 1,133 | 9,172 |
PO File | 1 | 393 | 506 | 900 |
JavaScript | 3 | 89 | 20 | 376 |
CSS | 2 | 17 | 0 | 95 |
SVG | 1 | 0 | 1 | 93 |
Markdown | 1 | 6 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 306.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 6 | 8.45% |
▷ Concrete classes | 65 | 91.55% |
▷ Final classes | 0 | 0.00% |
Methods | 354 | |
▷ Static methods | 27 | 7.63% |
▷ Public methods | 308 | 87.01% |
▷ Protected methods | 1 | 0.28% |
▷ Private methods | 45 | 12.71% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 125 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 125 | 100.00% |
▷ Public constants | 125 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
48 PNG files occupy 1.18MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/carriers/db_schenker.png | 9.98KB | 2.94KB | ▼ 70.54% |
public/images/boxes/extra-small.png | 11.51KB | 3.76KB | ▼ 67.34% |
public/images/carriers/siuntos_autobusais.png | 19.73KB | 4.50KB | ▼ 77.19% |
public/images/carriers/post_de.png | 5.32KB | 3.14KB | ▼ 41.05% |
public/images/shipping_methods/hands_to_bus_station.png | 6.96KB | 3.83KB | ▼ 45.04% |