84% wpc-estimated-delivery-date

Code Review | WPC Estimated Delivery Date for WooCommerce

WordPress plugin WPC Estimated Delivery Date for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wpc-estimated-del...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 27, 2023
  • Latest release: Oct 25, 2023
  • Number of updates: 14
  • Update frequency: every 12.9 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /2,523 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.73ms] Passed 4 tests

Analyzing server-side resources used by WPC Estimated Delivery Date for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.17 ▲1.63
Dashboard /wp-admin3.39 ▲0.0950.05 ▲2.66
Posts /wp-admin/edit.php3.50 ▲0.1544.73 ▲3.40
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.92 ▼11.16
Media Library /wp-admin/upload.php3.31 ▲0.0835.98 ▼0.06
About /wp-admin/admin.php?page=wpclever3.2831.60
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2830.02

Server storage [IO: ▲0.26MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPC Estimated Delivery Date for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.26 ▼0.331.72 ▼0.0741.27 ▲0.71
Dashboard /wp-admin2,260 ▲855.53 ▼0.1285.70 ▼14.8171.00 ▲30.02
Posts /wp-admin/edit.php2,178 ▲782.03 ▲0.0236.24 ▲1.0133.71 ▲0.49
Add New Post /wp-admin/post-new.php1,600 ▲7422.96 ▲0.14739.89 ▲66.8663.98 ▲5.29
Media Library /wp-admin/upload.php1,468 ▲684.30 ▲0.1695.43 ▼11.9480.66 ▲34.15
About /wp-admin/admin.php?page=wpclever1,4082.1431.0033.60
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7352.1335.2664.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-estimated-delivery-date/wpc-estimated-delivery-date.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: Please take inspiration from this readme.txt

wpc-estimated-delivery-date/wpc-estimated-delivery-date.php 92% from 13 tests

Analyzing the main PHP file in "WPC Estimated Delivery Date for WooCommerce" version 2.2.0
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,570 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5417862,358
CSS64151632,068
PHP11301561,649
Sass2680466
SVG10029

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity33.00
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods73
▷ Static methods2432.88%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin