84% errandlr-delivery-for-woocommerce

Code Review | Errandlr Delivery for WooCommerce

WordPress plugin Errandlr Delivery for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: errandlr-delivery...
  • Plugin version: 1.1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 8, 2022
  • Latest release: Oct 27, 2023
  • Number of updates: 22
  • Update frequency: every 18.8 days
  • Top authors: errandlr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.30ms] Passed 4 tests

Server-side resources used by Errandlr Delivery for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.21 ▲1.35
Dashboard /wp-admin3.34 ▼0.0140.04 ▼21.09
Posts /wp-admin/edit.php3.45 ▲0.0945.61 ▲3.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0376.61 ▼21.10
Media Library /wp-admin/upload.php3.26 ▲0.0332.93 ▼4.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Errandlr Delivery for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.18 ▼0.381.79 ▼0.0335.53 ▼8.32
Dashboard /wp-admin2,198 ▲215.62 ▼0.0495.14 ▼3.4242.21 ▼1.32
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0239.50 ▲2.0837.48 ▼1.29
Add New Post /wp-admin/post-new.php1,526 ▼023.84 ▲0.87669.29 ▲2.5449.00 ▼17.69
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0793.89 ▼20.1941.43 ▼6.78

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/errandlr-delivery-for-woocommerce/errandlr-delivery-for-woocommerce.php

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 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Requires php: Invalid plugin version format
Please take inspiration from this readme.txt

errandlr-delivery-for-woocommerce/errandlr-delivery-for-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "Errandlr Delivery for WooCommerce" version 1.1.11
33 characters long description:
Errandlr Delivery for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,466 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP52104361,071
JavaScript113101244
Markdown152087
CSS15044
SVG10020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity23.20
▷ Minimum class complexity4.00
▷ Maximum class complexity72.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods61
▷ Static methods34.92%
▷ Public methods5488.52%
▷ Protected methods711.48%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

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
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
assets/img/errandlr-logo.png1.02KB0.78KB▼ 23.34%