84% leave-at-door-for-woocommerce

Code Review | Leave At Door For WooCommerce

WordPress plugin Leave At Door For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: leave-at-door-for...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: May 3, 2023
  • Number of updates: 22
  • Update frequency: every 50.6 days
  • Top authors: scott.deluzio (86.36%)ampmode (18.18%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Leave At Door For WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0425.64 ▼15.87
Dashboard /wp-admin3.36 ▲0.0248.19 ▼18.13
Posts /wp-admin/edit.php3.41 ▲0.0654.79 ▲8.65
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.99 ▼15.51
Media Library /wp-admin/upload.php3.28 ▲0.0637.31 ▼0.59

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Leave At Door 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,480 ▼29114.79 ▲0.150.56 ▼1.4618.85 ▼27.25
Dashboard /wp-admin2,221 ▲185.79 ▲0.92118.75 ▲10.3644.09 ▲6.97
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0041.03 ▲4.3435.75 ▲0.36
Add New Post /wp-admin/post-new.php1,545 ▼023.03 ▼0.39678.33 ▲1.4370.76 ▲8.77
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.03111.80 ▲0.9047.46 ▼2.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leave-at-door-for-woocommerce/leave-at-door-for-woocommerce.php:148

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce, plugin, restaurant, checkout, delivery

leave-at-door-for-woocommerce/leave-at-door-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Leave At Door For WooCommerce" version 1.1.1
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "4.4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected214 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP544137199
JavaScript1139
CSS1106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin