10% delivery-date-and-time

Code Review | Delivery Date and time for WooCommerce

WordPress plugin Delivery Date and time for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: delivery-date-and...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 15, 2020
  • Latest release: Apr 25, 2023
  • Number of updates: 9
  • Update frequency: every 95.7 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /589 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/delivery-date-and-time/delivery-date-and-time.php+80
    date_default_timezone_set(): Timezone ID '' is invalid

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

Analyzing server-side resources used by Delivery Date and time for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.75 ▲0.74
Dashboard /wp-admin3.31 ▼0.0452.56 ▼12.04
Posts /wp-admin/edit.php3.36 ▲0.0047.83 ▼1.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.11 ▼5.79
Media Library /wp-admin/upload.php3.23 ▲0.0034.73 ▲0.99

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

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

Browser metrics Passed 4 tests

Delivery Date and time 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,800 ▲5413.22 ▼1.151.77 ▲0.2142.93 ▲4.60
Dashboard /wp-admin2,203 ▲155.85 ▲0.8896.65 ▼8.2835.27 ▼8.35
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0335.78 ▼5.2332.81 ▼0.90
Add New Post /wp-admin/post-new.php1,533 ▲522.89 ▲4.73567.58 ▼71.5857.76 ▲7.30
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0496.81 ▼0.7744.84 ▲1.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/delivery-date-and-time/delivery-date-and-time.php+80
    date_default_timezone_set(): Timezone ID '' is invalid
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

delivery-date-and-time/delivery-date-and-time.php Passed 13 tests

"Delivery Date and time for WooCommerce" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
This is WC plugin which is basically provide a optiont for delivery date and time on checkout.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected406 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP411047308
CSS212452
JavaScript218846

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin