84% wc-multiple-email-recipients

Code Review | WC Multiple Email Recipients

WordPress plugin WC Multiple Email Recipients scored84%from 54 tests.

About plugin

  • Plugin page: wc-multiple-email...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 3, 2016
  • Latest release: Jun 20, 2023
  • Number of updates: 92
  • Update frequency: every 28.7 days
  • Top authors: conschneider (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

6,000+ active /34,296 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.06MB] [CPU: ▼5.25ms] Passed 4 tests

This is a short check of server-side resources used by WC Multiple Email Recipients
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.90 ▼2.56
Dashboard /wp-admin3.36 ▲0.0647.84 ▼1.95
Posts /wp-admin/edit.php3.41 ▲0.0650.42 ▲1.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.19 ▼14.35
Media Library /wp-admin/upload.php3.28 ▲0.0639.57 ▼2.14
WC Multiple Email Recipients /wp-admin/options-general.php?page=wcme-options3.2631.97

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Multiple Email Recipients
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.19 ▼1.191.58 ▼0.3343.69 ▲1.56
Dashboard /wp-admin2,210 ▲224.84 ▼1.06101.88 ▼11.3939.17 ▲0.68
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.0134.09 ▼7.6637.56 ▼1.00
Add New Post /wp-admin/post-new.php1,517 ▼217.73 ▼5.34664.96 ▲39.9657.93 ▲11.37
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0198.79 ▼4.4850.96 ▲3.70
WC Multiple Email Recipients /wp-admin/options-general.php?page=wcme-options1,0932.0227.8631.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-multiple-email-recipients/includes/functions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wc-multiple-email-recipients/includes/functions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-multiple-email-recipients/wc-multiple-email-recipients.php:16
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wc-multiple-email-recipients/includes/functions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-multiple-email-recipients/includes/admin-page.php:265
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wc-multiple-email-recipients/includes/functions.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wc-multiple-email-recipients === )
Please take inspiration from this readme.txt

wc-multiple-email-recipients/wc-multiple-email-recipients.php Passed 13 tests

The main file in "WC Multiple Email Recipients" v. 1.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
Allows for multiple recipients for WooCommerce E-Mails. Supports WooCommerce Bookings and WooCommerce Subscriptions.

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
There were no executable files found in this plugin295 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP313654288
Markdown1607

PHP code Passed 2 tests

An overview of 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.45
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin