100% admin-email-carbon-copy

Code Review | Admin Email Carbon Copy

WordPress plugin Admin Email Carbon Copy scored 100% from 54 tests.

About plugin

  • Plugin page: admin-email-carbo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 5.9.2
  • First release: Mar 29, 2018
  • Latest release: Mar 29, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: anewholm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 602 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Admin Email Carbon Copy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0151.02 ▼1.93
Dashboard /wp-admin3.41 ▲0.0133.26 ▲0.80
Posts /wp-admin/edit.php3.65 ▲0.0138.61 ▲1.52
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.37 ▼1,188.58
Media Library /wp-admin/upload.php3.30 ▲0.0024.12 ▼1.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Email Carbon Copy: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.88 ▼0.105.81 ▼1.632.17 ▼0.55
Dashboard /wp-admin2,895 ▲376.14 ▼0.05118.24 ▼23.39157.62 ▼7.80
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0165.85 ▲1.64139.08 ▼3.44
Add New Post /wp-admin/post-new.php1,667 ▼8519.25 ▼2.55397.54 ▼59.12159.91 ▼19.16
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.01137.57 ▼19.86184.11 ▼8.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: copy, email, admin

admin-email-carbon-copy/admin-email-carbon-copy.php Passed 13 tests

This is the main PHP file of "Admin Email Carbon Copy" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Copies the admin user in on all emails

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13914

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin