89% estimated-delivery-for-woocommerce

Code Review | Estimated Delivery for Woocomerce

WordPress plugin Estimated Delivery for Woocomerce scored89%from 54 tests.

About plugin

  • Plugin page: estimated-deliver...
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2019
  • Latest release: Jun 5, 2023
  • Number of updates: 35
  • Update frequency: every 36.2 days
  • Top authors: DanielRiera (51.43%)taxarpro (51.43%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /23,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.75ms] Passed 4 tests

This is a short check of server-side resources used by Estimated Delivery for Woocomerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.73 ▼6.13
Dashboard /wp-admin3.44 ▲0.1351.88 ▲3.99
Posts /wp-admin/edit.php3.55 ▲0.1948.69 ▼8.79
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.57 ▼7.29
Media Library /wp-admin/upload.php3.36 ▲0.1337.99 ▲3.20
Estimated Delivery /wp-admin/admin.php?page=edw-options3.4439.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Estimated Delivery for Woocomerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,454 ▼30714.34 ▲0.030.55 ▼1.3018.61 ▼26.74
Dashboard /wp-admin2,192 ▲125.64 ▼0.0595.16 ▼0.3944.73 ▼3.51
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0233.72 ▼3.5832.80 ▼4.58
Add New Post /wp-admin/post-new.php1,531 ▲523.14 ▲5.54626.48 ▼37.4856.41 ▲4.31
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.09103.73 ▼3.2345.52 ▲1.78
Estimated Delivery /wp-admin/admin.php?page=edw-options1,2632.0223.7928.26

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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 a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: estimated delivery, delivery woocommerce

estimated-delivery-for-woocommerce/estimated-delivery-woocommerce.php 85% from 13 tests

This is the main PHP file of "Estimated Delivery for Woocomerce" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("estimated-delivery-for-woocommerce.php" instead of "estimated-delivery-woocommerce.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.3" instead of "3.0")

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
There were no executable files found in this plugin2,067 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP7105461,244
PO File4261390672
Markdown2360104
JavaScript18047

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity40.00
▷ Minimum class complexity2.00
▷ Maximum class complexity78.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.67MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wordpress-org/icon-128x128.png6.03KB3.84KB▼ 36.23%
wordpress-org/icon-256x256.png29.49KB11.52KB▼ 60.94%
wordpress-org/banner-1880x609.png319.76KB97.10KB▼ 69.63%
wordpress-org/banner-1544x500.png250.85KB75.36KB▼ 69.96%
wordpress-org/banner-772x250.png81.12KB25.83KB▼ 68.16%