84% multiple-admin-email-addresses

Code Review | Multiple Admin Email Addresses

WordPress plugin Multiple Admin Email Addresses scored84%from 54 tests.

About plugin

  • Plugin page: multiple-admin-em...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2017
  • Latest release: May 21, 2019
  • Number of updates: 13
  • Update frequency: every 59.3 days
  • Top authors: daberelay (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /8,810 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼1.50ms] Passed 4 tests

This is a short check of server-side resources used by Multiple Admin Email Addresses
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.76 ▼3.27
Dashboard /wp-admin3.33 ▲0.0249.46 ▼1.31
Posts /wp-admin/edit.php3.38 ▲0.0248.65 ▼2.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.12 ▲0.98
Media Library /wp-admin/upload.php3.25 ▲0.0239.57 ▲0.66

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Multiple Admin Email Addresses
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.061.91 ▲0.1341.57 ▲1.15
Dashboard /wp-admin2,198 ▲245.59 ▲0.0394.92 ▼0.1942.69 ▼1.63
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0641.11 ▼0.2836.14 ▼1.07
Add New Post /wp-admin/post-new.php1,526 ▼222.99 ▼0.28668.83 ▲17.7654.37 ▼0.47
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.01101.71 ▼7.9046.38 ▲1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/multiple-admin-email-addresses/mulitple-admin-email-addresses.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (not applicable)
Please take inspiration from this readme.txt

multiple-admin-email-addresses/mulitple-admin-email-addresses.php 92% from 13 tests

The main file in "Multiple Admin Email Addresses" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multiple-admin-email-addresses.php" instead of "mulitple-admin-email-addresses.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116978

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected