90% admin-email-carbon-copy

Code Review | Admin Email Carbon Copy

WordPress plugin Admin Email Carbon Copy scored90%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: 6.3.1
  • 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 /802 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Admin Email Carbon Copy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼2.62
Dashboard /wp-admin3.31 ▲0.0152.51 ▼1.81
Posts /wp-admin/edit.php3.36 ▲0.0145.52 ▼5.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.66 ▼5.27
Media Library /wp-admin/upload.php3.23 ▲0.0033.64 ▼4.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Email Carbon Copy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.67 ▲0.411.99 ▼0.3942.97 ▼3.44
Dashboard /wp-admin2,195 ▲215.63 ▲0.1395.74 ▼8.8746.99 ▲3.00
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0235.21 ▼4.5336.06 ▼1.11
Add New Post /wp-admin/post-new.php1,535 ▲918.19 ▼4.82612.33 ▼89.9960.67 ▲3.18
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0098.27 ▼13.2346.40 ▼1.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: email, copy, admin

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

The primary PHP file in "Admin Email Carbon Copy" version 1.0 is used by WordPress to initiate all plugin functionality
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13914

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin