84% admin-email-as-from-address

Code Review | Admin Email As From Address

WordPress plugin Admin Email As From Address scored84%from 54 tests.

About plugin

  • Plugin page: admin-email-as-fr...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Jun 12, 2018
  • Number of updates: 7
  • Update frequency: every 92.1 days
  • Top authors: BjornW (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Admin Email As From Address
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.52 ▼3.79
Dashboard /wp-admin3.33 ▼0.0250.43 ▼15.20
Posts /wp-admin/edit.php3.38 ▲0.0249.93 ▼4.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.38 ▼16.50
Media Library /wp-admin/upload.php3.25 ▲0.0239.23 ▲2.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Email As From Address
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.46 ▼0.151.73 ▲0.1743.38 ▼2.96
Dashboard /wp-admin2,198 ▲185.66 ▲0.0493.46 ▲2.5341.61 ▲2.65
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0235.72 ▼6.0635.45 ▼0.78
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.33679.04 ▼9.1261.05 ▼12.62
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0596.36 ▼10.2747.56 ▲0.93

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 detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-email-as-from-address/admin-email-as-from-address.php:30

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: admin email, from email address, from email sender, from email name, email

admin-email-as-from-address/admin-email-as-from-address.php Passed 13 tests

The primary PHP file in "Admin Email As From Address" version 1.2 is used by WordPress to initiate all plugin functionality
104 characters long description:
Use the admin email address and from name set in Settings->General as From sender email name and address

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
Good job! No executable or dangerous file extensions detected54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1187943
Markdown19011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

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