Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Error in wp-content/plugins/automated-dhl-parcel-shipping-labels/hitshipo_dhlp.php+32
Uncaught Error: Call to undefined function WC() in wp-content/plugins/automated-dhl-parcel-shipping-labels/hitshipo_dhlp.php:32
Stack trace:
#0 wp-includes/class-wp-hook.php(312): hit_woo_dhlp_plugin_activation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲0.40MB] [CPU: ▼3.68ms] Passed 4 tests
This is a short check of server-side resources used by Automated DHL Parcel shipping labels
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 38.87 ▼2.76 |
Dashboard /wp-admin | 3.70 ▲0.40 | 47.00 ▼6.66 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 47.84 ▲0.06 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 84.27 ▼5.35 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 33.59 ▲0.29 |
Server storage [IO: ▲4.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Automated DHL Parcel shipping labels: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.50 ▼0.78 | 4.71 ▲2.79 | 41.10 ▼7.93 |
Dashboard /wp-admin | 2,206 ▲21 | 4.84 ▼1.04 | 109.92 ▼5.03 | 41.11 ▼1.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 41.98 ▲2.68 | 37.64 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.52 ▼4.72 | 635.62 ▼36.62 | 54.81 ▲0.17 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.18 ▼0.12 | 97.42 ▼0.55 | 42.73 ▲0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/automated-dhl-parcel-shipping-labels/controllors/classes/weight_pack/class-hit-weight-strategy-simple.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/automated-dhl-parcel-shipping-labels/controllors/classes/weight_pack/class-hit-weight-strategy-descend.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/automated-dhl-parcel-shipping-labels/controllors/classes/weight_pack/class-hit-weight-strategy-ascend.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
automated-dhl-parcel-shipping-labels/hitshipo_dhlp.php 77% from 13 tests
The main file in "Automated DHL Parcel shipping labels" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "2.6")
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("automated-dhl-parcel-shipping-labels.php" instead of "hitshipo_dhlp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5,640 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 541 | 718 | 4,773 |
XML | 4 | 0 | 0 | 867 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 44.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 91 | 91.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/hdhl_p.png | 8.71KB | 3.31KB | ▼ 61.97% |
controllors/views/dhl_p.png | 148.99KB | 50.93KB | ▼ 65.82% |