Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.64ms] Passed 4 tests
Analyzing server-side resources used by DHL for WooCommerce eCS Asia
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.21 ▼2.10 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.41 ▼4.73 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.32 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.96 ▼18.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.08 ▲2.98 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
dhl_permalinks_flushed |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for DHL for WooCommerce eCS Asia
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.38 ▼0.07 | 1.70 ▼0.31 | 38.22 ▼8.31 |
Dashboard /wp-admin | 2,204 ▲24 | 5.59 ▼0.08 | 90.81 ▼0.05 | 39.69 ▼3.06 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.00 | 40.83 ▲3.75 | 38.39 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 21.55 ▼1.60 | 688.45 ▲7.65 | 60.90 ▲9.37 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.03 | 112.25 ▲13.49 | 47.32 ▲1.24 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- dhl_permalinks_flushed
- widget_theysaidso_widget
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/makefont.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/barcode.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdf/tutorial/tuto4.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdi/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Driver_Interface' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/includes/REST_API/Drivers/WP_API_Driver.php:23
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdi/fpdi2tcpdf_bridge.php:29
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/barcode.php on line 111
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdi/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Driver_Interface' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/includes/REST_API/Drivers/Logging_Driver.php:20
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Driver_Interface' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/includes/REST_API/Drivers/JSON_API_Driver.php:25
- > PHP Fatal error
Uncaught Error: Interface 'PR\\DHL\\REST_API\\Interfaces\\API_Auth_Interface' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/includes/REST_API/DHL_eCS_Asia/Auth.php:27
- > PHP Fatal error
Uncaught Error: Class 'PR\\DHL\\REST_API\\API_Client' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/includes/REST_API/DHL_eCS_Asia/Client.php:17
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/dhl-ecommerce-asia-for-woocommerce/lib/PDFMerger/fpdi/fpdi_bridge.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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:
- Contributors: Contributors not specified
dhl-ecommerce-asia-for-woocommerce/pr-dhl-woocommerce.php 85% from 13 tests
The primary PHP file in "DHL for WooCommerce eCS Asia" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dhl-ecommerce-asia-for-woocommerce.php" instead of "pr-dhl-woocommerce.php")
- 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 review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin18,202 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 2,181 | 3,538 | 10,447 |
HTML | 59 | 72 | 0 | 3,242 |
PO File | 1 | 1,093 | 1,804 | 3,142 |
CSS | 6 | 131 | 26 | 691 |
JavaScript | 6 | 166 | 55 | 629 |
Markdown | 1 | 19 | 0 | 38 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 339.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 3 | 6.52% |
▷ Concrete classes | 43 | 93.48% |
▷ Final classes | 0 | 0.00% |
Methods | 513 | |
▷ Static methods | 11 | 2.14% |
▷ Public methods | 370 | 72.12% |
▷ Protected methods | 133 | 25.93% |
▷ Private methods | 10 | 1.95% |
Functions | 45 | |
▷ Named functions | 17 | 37.78% |
▷ Anonymous functions | 28 | 62.22% |
Constants | 45 | |
▷ Global constants | 13 | 28.89% |
▷ Class constants | 32 | 71.11% |
▷ Public constants | 32 | 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
24 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_title_main.png | 0.09KB | 0.14KB | 0.00% |
assets/img/parcelshop.png | 5.41KB | 2.31KB | ▼ 57.31% |
assets/img/fancybox/fancy_title_over.png | 0.07KB | 0.09KB | 0.00% |
assets/img/packstation.png | 6.13KB | 2.57KB | ▼ 58.07% |
assets/img/fancybox/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |