93% deliverea-shipping

Code Review | Deliverea Shipping

WordPress plugin Deliverea Shipping scored 93% from 54 tests.

About plugin

  • Plugin page: deliverea-shipping
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.5.3
  • WordPress version: 5.8.1
  • First release: Aug 31, 2016
  • Latest release: Sep 28, 2016
  • Number of updates: 17
  • Update frequency: every 1.7 days
  • Top authors: pedrocuesta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,823 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼644.28ms] Passed 4 tests

An overview of server-side resources used by Deliverea Shipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1242.30 ▲22.13
Dashboard /wp-admin3.06 ▲0.0047.13 ▲0.29
Posts /wp-admin/edit.php3.11 ▼0.0147.63 ▼4.56
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.77 ▼2,573.70
Media Library /wp-admin/upload.php3.00 ▲0.0038.07 ▲0.86

Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 87 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Deliverea Shipping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲7616.24 ▲0.6712.22 ▼0.5548.57 ▼2.05
Dashboard /wp-admin2,967 ▲336.00 ▲0.06161.84 ▼29.14113.15 ▼6.29
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0277.77 ▲12.7098.31 ▼3.36
Add New Post /wp-admin/post-new.php1,683 ▼018.72 ▲2.17417.14 ▲9.61123.15 ▲3.59
Media Library /wp-admin/upload.php1,807 ▼05.04 ▼0.01168.78 ▼16.80125.59 ▼2.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/GetShipmentLabelResponse.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/GetShipmentResponse.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/GetShipmentsResponse.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/NewShipmentResponse.php:7
    • > PHP Notice
      Undefined index: DELIVEREASHIPPING in wp-content/plugins/deliverea-shipping/templates/pickup-points.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Model\\AbstractDeliverea' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Model/DetailedCollection.php:6
    • > PHP Notice
      Undefined index: DELIVEREASHIPPING in wp-content/plugins/deliverea-shipping/templates/config.php on line 3
    • > PHP Notice
      Undefined index: DELIVEREASHIPPING in wp-content/plugins/deliverea-shipping/templates/list.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Model\\AbstractDeliverea' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Model/Carrier.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Deliverea\\Model\\AbstractDeliverea' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Model/Address.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === deliverea-shipping === )
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

deliverea-shipping/delivereashipping.php 92% from 13 tests

The main PHP file in "Deliverea Shipping" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deliverea-shipping.php" instead of "delivereashipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,750 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes12.33%
▷ Static methods41.43%
▷ Public methods26896.06%
▷ Protected methods10.36%
▷ Private methods103.58%
▷ Named functions222.22%
▷ Anonymous functions777.78%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/icon.png1.12KB0.00KB▼ 100.00%