88% cc-bcc-for-woocommerce-order-emails

Code Review | CC & BCC for Woocommerce Order Emails

WordPress plugin CC & BCC for Woocommerce Order Emails scored 88% from 54 tests.

About plugin

  • Plugin page: cc-bcc-for-woocom...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 5.8.1
  • First release: Sep 16, 2016
  • Latest release: Apr 1, 2017
  • Number of updates: 15
  • Update frequency: every 13.1 days
  • Top authors: dcurasi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 9,557 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.92ms] Passed 4 tests

Server-side resources used by CC & BCC for Woocommerce Order Emails
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0134.03 ▼0.72
Dashboard /wp-admin3.08 ▲0.0343.50 ▲1.38
Posts /wp-admin/edit.php3.13 ▲0.0345.28 ▲2.13
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.51 ▼561.73
Media Library /wp-admin/upload.php3.03 ▲0.0232.18 ▼2.59
CC & BCC /wp-admin/admin.php?page=dc-wech-menu-page3.0826.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 19 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CC & BCC for Woocommerce Order Emails
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲12315.89 ▲0.379.38 ▲1.3947.53 ▼6.30
Dashboard /wp-admin2,989 ▲585.87 ▼0.05137.66 ▼8.58101.38 ▼16.95
Posts /wp-admin/edit.php2,756 ▲202.70 ▲0.0368.33 ▲1.7196.74 ▲9.14
Add New Post /wp-admin/post-new.php1,680 ▼318.81 ▲0.09354.06 ▼5.57110.13 ▼1.07
Media Library /wp-admin/upload.php1,824 ▲145.03 ▲0.01144.54 ▼14.84124.21 ▲8.08
CC & BCC /wp-admin/admin.php?page=dc-wech-menu-page1,4222.0961.8192.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/cc-bcc-for-woocommerce-order-emails/public/partials/dc-cc-bcc-woe-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cc-bcc-for-woocommerce-order-emails/admin/partials/dc-cc-bcc-woe-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

cc-bcc-for-woocommerce-order-emails/dc-cc-bcc-woe.php 85% from 13 tests

This is the main PHP file of "CC & BCC for Woocommerce Order Emails" version 1.4.1, 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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cc-bcc-for-woocommerce-order-emails.php" instead of "dc-cc-bcc-woe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected585 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File1283184

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.43
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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