WordPress plugin Automated DPD Shipping scored10%from 54 tests.

About plugin

  • Plugin page: automated-dpd-exp...
  • Plugin version: 1.3.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1
  • WordPress version: 6.3.1
  • First release: Jun 3, 2021
  • Latest release: Oct 13, 2023
  • Number of updates: 36
  • Update frequency: every 24.0 days
  • Top authors: hitstacks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,940 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.17 ▼5.09
Dashboard /wp-admin3.31 ▲0.0145.67 ▲0.60
Posts /wp-admin/edit.php3.42 ▲0.0745.97 ▼1.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.32 ▼6.30
Media Library /wp-admin/upload.php3.23 ▲0.0037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.001.90 ▲0.3636.82 ▼5.91
Dashboard /wp-admin2,198 ▲215.50 ▼0.1783.73 ▼2.9236.17 ▲0.45
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0333.80 ▼6.0935.32 ▼3.49
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.03688.77 ▲69.4359.79 ▲1.27
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0494.07 ▼7.8343.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

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.)
The official readme.txt might help

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
82,418 lines of code in 1,291 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,18816,28671,35173,190
Markdown421,66805,164
JSON36403,250
XSLT22320209
Bourne Shell94681172
HTML1141163
YAML410098
Protocol Buffers2143862
XML40551
Python1174346
make1409
DOS Batch1004

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 code0.24
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity432.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity192.00
Code structure
Namespaces165
Interfaces52
Traits58
Classes1,051
▷ Abstract classes181.71%
▷ Concrete classes1,03398.29%
▷ Final classes151.45%
Methods6,438
▷ Static methods5628.73%
▷ Public methods5,70788.65%
▷ Protected methods2353.65%
▷ Private methods4967.70%
Functions292
▷ Named functions7826.71%
▷ Anonymous functions21473.29%
Constants584
▷ Global constants30.51%
▷ Class constants58199.49%
▷ Public constants56196.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
FileSize - originalSize - compressedSavings
controllors/views/dpd.png41.73KB18.32KB▼ 56.11%
controllors/views/hdpd.png9.55KB3.24KB▼ 66.09%