Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.17ms] Passed 4 tests
Analyzing server-side resources used by DHL eCommerce for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.04 ▼7.58 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.46 ▼15.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.98 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.68 ▲2.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.24 ▼1.99 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for DHL eCommerce for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.21 ▼0.14 | 1.86 ▲0.19 | 41.99 ▼2.52 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▲0.04 | 90.80 ▼9.50 | 39.98 ▼3.17 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▲0.00 | 42.55 ▲5.39 | 35.20 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.25 ▲4.91 | 696.86 ▲82.07 | 50.82 ▼16.36 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.07 | 99.75 ▼2.75 | 41.98 ▲1.95 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dhlpwc/includes/view/admin/multi-select.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
dhlpwc/dhlpwoocommerce.php 92% from 13 tests
The primary PHP file in "DHL eCommerce for WooCommerce" version 2.0.17 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dhlpwc.php" instead of "dhlpwoocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected15,121 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 2,380 | 665 | 10,304 |
PO File | 2 | 915 | 1,394 | 1,997 |
JavaScript | 13 | 371 | 99 | 1,514 |
CSS | 5 | 152 | 10 | 877 |
Markdown | 1 | 60 | 0 | 338 |
SVG | 22 | 1 | 0 | 91 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 19.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 5 | 5.95% |
▷ Concrete classes | 79 | 94.05% |
▷ Final classes | 0 | 0.00% |
Methods | 436 | |
▷ Static methods | 1 | 0.23% |
▷ Public methods | 312 | 71.56% |
▷ Protected methods | 124 | 28.44% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 135 | |
▷ Global constants | 7 | 5.19% |
▷ Class constants | 128 | 94.81% |
▷ Public constants | 128 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dhlpwc_sprites.png | 8.53KB | 3.96KB | ▼ 53.61% |
assets/images/dhlpwc_logo_mini.png | 0.86KB | 1.07KB | 0.00% |
assets/images/dhlpwc_logo.png | 3.64KB | 2.51KB | ▼ 31.10% |