78% delivery-date-checkout-for-woocommerce

Code Review | Delivery Date checkout for Woocommerce

WordPress plugin Delivery Date checkout for Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: delivery-date-che...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2021
  • Latest release: Aug 6, 2022
  • Number of updates: 10
  • Update frequency: every 48.7 days
  • Top authors: easytechy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Delivery Date checkout for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.42 ▼5.81
Dashboard /wp-admin3.31 ▼0.0449.37 ▼11.09
Posts /wp-admin/edit.php3.36 ▲0.0050.32 ▲1.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.48 ▼13.74
Media Library /wp-admin/upload.php3.23 ▲0.0034.78 ▼4.77
Delivery Date /wp-admin/admin.php?page=oc-delivery-date3.0026.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delivery Date checkout for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.30 ▼1.035.31 ▲3.5243.34 ▲5.30
Dashboard /wp-admin2,206 ▲154.83 ▼0.97109.82 ▲4.8241.64 ▲2.16
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0141.85 ▲2.0434.61 ▼2.90
Add New Post /wp-admin/post-new.php1,514 ▼517.64 ▼5.61664.82 ▼70.5761.55 ▼2.38
Media Library /wp-admin/upload.php1,388 ▼04.32 ▲0.1395.39 ▼3.8945.92 ▲3.90
Delivery Date /wp-admin/admin.php?page=oc-delivery-date280.440.064.05

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/delivery-date-checkout-for-woocommerce/delivery-date-for-checkout-woo.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=oc-delivery-date
    • > Network (severe)
    wp-admin/admin.php?page=oc-delivery-date - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce delivery date, delivery time and date, delivery date for woocommerce, delivery date, delivery date and time checkout

delivery-date-checkout-for-woocommerce/delivery-date-for-checkout-woo.php 92% from 13 tests

"Delivery Date checkout for Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("delivery-date-checkout-for-woocommerce.php" instead of "delivery-date-for-checkout-woo.php")

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,462 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS467491,617
PHP426634818
JavaScript17327

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity25.00
▷ Minimum class complexity3.00
▷ Maximum class complexity50.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods514.29%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
5 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
assets/css/images/ui-icons_555555_256x240.png6.84KB4.18KB▼ 38.84%
assets/css/model-release-icon@3x.5cad9ea831eba8.28620202.png9.44KB3.48KB▼ 63.18%
assets/images/star.png39.75KB10.35KB▼ 73.95%
assets/images/remove.png0.78KB0.53KB▼ 32.20%