90% wc-fsbano-delivery-date

Code Review | Delivery Date for WooCommerce

WordPress plugin Delivery Date for WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: wc-fsbano-deliver...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Mar 1, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: fsbano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.43ms] Passed 4 tests

This is a short check of server-side resources used by Delivery Date for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.18 ▼7.58
Dashboard /wp-admin3.31 ▲0.0053.80 ▲5.29
Posts /wp-admin/edit.php3.36 ▲0.0050.16 ▲2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.99 ▼7.47
Media Library /wp-admin/upload.php3.23 ▲0.0032.77 ▼0.75

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

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

Browser metrics Passed 4 tests

Delivery Date for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.30 ▼1.052.28 ▲0.4944.83 ▲2.68
Dashboard /wp-admin2,209 ▲215.86 ▼0.18111.66 ▲1.2944.47 ▲5.16
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.55 ▼1.9036.35 ▼0.16
Add New Post /wp-admin/post-new.php1,534 ▲523.39 ▲0.18692.52 ▲46.7153.14 ▲0.04
Media Library /wp-admin/upload.php1,388 ▲34.32 ▲0.0797.45 ▼5.1742.11 ▼0.64

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Plugins > Add New > Keyword : Search Plugin) image required
The official readme.txt might help

wc-fsbano-delivery-date/wc-fsbano-delivery-date.php Passed 13 tests

The main file in "Delivery Date for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Delivery Date and Time for WooCommerce in the billing form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,325 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS141481,222
PHP2163088
PO File2248
JavaScript1007

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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
Namespaces1
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%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin