89% schedule-product-delivery-date-for-woocommerce

Code Review | Schedule Product Delivery Date for WooCommerce

WordPress plugin Schedule Product Delivery Date for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: schedule-product-...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 22, 2022
  • Latest release: Aug 31, 2023
  • Number of updates: 16
  • Update frequency: every 36.8 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /872 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Schedule Product Delivery Date for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.89 ▼9.63
Dashboard /wp-admin3.31 ▲0.0048.49 ▼6.38
Posts /wp-admin/edit.php3.36 ▲0.0051.16 ▲1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.83 ▼0.59
Media Library /wp-admin/upload.php3.23 ▲0.0031.01 ▼6.89

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Schedule Product Delivery Date for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.211.66 ▼0.2140.78 ▼1.04
Dashboard /wp-admin2,198 ▲185.62 ▼0.0284.27 ▼6.1540.78 ▲4.63
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0139.29 ▲2.4835.80 ▼0.61
Add New Post /wp-admin/post-new.php1,526 ▼223.18 ▲0.11618.94 ▼71.9947.77 ▼13.19
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0295.70 ▼19.9346.23 ▼3.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: woocommerce product delivery date, product delivery date, product delivery, woocommerce schedule delivery, woocommerce order delivery...

schedule-product-delivery-date-for-woocommerce/schedule-delivery-for-woocommerce-products.php 69% from 13 tests

The main PHP file in "Schedule Product Delivery Date for WooCommerce" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.7" instead of "5.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("schedule-product-delivery-date-for-woocommerce.php" instead of "schedule-delivery-for-woocommerce-products.php")
  • Description: The description should be shorter than 140 characters (currently 163 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin5,215 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP154661,1873,931
CSS341481,224
SVG100058
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity60.15
▷ Minimum class complexity6.00
▷ Maximum class complexity292.00
Average method complexity5.63
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods166
▷ Static methods2917.47%
▷ Public methods14184.94%
▷ Protected methods00.00%
▷ Private methods2515.06%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants1047.62%
▷ Class constants1152.38%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%
admin/assets/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png0.38KB0.12KB▼ 67.68%
admin/assets/css/jquery-ui/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
admin/assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
admin/assets/img/help.png0.30KB0.32KB0.00%