78% local-delivery-by-doordash

Code Review | Local Delivery by DoorDash

WordPress plugin Local Delivery by DoorDash scored 78% from 54 tests.

About plugin

  • Plugin page: local-delivery-by...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: Sep 13, 2023
  • Number of updates: 12
  • Update frequency: every 25.6 days
  • Top authors: inverseparadox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,599 total downloads

Benchmarks

Plugin footprint 83% from 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: ▲2.88ms] Passed 4 tests

A check of server-side resources used by Local Delivery by DoorDash
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.47 ▲2.46
Dashboard /wp-admin3.31 ▲0.0151.65 ▲6.67
Posts /wp-admin/edit.php3.36 ▲0.0144.95 ▼2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.59 ▲5.30
Media Library /wp-admin/upload.php3.24 ▲0.0137.72 ▲5.90

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Local Delivery by DoorDash
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1514.74 ▲1.511.84 ▲0.2243.50 ▲4.52
Dashboard /wp-admin2,213 ▲75.85 ▲0.02104.51 ▲4.1242.15 ▲2.21
Posts /wp-admin/edit.php2,092 ▲62.02 ▼0.0338.65 ▲2.6333.17 ▲2.28
Add New Post /wp-admin/post-new.php1,518 ▼117.59 ▼5.66683.19 ▲38.6869.33 ▲11.77
Media Library /wp-admin/upload.php1,395 ▲134.23 ▲0.0496.63 ▼2.6744.92 ▲2.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 0% 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 fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/local-delivery-by-doordash/public/partials/woocommerce-doordash-public-display.php
    • > /wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-display.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-settings-main.php:18
    • > PHP Notice
      Undefined variable: prefix in wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-settings-main.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-settings-edit-location.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/local-delivery-by-doordash/admin/class-woocommerce-doordash-settings.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/local-delivery-by-doordash/includes/class-woocommerce-doordash-shipping-method.php:23

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: delivery, doordash, shipping, woocommerce

local-delivery-by-doordash/woocommerce-doordash.php 85% from 13 tests

"Local Delivery by DoorDash" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("local-delivery-by-doordash.php" instead of "woocommerce-doordash.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)

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
No dangerous file extensions were detected2,919 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP236031,8092,313
JavaScript35181309
CSS25469296
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity19.87
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods145
▷ Static methods21.38%
▷ Public methods13291.03%
▷ Protected methods85.52%
▷ Private methods53.45%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected