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
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.50ms] Passed 4 tests
Analyzing server-side resources used by DHL Shipping Germany for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.84 ▲1.86 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.37 ▼12.82 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.83 ▼4.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.71 ▼13.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.86 ▼2.54 |
Server storage [IO: ▲5.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 212 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
dhl_permalinks_flushed |
Browser metrics Passed 4 tests
An overview of browser requirements for DHL Shipping Germany for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▲0.16 | 1.74 ▼0.18 | 42.78 ▲3.48 |
Dashboard /wp-admin | 2,201 ▲24 | 5.50 ▼0.10 | 80.47 ▼10.94 | 38.71 ▼3.21 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.04 | 34.57 ▼3.47 | 33.73 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.21 ▲0.17 | 615.01 ▼70.59 | 61.29 ▲3.64 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▼0.05 | 95.80 ▼10.17 | 44.19 ▲0.08 |
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 did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- dhl_permalinks_flushed
Smoke tests 50% 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 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/dhl-for-woocommerce/lib/PDFMerger/tcpdf/tools/tcpdf_addfont.php
- > /wp-content/plugins/dhl-for-woocommerce/lib/barcode.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/dhl-for-woocommerce/lib/barcode.php on line 111
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Auth_Interface' not found in wp-content/plugins/dhl-for-woocommerce/includes/REST_API/Paket/Auth.php:23
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/dhl-for-woocommerce/lib/PDFMerger/tcpdf/tcpdi.php:26
- > PHP Warning
imagettfbbox(): Could not find/open font in wp-content/plugins/dhl-for-woocommerce/lib/barcode.php on line 97
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Driver_Interface' not found in wp-content/plugins/dhl-for-woocommerce/includes/REST_API/Drivers/JSON_API_Driver.php:25
- > PHP Fatal error
Uncaught Error: Class 'PR\\DHL\\REST_API\\API_Client' not found in wp-content/plugins/dhl-for-woocommerce/includes/REST_API/Deutsche_Post/Client.php:16
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/dhl-for-woocommerce/lib/barcode.php on line 99
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/dhl-for-woocommerce/lib/barcode.php on line 98
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Driver_Interface' not found in wp-content/plugins/dhl-for-woocommerce/includes/REST_API/Drivers/Logging_Driver.php:20
- > PHP Fatal error
Uncaught Error: Class 'PR\\DHL\\REST_API\\API_Client' not found in wp-content/plugins/dhl-for-woocommerce/includes/REST_API/DHL_eCS_Asia/Client.php:17
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-3.(png|jpg|jpeg|gif)) image required
- Donate link: Invalid url: ""
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
dhl-for-woocommerce/pr-dhl-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "DHL Shipping Germany for WooCommerce" version 3.5.8
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dhl-for-woocommerce.php" instead of "pr-dhl-woocommerce.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "3.0")
Code Analysis 95% from 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 plugin86,011 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 5,941 | 17,823 | 63,836 |
XSD | 6 | 51 | 117 | 14,449 |
PO File | 1 | 1,261 | 2,119 | 3,589 |
JavaScript | 14 | 336 | 116 | 1,303 |
CSS | 6 | 208 | 26 | 1,071 |
XML | 3 | 0 | 9 | 1,011 |
Markdown | 2 | 221 | 0 | 707 |
JSON | 2 | 0 | 0 | 45 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,349)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 103.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 6.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 5 | 5.95% |
▷ Concrete classes | 79 | 94.05% |
▷ Final classes | 0 | 0.00% |
Methods | 1,544 | |
▷ Static methods | 136 | 8.81% |
▷ Public methods | 994 | 64.38% |
▷ Protected methods | 513 | 33.23% |
▷ Private methods | 37 | 2.40% |
Functions | 91 | |
▷ Named functions | 5 | 5.49% |
▷ Anonymous functions | 86 | 94.51% |
Constants | 200 | |
▷ Global constants | 151 | 75.50% |
▷ Class constants | 49 | 24.50% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/fancybox/fancy_shadow_se.png | 0.34KB | 0.48KB | 0.00% |
assets/img/fancybox/fancy_shadow_n.png | 0.10KB | 0.19KB | 0.00% |
assets/img/parcelshop.png | 5.41KB | 2.31KB | ▼ 57.31% |
assets/img/fancybox/fancy_loading.png | 9.96KB | 6.30KB | ▼ 36.67% |
assets/img/fancybox/fancy_shadow_e.png | 0.10KB | 0.18KB | 0.00% |