77% estimate-delivery-date-for-woocommerce

Code Review | Estimated delivery date per product for WooCommerce | shipping date per product for WooCommerce

WordPress plugin Estimated delivery date per product for WooCommerce | shipping date per product for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: estimate-delivery...
  • Plugin version: 4.10.29
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Nov 27, 2023
  • Number of updates: 255
  • Update frequency: every 6.8 days
  • Top authors: rajeshsingh520 (100%)

Code review

54 tests

User reviews

77 reviews

Install metrics

700+ active /109,378 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: ▼8.99ms] Passed 4 tests

A check of server-side resources used by Estimated delivery date per product for WooCommerce | shipping date per product for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.84 ▼5.23
Dashboard /wp-admin3.31 ▲0.0044.24 ▼8.35
Posts /wp-admin/edit.php3.36 ▲0.0048.91 ▼2.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.65 ▼19.51
Media Library /wp-admin/upload.php3.23 ▲0.0037.06 ▲4.80

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Estimated delivery date per product for WooCommerce | shipping date per product for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.34 ▲0.001.63 ▼0.0236.11 ▼7.56
Dashboard /wp-admin2,198 ▲245.62 ▼0.0596.11 ▲1.9942.46 ▼1.51
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0437.06 ▲1.4734.58 ▲1.03
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▲0.19721.05 ▲50.4258.85 ▲3.90
Media Library /wp-admin/upload.php1,403 ▲94.18 ▼0.02110.13 ▲14.4547.70 ▲8.18

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

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

Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/img/limited-2-file.php
    • > /wp-content/plugins/estimate-delivery-date-for-woocommerce/includes/pisol.class.form.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-extra.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/estimate-delivery-date-for-woocommerce/public/class-edd-template.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-holidays.php:98
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-option.php:185
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/estimate-delivery-date-for-woocommerce/includes/includes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-woo.php:52
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-translate.php:183
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/estimate-delivery-date-for-woocommerce/includes/compatible-plugin-message.php:22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-shipping.php:238
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd-design.php:105

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: "piwebsolution.com"
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #3, #4, #5, #6, #7, #9 in estimate-delivery-date-for-woocommerce/assets to your readme.txt
You can take inspiration from this readme.txt

estimate-delivery-date-for-woocommerce/pi-edd.php 69% from 13 tests

The principal PHP file in "Estimated delivery date per product for WooCommerce | shipping date per product for WooCommerce" v. 4.10.29 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("estimate-delivery-date-for-woocommerce.php" instead of "pi-edd.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "6.0.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 250 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin23,309 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP3788756011,648
CSS32,061229,448
SVG4331,587
JavaScript59280626

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.60
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods238
▷ Static methods229.24%
▷ Public methods23397.90%
▷ Protected methods00.00%
▷ Private methods52.10%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants4
▷ Global constants4100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/pi.png1.48KB1.11KB▼ 24.83%
includes/background.png74.27KB26.29KB▼ 64.60%
admin/img/pi-web-solution.png21.25KB9.42KB▼ 55.67%