90% email-recipients-for-woocommerce

Code Review | Email Recipients for WooCommerce

WordPress plugin Email Recipients for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: email-recipients-...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Nov 8, 2023
  • Number of updates: 8
  • Update frequency: every 98.6 days
  • Top authors: wpcodefactory (62.5%)algoritmika (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /938 total downloads


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
This plugin's installer ran successfully

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

An overview of server-side resources used by Email Recipients for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.81 ▲3.77
Dashboard /wp-admin3.31 ▲0.0048.21 ▼1.27
Posts /wp-admin/edit.php3.36 ▲0.0044.99 ▼0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.87 ▼11.06
Media Library /wp-admin/upload.php3.23 ▲0.0033.59 ▼1.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Email Recipients for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.14 ▼0.471.67 ▼0.0342.37 ▼3.50
Dashboard /wp-admin2,192 ▲155.53 ▼0.1384.82 ▼13.9936.36 ▼6.87
Posts /wp-admin/edit.php2,097 ▼01.94 ▼0.0237.23 ▲1.5334.83 ▲1.28
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▼0.31682.49 ▼0.9356.08 ▲4.93
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.07106.78 ▲5.2844.27 ▲0.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woo commerce, email, woocommerce, emails, recipient

email-recipients-for-woocommerce/email-recipients-for-woocommerce.php Passed 13 tests

This is the main PHP file of "Email Recipients for WooCommerce" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Set custom recipients for WooCommerce emails.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected443 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
▷ Static methods13.45%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin