84% multiple-email-recipient-woocommerce-orders

Code Review | Multiple email recipient for woo orders

WordPress plugin Multiple email recipient for woo orders scored 84% from 54 tests.

About plugin

  • Plugin page: multiple-email-re...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Apr 28, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: net4earning (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 374 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Multiple email recipient for woo orders
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.59 ▼4.11
Dashboard /wp-admin3.31 ▲0.0051.27 ▲1.86
Posts /wp-admin/edit.php3.36 ▲0.0049.07 ▼2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.78 ▼13.33
Media Library /wp-admin/upload.php3.23 ▲0.0035.56 ▲1.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple email recipient for woo orders
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.381.77 ▼0.1042.80 ▼6.08
Dashboard /wp-admin2,209 ▲215.84 ▼0.07107.16 ▲5.5743.87 ▼2.78
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0039.27 ▼3.9535.84 ▼0.86
Add New Post /wp-admin/post-new.php1,519 ▲523.51 ▲5.94645.14 ▲16.1459.04 ▲10.55
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0395.74 ▼0.1740.49 ▼2.33

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/multiple-email-recipient-woocommerce-orders/multiple-email-recipient-woo-orders.php:15
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/multiple-email-recipient-woocommerce-orders/multiple-email-recipient-woo-orders.php on line 14
    • > 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-recipient-woocommerce-orders/multiple-email-recipient-woo-orders.php on line 14
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multiple-email-recipient-woocommerce-orders/multiple-email-recipient-woo-orders.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

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

The main file in "Multiple email recipient for woo orders" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multiple-email-recipient-woocommerce-orders.php" instead of "multiple-email-recipient-woo-orders.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181435

PHP code Passed 2 tests

A brief analysis 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.33
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin