90% order-delivery-date-and-time

Code Review | Order Delivery Date And Time

WordPress plugin Order Delivery Date And Time scored90%from 54 tests.

About plugin

  • Plugin page: order-delivery-da...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 13
  • Update frequency: every 43.6 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /5,982 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 gracefully, with no errors

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

A check of server-side resources used by Order Delivery Date And Time
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.31 ▼0.76
Dashboard /wp-admin3.32 ▲0.0144.19 ▼3.26
Posts /wp-admin/edit.php3.37 ▲0.0145.71 ▼1.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.68 ▼4.89
Media Library /wp-admin/upload.php3.24 ▲0.0137.44 ▲1.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Order Delivery Date And Time
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.79 ▲0.141.79 ▼0.0843.52 ▼0.34
Dashboard /wp-admin2,203 ▲125.79 ▲0.9595.15 ▼11.4841.38 ▼4.90
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0140.13 ▲0.2134.52 ▲0.57
Add New Post /wp-admin/post-new.php1,543 ▲118.68 ▲0.35634.84 ▲33.5753.35 ▲2.64
Media Library /wp-admin/upload.php1,388 ▲34.14 ▼0.1193.42 ▼9.8541.54 ▼3.03

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

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 96% 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
5 plugin tags: woocommerce delivery slots, order delivery date, woocommerce pickup date and time, order delivery time, woocommerce delivery pickup and date

order-delivery-date-and-time/order-delivery-date-and-time.php 92% from 13 tests

The principal PHP file in "Order Delivery Date And Time" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,121 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP146283992,113
CSS30105
JavaScript3013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity36.82
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods110
▷ Static methods1210.91%
▷ Public methods8980.91%
▷ Protected methods00.00%
▷ Private methods2119.09%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/edit.png0.30KB0.45KB0.00%
admin/assets/css/delete.png0.48KB0.51KB0.00%
admin/assets/css/help.png0.30KB0.32KB0.00%