89% woocommerce-customer-notes-to-completed-order-emails

Code Review | WooCommerce Customer Notes To Completed Order Emails

WordPress plugin WooCommerce Customer Notes To Completed Order Emails scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-custo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.1
  • WordPress version: 6.3.1
  • First release: May 2, 2015
  • Latest release: May 2, 2015
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,500 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.47ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Customer Notes To Completed Order Emails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.48 ▼11.05
Dashboard /wp-admin3.32 ▲0.0250.04 ▼2.48
Posts /wp-admin/edit.php3.37 ▲0.0147.27 ▼4.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.14 ▼12.12
Media Library /wp-admin/upload.php3.24 ▲0.0138.11 ▲0.14

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Customer Notes To Completed Order Emails
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.711.83 ▼0.0044.64 ▲1.23
Dashboard /wp-admin2,206 ▲215.85 ▼0.0199.12 ▼6.0439.64 ▼7.27
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0837.01 ▲0.1833.77 ▼2.09
Add New Post /wp-admin/post-new.php1,514 ▼1917.46 ▼5.56608.11 ▼30.6452.62 ▼0.55
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.1698.24 ▼13.2347.80 ▼0.50

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: notes, customer emails, emails, order emails, order details...

woocommerce-customer-notes-to-completed-order-emails/add-order-notes-to-completed-order.php 85% from 13 tests

The main PHP script in "WooCommerce Customer Notes To Completed Order Emails" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 ("woocommerce-customer-notes-to-completed-order-emails.php" instead of "add-order-notes-to-completed-order.php")

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
Good job! No executable or dangerous file extensions detected36 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171936

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin