84% multi-admin-emails

Code Review | Multiple Admin Emails

WordPress plugin Multiple Admin Emails scored84%from 54 tests.

About plugin

  • Plugin page: multi-admin-emails
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 7, 2014
  • Latest release: Nov 7, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ferozjaf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,209 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.16ms] Passed 4 tests

An overview of server-side resources used by Multiple Admin Emails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.93 ▼2.33
Dashboard /wp-admin3.32 ▼0.0244.23 ▼14.59
Posts /wp-admin/edit.php3.37 ▲0.0244.93 ▼2.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.59 ▼16.79
Media Library /wp-admin/upload.php3.24 ▲0.0236.45 ▲4.09
Multi Admin Emails /wp-admin/options-general.php?page=admin-multi-emails3.2133.16

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

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

Browser metrics Passed 4 tests

Multiple Admin Emails: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.66 ▼0.561.67 ▼0.0437.99 ▼4.44
Dashboard /wp-admin2,210 ▲255.88 ▲1.00107.19 ▲3.4640.64 ▼2.41
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0139.72 ▲5.5534.20 ▼2.29
Add New Post /wp-admin/post-new.php1,547 ▲2718.12 ▼4.93598.56 ▼39.7365.63 ▲6.44
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.0194.66 ▼3.0941.07 ▼1.68
Multi Admin Emails /wp-admin/options-general.php?page=admin-multi-emails7952.0123.1824.50

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • multi_email_ids
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-admin-emails/multi-admin-emails.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/multi-admin-emails/email-form.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === multi-admin-emails === )
  • Screenshots: Please add an image for screenshot #1 (Screenshots. http://www.bilogicit.com/multi-admin-emails/)
The official readme.txt might help

multi-admin-emails/multi-admin-emails.php Passed 13 tests

The entry point to "Multiple Admin Emails" version 1.0.1 is a PHP file that has certain tags in its header comment area
43 characters long description:
Add multiple admin emails for notification.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin68 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141068

PHP code Passed 2 tests

A brief analysis 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.13
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin