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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/a2z-dhl-express-shipping/a2zdhlexpress_basic.php+32
Uncaught Error: Call to undefined function WC() in wp-content/plugins/a2z-dhl-express-shipping/a2zdhlexpress_basic.php:32
Stack trace:
#0 wp-includes/class-wp-hook.php(312): hit_woo_dhl_express_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.82MB] [CPU: ▼0.66ms] Passed 4 tests
A check of server-side resources used by Automated DHL Express live/manual shipping rates, labels and pickup – HPOS supported
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.77 | 42.95 ▲1.40 |
Dashboard /wp-admin | 4.23 ▲0.88 | 46.65 ▼15.73 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 53.93 ▲5.19 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.77 | 100.30 ▲6.50 |
Media Library /wp-admin/upload.php | 4.23 ▲0.99 | 41.63 ▲7.28 |
Server storage [IO: ▲8.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,343 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Automated DHL Express live/manual shipping rates, labels and pickup – HPOS supported
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.21 ▼0.07 | 1.65 ▼0.09 | 38.20 ▼7.37 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.03 | 96.87 ▼1.32 | 42.75 ▼5.77 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 39.72 ▲0.11 | 37.57 ▲4.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.42 ▲0.28 | 674.41 ▲55.50 | 49.43 ▲1.62 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.32 ▲0.12 | 95.24 ▼5.33 | 42.38 ▲0.05 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 693× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/google/protobuf/src/Google/Protobuf/Method.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Type/TimeOfDay.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/google/protobuf/src/Google/Protobuf/Internal/OneofOptions.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Servicecontrol/V1/CheckResponse.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/google/common-protos/src/Cloud/ServiceManagement/V1/ListServicesResponse.php:16
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php:22
- > PHP Fatal error
Trait 'Google\\Cloud\\Core\\Iterator\\ItemIteratorTrait' not found in wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/google/cloud-core/src/Iterator/ItemIterator.php on line 23
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: dhl, shipping label, dhl express, shipping rates, automated...
a2z-dhl-express-shipping/a2zdhlexpress_basic.php 77% from 13 tests
The primary PHP file in "Automated DHL Express live/manual shipping rates, labels and pickup – HPOS supported" version 5.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("a2z-dhl-express-shipping.php" instead of "a2zdhlexpress_basic.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0.1" instead of "2.6")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/a2z-dhl-express-shipping/controllors/classes/gtrans/vendor/bin/google-cloud-batch.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,189 | 16,495 | 71,402 | 76,097 |
Markdown | 42 | 1,668 | 0 | 5,164 |
JSON | 36 | 4 | 0 | 3,250 |
XML | 7 | 0 | 5 | 281 |
XSLT | 2 | 23 | 20 | 209 |
Bourne Shell | 9 | 46 | 81 | 172 |
JavaScript | 1 | 2 | 0 | 116 |
YAML | 4 | 10 | 0 | 98 |
Protocol Buffers | 2 | 14 | 38 | 62 |
Python | 1 | 17 | 43 | 46 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,286)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 340)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,286.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 340.00 |
Code structure | ||
---|---|---|
Namespaces | 165 | |
Interfaces | 52 | |
Traits | 58 | |
Classes | 1,052 | |
▷ Abstract classes | 18 | 1.71% |
▷ Concrete classes | 1,034 | 98.29% |
▷ Final classes | 15 | 1.45% |
Methods | 6,466 | |
▷ Static methods | 562 | 8.69% |
▷ Public methods | 5,722 | 88.49% |
▷ Protected methods | 235 | 3.63% |
▷ Private methods | 509 | 7.87% |
Functions | 292 | |
▷ Named functions | 77 | 26.37% |
▷ Anonymous functions | 215 | 73.63% |
Constants | 584 | |
▷ Global constants | 3 | 0.51% |
▷ Class constants | 581 | 99.49% |
▷ Public constants | 561 | 96.56% |
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.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/dhl.png | 27.25KB | 10.29KB | ▼ 62.23% |
controllors/views/hdhl.png | 6.93KB | 3.56KB | ▼ 48.66% |
dhl.png | 119.73KB | 45.66KB | ▼ 61.87% |