71% estimated-delivery-date-per-product-for-woocommerce

Code Review | Estimated Delivery Date Per Product For Woocommerce

WordPress plugin Estimated Delivery Date Per Product For Woocommerce scored71%from 54 tests.

About plugin

  • Plugin page: estimated-deliver...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 16, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 5
  • Update frequency: every 45.8 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Estimated Delivery Date Per Product For Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.82 ▲0.64
Dashboard /wp-admin3.31 ▲0.0047.02 ▲2.44
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▲0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.33 ▲5.46
Media Library /wp-admin/upload.php3.23 ▲0.0035.44 ▲4.25
Product Est Date /wp-admin/admin.php?page=product-estdate3.0023.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Estimated Delivery Date Per Product For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.77 ▼0.621.75 ▼0.0437.02 ▼7.94
Dashboard /wp-admin2,209 ▲185.86 ▼0.04104.45 ▲3.6040.72 ▲0.34
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0639.40 ▲4.2935.02 ▼0.58
Add New Post /wp-admin/post-new.php1,535 ▲223.02 ▼0.16656.34 ▼36.0559.22 ▼1.25
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0593.36 ▼9.7941.42 ▼4.19
Product Est Date /wp-admin/admin.php?page=product-estdate280.440.073.65

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_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/estimated-delivery-date-per-product-for-woocommerce/estimated-shipping-date-per-product-for-woocommerce.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/estimated-delivery-date-per-product-for-woocommerce/frontend/frontend.php:314
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/estimated-delivery-date-per-product-for-woocommerce/admin/esdppfw-backend.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=product-estdate
    • > Network (severe)
    wp-admin/admin.php?page=product-estdate - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 83% 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
These attributes need your attention: You can look at the official readme.txt

estimated-delivery-date-per-product-for-woocommerce/estimated-shipping-date-per-product-for-woocommerce.php 77% from 13 tests

The main PHP file in "Estimated Delivery Date Per Product For Woocommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("estimated-delivery-date-per-product-for-woocommerce.php" instead of "estimated-shipping-date-per-product-for-woocommerce.php")
  • 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
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
There were no executable files found in this plugin1,068 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP39662712
JavaScript359161312
CSS20044

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/custom-icon-truck.png0.43KB0.40KB▼ 7.48%