90% outgoing-mail-identity-editor

Code Review | Outgoing Mail Identity Editor

WordPress plugin Outgoing Mail Identity Editor scored90%from 54 tests.

About plugin

  • Plugin page: outgoing-mail-ide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2019
  • Latest release: Nov 28, 2019
  • Number of updates: 8
  • Update frequency: every 33.3 days
  • Top authors: adambradford (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /744 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.01MB] [CPU: ▼7.91ms] Passed 4 tests

An overview of server-side resources used by Outgoing Mail Identity Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.33 ▼8.41
Dashboard /wp-admin3.33 ▼0.0248.64 ▼15.77
Posts /wp-admin/edit.php3.38 ▲0.0249.37 ▼1.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.20 ▼5.87
Media Library /wp-admin/upload.php3.25 ▲0.0239.77 ▲4.42
Outgoing Mail Identity Editor /wp-admin/options-general.php?page=omie_outgoing_mail3.2231.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Outgoing Mail Identity Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.251.62 ▼0.1640.34 ▼0.47
Dashboard /wp-admin2,193 ▲285.61 ▲0.0689.13 ▼4.6241.37 ▼6.15
Posts /wp-admin/edit.php2,083 ▼172.03 ▲0.0934.87 ▼3.6832.30 ▼4.08
Add New Post /wp-admin/post-new.php1,531 ▲523.00 ▼0.39632.23 ▲15.5251.49 ▼9.46
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0796.05 ▼11.4543.19 ▼3.63
Outgoing Mail Identity Editor /wp-admin/options-general.php?page=omie_outgoing_mail8002.0125.0529.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: mail sender name, email, change from mail, mail sender address, mail...

outgoing-mail-identity-editor/outgoing-mail-identity-editor.php Passed 13 tests

The principal PHP file in "Outgoing Mail Identity Editor" v. 1.0 is loaded by WordPress automatically on each request
93 characters long description:
Change the default name and email address on outgoing WordPress emails (e.g. Password Reset).

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
Everything looks great! No dangerous files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1321776

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin