72% multiple-email-recipients-wc

Code Review | WooCommerce Multiple Recipients for E-Mail

WordPress plugin WooCommerce Multiple Recipients for E-Mail scored72%from 54 tests.

About plugin

  • Plugin page: multiple-email-re...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2020
  • Latest release: Apr 25, 2023
  • Number of updates: 10
  • Update frequency: every 85.4 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼16.40ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Multiple Recipients for E-Mail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.11 ▼1.46
Dashboard /wp-admin3.06 ▼0.2427.25 ▼20.52
Posts /wp-admin/edit.php3.20 ▼0.1632.41 ▼18.77
Add New Post /wp-admin/post-new.php5.44 ▼0.4470.40 ▼19.20
Media Library /wp-admin/upload.php3.13 ▼0.1027.30 ▼7.11
Multiple Email Recipients /wp-admin/options-general.php?page=woome_options3.1830.68

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WooCommerce Multiple Recipients for E-Mail: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.15 ▼1.305.03 ▲3.2142.67 ▲1.97
Dashboard /wp-admin2,213 ▲254.85 ▼0.1897.81 ▼8.5938.83 ▼5.50
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0341.26 ▲6.5733.04 ▲0.37
Add New Post /wp-admin/post-new.php1,536 ▲1723.31 ▼0.08613.99 ▼61.6648.47 ▼6.96
Media Library /wp-admin/upload.php1,392 ▲44.38 ▲0.0793.89 ▼2.9241.76 ▼1.63
Multiple Email Recipients /wp-admin/options-general.php?page=woome_options8312.0628.2628.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=woome_options
    • > Notice in wp-content/plugins/multiple-email-recipients-wc/INC/admin-page.php+42
    Trying to access array offset on value of type bool

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 fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/multiple-email-recipients-wc/INC/functions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/multiple-email-recipients-wc/INC/functions.php:7
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multiple-email-recipients-wc/INC/functions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-email-recipients-wc/multiple-email-recipients-WC.php:16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multiple-email-recipients-wc/INC/functions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-email-recipients-wc/INC/admin-page.php:65

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=woome_options
    • > Network (severe)
    wp-content/plugins/woocommerce-multiple-email-recipients/assets/css/woomeadmin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

multiple-email-recipients-wc/multiple-email-recipients-WC.php 85% from 13 tests

The main PHP file in "WooCommerce Multiple Recipients for E-Mail" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multiple-email-recipients-wc.php" instead of "multiple-email-recipients-WC.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 266 characters long)

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
Success! There were no dangerous files found in this plugin99 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3433081
CSS14018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.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
There were not PNG files found in your plugin