Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▲3.50ms] Passed 4 tests
Analyzing server-side resources used by DPD Baltic Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 66.54 ▲27.56 |
Dashboard /wp-admin | 3.93 ▲0.59 | 73.95 ▲11.76 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 49.22 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 86.49 ▼6.04 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 40.72 ▲6.96 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_dpd_barcodes |
wp_dpd_terminals |
wp_dpd_manifests |
New WordPress options |
---|
can_compress_scripts |
wc_shipping_dpd_baltic_db_version |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for DPD Baltic Shipping
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,635 ▼127 | 14.42 ▲0.16 | 0.50 ▼1.14 | 18.44 ▼24.18 |
Dashboard /wp-admin | 2,379 ▲205 | 5.83 ▲0.23 | 95.50 ▲3.45 | 42.94 ▼0.68 |
Posts /wp-admin/edit.php | 2,292 ▲192 | 2.30 ▲0.34 | 42.36 ▲0.13 | 35.27 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,705 ▲179 | 23.55 ▲0.36 | 672.92 ▲70.82 | 72.40 ▲22.20 |
Media Library /wp-admin/upload.php | 1,592 ▲192 | 4.43 ▲0.24 | 101.29 ▼3.53 | 43.71 ▼2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_dpd_barcodes
- wp_dpd_terminals
- wp_dpd_manifests
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- wc_shipping_dpd_baltic_db_version
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-same-day-parcels.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-shipping-dpd-baltic/admin/partials/dpd-admin-collect-display.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-shipping-dpd-baltic/admin/partials/dpd-admin-manifests-display.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-home-delivery.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/woo-shipping-dpd-baltic/admin/partials/dpd-admin-warehouses-display.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-shipping-dpd-baltic/public/woocommerce/checkout/time-frames.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-shipping-dpd-baltic/public/woocommerce/checkout/form-shipping-dpd-terminals.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-same-day-delivery.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-home-delivery-sat.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-parcels.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% 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
4 plugin tags: woocommerce, dpd, parcels, shipping
woo-shipping-dpd-baltic/dpd.php 92% from 13 tests
The main file in "DPD Baltic Shipping" v. 1.2.68 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-shipping-dpd-baltic.php" instead of "dpd.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,523 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 981 | 1,815 | 5,138 |
JavaScript | 11 | 329 | 642 | 1,259 |
PO File | 3 | 468 | 690 | 1,115 |
Sass | 1 | 1 | 0 | 10 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 45.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 17 | 10.56% |
▷ Public methods | 135 | 83.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 16.15% |
Functions | 14 | |
▷ Named functions | 7 | 50.00% |
▷ Anonymous functions | 7 | 50.00% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/m4.png | 5.57KB | 4.23KB | ▼ 24.08% |
public/images/m2.png | 3.18KB | 2.36KB | ▼ 25.77% |
public/images/m3.png | 3.86KB | 3.06KB | ▼ 20.80% |
public/images/m5.png | 6.68KB | 5.10KB | ▼ 23.66% |
public/images/point.png | 3.78KB | 1.90KB | ▼ 49.63% |