89% shipping-delivery-date-management-with-gift-message

Code Review | Shipping & Delivery Date management with gift message

WordPress plugin Shipping & Delivery Date management with gift message scored89%from 54 tests.

About plugin

  • Plugin page: shipping-delivery...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.0
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Jul 23, 2022
  • Number of updates: 28
  • Update frequency: every 80.5 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /4,581 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Shipping & Delivery Date management with gift message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.78 ▼3.97
Dashboard /wp-admin3.31 ▲0.0052.17 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0049.47 ▼5.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.34 ▼9.23
Media Library /wp-admin/upload.php3.23 ▲0.0038.50 ▼0.35

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

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

Browser metrics Passed 4 tests

Shipping & Delivery Date management with gift message: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.531.67 ▼0.1542.09 ▼6.46
Dashboard /wp-admin2,198 ▲185.59 ▼0.0688.39 ▼2.7143.46 ▲3.06
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0240.60 ▲2.7637.06 ▲0.69
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.79636.18 ▲25.0254.06 ▼3.07
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0196.61 ▼9.5547.92 ▲3.78

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

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
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
You can look at the official readme.txt

shipping-delivery-date-management-with-gift-message/shipping-delivery-date-management-with-gift-message.php 92% from 13 tests

"Shipping & Delivery Date management with gift message" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,048 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS459511,602
JavaScript5283801,375
PHP3131120924
PO File16161147

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity6.14
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.31KB0.18KB▼ 42.95%
assets/css/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
assets/css/images/ui-icons_222222_256x240.png6.84KB4.18KB▼ 38.88%
assets/css/images/ui-bg_flat_75_ffffff_40x100.png0.24KB0.08KB▼ 64.78%