83% send-email-to-customer-on-cancelled-order-in-woocommerce

Code Review | Send email to customer on cancelled order in WooCommerce

WordPress plugin Send email to customer on cancelled order in WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: send-email-to-cus...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Apr 29, 2019
  • Number of updates: 4
  • Update frequency: every 12.5 days
  • Top authors: lauradiaz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active /4,807 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Send email to customer on cancelled order in WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.75 ▼3.08
Dashboard /wp-admin3.32 ▼0.0343.93 ▼13.19
Posts /wp-admin/edit.php3.37 ▲0.0149.92 ▲3.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.09 ▲4.60
Media Library /wp-admin/upload.php3.24 ▲0.0134.17 ▼3.12

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Send email to customer on cancelled order in WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.101.81 ▼0.0343.74 ▲5.06
Dashboard /wp-admin2,203 ▲115.80 ▲0.83122.93 ▲2.6153.61 ▲9.07
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0539.14 ▲0.2734.57 ▼2.03
Add New Post /wp-admin/post-new.php1,533 ▼923.22 ▲5.07677.52 ▲51.0555.60 ▲1.49
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.03101.24 ▼1.3642.44 ▼1.63

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/send-email-to-customer-on-cancelled-order-in-woocommerce/send-email-to-customer-on-cancelled-order-in-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Send email to customer on cancelled order in Woocommerce before plugin activation.), #2 (Send email to customer on cancelled order in Woocommerce after activation.)
The official readme.txt might help

send-email-to-customer-on-cancelled-order-in-woocommerce/send-email-to-customer-on-cancelled-order-in-woocommerce.php 85% from 13 tests

Analyzing the main PHP file in "Send email to customer on cancelled order in WooCommerce" version 1.1
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131722

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin