84% bcc-all-emails

Code Review | BCC All Emails

WordPress plugin BCC All Emails scored84%from 54 tests.

About plugin

  • Plugin page: bcc-all-emails
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 4
  • Update frequency: every 61.5 days
  • Top authors: wphelpdeskuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /727 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
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.95ms] Passed 4 tests

A check of server-side resources used by BCC All Emails
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.42 ▼3.50
Dashboard /wp-admin3.43 ▲0.1248.92 ▲1.40
Posts /wp-admin/edit.php3.54 ▲0.1849.01 ▼2.00
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.24 ▲5.37
Media Library /wp-admin/upload.php3.35 ▲0.1235.67 ▲0.28
BCC All Emails /wp-admin/options-general.php?page=bccemails_settings3.3729.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by BCC All Emails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲714.20 ▼0.531.68 ▼0.2236.07 ▼10.55
Dashboard /wp-admin2,199 ▲325.57 ▼0.1289.86 ▼19.4138.71 ▼5.39
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0638.57 ▼2.9437.18 ▼1.14
Add New Post /wp-admin/post-new.php1,529 ▲323.54 ▲0.52618.19 ▲24.2063.16 ▲11.59
Media Library /wp-admin/upload.php1,404 ▲104.17 ▼0.0495.74 ▼0.5741.87 ▲0.24
BCC All Emails /wp-admin/options-general.php?page=bccemails_settings7992.0026.1327.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 16× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Field' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Textarea.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Choice\\Select' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Choice/Checkbox.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Field' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Choice/TrueFalse.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Field' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Color.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Field' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Image.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Text' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Number/Integer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\TextSecret' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Password.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Choice\\Select' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Choice/Radio.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Field' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/Choice/Select.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WatchTheDot\\Plugins\\Dependencies\\Watchthedot\\Library\\Settings\\Field\\Text' not found in wp-content/plugins/bcc-all-emails/third-party/src/Field/TextSecret.php:9

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 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

bcc-all-emails/bcc-emails.php 92% from 13 tests

The main file in "BCC All Emails" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bcc-all-emails.php" instead of "bcc-emails.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,393 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP21831231,023
Markdown1580281
JavaScript214470
CSS22019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.70
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes20
▷ Abstract classes210.00%
▷ Concrete classes1890.00%
▷ Final classes00.00%
Methods91
▷ Static methods11.10%
▷ Public methods8290.11%
▷ Protected methods00.00%
▷ Private methods99.89%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants360.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 are no PNG files in this plugin