90% woo-email-orders

Code Review | WooCommerce Email Order Digest

WordPress plugin WooCommerce Email Order Digest scored90%from 54 tests.

About plugin

  • Plugin page: woo-email-orders
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2018
  • Latest release: Jan 13, 2023
  • Number of updates: 12
  • Update frequency: every 129.1 days
  • Top authors: nwells (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,588 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: ▼6.86ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Email Order Digest
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.75 ▼1.11
Dashboard /wp-admin3.31 ▼0.0352.56 ▼9.74
Posts /wp-admin/edit.php3.37 ▲0.0147.59 ▼3.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.10 ▼8.70
Media Library /wp-admin/upload.php3.24 ▲0.0130.92 ▼5.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Email Order Digest
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.74 ▲0.101.87 ▲0.1742.50 ▼0.76
Dashboard /wp-admin2,224 ▲244.81 ▼1.04100.19 ▲0.6740.49 ▼2.54
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0234.23 ▼0.9233.44 ▼5.00
Add New Post /wp-admin/post-new.php1,554 ▲2318.14 ▼5.30641.64 ▼50.8565.66 ▼4.82
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0398.87 ▲1.2746.48 ▼0.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: order emails, orders, daily digest, daily order email, woocommerce

woo-email-orders/woocommerce-email-orders.php 92% from 13 tests

This is the main PHP file of "WooCommerce Email Order Digest" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-email-orders.php" instead of "woocommerce-email-orders.php")

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
Success! There were no dangerous files found in this plugin298 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22168298

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected