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
Please fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/a2zdpdshipping_basic.php+32
Uncaught Error: Call to undefined function WC() in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/a2zdpdshipping_basic.php:32
Stack trace:
#0 wp-includes/class-wp-hook.php(312): hitshipo_woo_dpd_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.00MB] [CPU: ▼3.19ms] Passed 4 tests
An overview of server-side resources used by Automated DPD Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.17 ▼5.09 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.67 ▲0.60 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.97 ▼1.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.32 ▼6.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.70 ▲3.47 |
Server storage [IO: ▲8.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,338 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Automated DPD Shipping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▲0.00 | 1.90 ▲0.36 | 36.82 ▼5.91 |
Dashboard /wp-admin | 2,198 ▲21 | 5.50 ▼0.17 | 83.73 ▼2.92 | 36.17 ▲0.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.03 | 33.80 ▼6.09 | 35.32 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.03 | 688.77 ▲69.43 | 59.79 ▲1.27 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.04 | 94.07 ▼7.83 | 43.24 ▲0.49 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 693× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/common-protos/src/Api/Context.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/gax/tests/Tests/Unit/ResourceTemplate/RelativeResourceTemplateTest.php:37
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/protobuf/src/Google/Protobuf/Internal/ServiceDescriptorProto.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/gax/tests/Tests/Unit/ApiExceptionTest.php:49
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/gax/tests/Tests/Unit/PageStreamingDescriptorTest.php:38
- > PHP Fatal error
Uncaught Error: Class 'Grpc\\ClientStreamingCall' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/gax/src/Testing/MockClientStreamingCall.php:50
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/google/common-protos/src/Rpc/Help.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/controllors/classes/gtrans/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #6 (Order page where you can easily get labels.), #7 (Checkout - Order placed with the DPD carrier.), #8 (Create shiping label screen in edit order page. This is for manual usage.), #9 (Shipping label management section - HITShipo.), #10 (Check tracking informations - HITShipo.), #11 (Check tracking informations - In the site my account section.), #12 (Shipping label & Management information.)
automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/a2zdpdshipping_basic.php 77% from 13 tests
Analyzing the main PHP file in "Automated DPD Shipping" version 1.3.9
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automated-dpd-express-livemanual-shipping-rates-labels-and-pickup.php" instead of "a2zdpdshipping_basic.php")
- Text Domain: Please use dashes and lowercase characters for text domains
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "2.6")
Code Analysis 3% 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
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/automated-dpd-express-livemanual-shipping-rates-labels-and-pickup/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,188 | 16,286 | 71,351 | 73,190 |
Markdown | 42 | 1,668 | 0 | 5,164 |
JSON | 36 | 4 | 0 | 3,250 |
XSLT | 2 | 23 | 20 | 209 |
Bourne Shell | 9 | 46 | 81 | 172 |
HTML | 1 | 14 | 1 | 163 |
YAML | 4 | 10 | 0 | 98 |
Protocol Buffers | 2 | 14 | 38 | 62 |
XML | 4 | 0 | 5 | 51 |
Python | 1 | 17 | 43 | 46 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 192)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 432.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 192.00 |
Code structure | ||
---|---|---|
Namespaces | 165 | |
Interfaces | 52 | |
Traits | 58 | |
Classes | 1,051 | |
▷ Abstract classes | 18 | 1.71% |
▷ Concrete classes | 1,033 | 98.29% |
▷ Final classes | 15 | 1.45% |
Methods | 6,438 | |
▷ Static methods | 562 | 8.73% |
▷ Public methods | 5,707 | 88.65% |
▷ Protected methods | 235 | 3.65% |
▷ Private methods | 496 | 7.70% |
Functions | 292 | |
▷ Named functions | 78 | 26.71% |
▷ Anonymous functions | 214 | 73.29% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/dpd.png | 41.73KB | 18.32KB | ▼ 56.11% |
controllors/views/hdpd.png | 9.55KB | 3.24KB | ▼ 66.09% |