89% woo-order-delivery-time-management

Code Review | Setup Order Delivery Date & Time for WooCommerce Order

WordPress plugin Setup Order Delivery Date & Time for WooCommerce Order scored89%from 54 tests.

About plugin

  • Plugin page: woo-order-deliver...
  • Plugin version: 1.6.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Jun 29, 2022
  • Number of updates: 43
  • Update frequency: every 25.9 days
  • Top authors: kaushik1111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,056 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Setup Order Delivery Date & Time for WooCommerce Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.56 ▼11.68
Dashboard /wp-admin3.31 ▼0.0447.44 ▼20.17
Posts /wp-admin/edit.php3.36 ▲0.0045.12 ▼3.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.21 ▼13.61
Media Library /wp-admin/upload.php3.23 ▲0.0039.01 ▲1.41

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Setup Order Delivery Date & Time for WooCommerce Order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.401.72 ▼0.0541.76 ▼2.53
Dashboard /wp-admin2,206 ▲245.79 ▼0.01100.56 ▼6.6338.26 ▼5.43
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0335.04 ▼3.5433.13 ▼2.15
Add New Post /wp-admin/post-new.php1,533 ▲923.23 ▼0.05663.56 ▼11.3566.11 ▲15.88
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0397.66 ▼10.8444.27 ▼4.25

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt is a good inspiration

woo-order-delivery-time-management/woo-order-delivery-date-time-setup.php 85% from 13 tests

The main PHP file in "Setup Order Delivery Date & Time for WooCommerce Order" ver. 1.6.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-order-delivery-time-management.php" instead of "woo-order-delivery-date-time-setup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin539 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1721337
PHP23662185
JavaScript321517

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin