94% admin-email-as-from-address

Code Review | Admin Email As From Address

WordPress plugin Admin Email As From Address scored 94% 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: 5.9.2
  • 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

100+ active / 1,694 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Admin Email As From Address
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0257.41 ▲6.04
Dashboard /wp-admin3.44 ▲0.0332.65 ▼1.01
Posts /wp-admin/edit.php3.67 ▲0.0337.61 ▼0.08
Add New Post /wp-admin/post-new.php6.91 ▼0.0795.69 ▼1,200.12
Media Library /wp-admin/upload.php3.32 ▲0.0227.87 ▲3.64

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Email As From Address
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.80 ▲0.066.09 ▼0.012.55 ▲0.34
Dashboard /wp-admin2,895 ▲376.07 ▼0.13120.14 ▼11.78160.03 ▼4.01
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0062.60 ▼1.56138.89 ▼3.33
Add New Post /wp-admin/post-new.php1,758 ▲9721.36 ▲4.83466.17 ▲58.30159.63 ▲4.34
Media Library /wp-admin/upload.php1,698 ▼35.51 ▲0.02140.09 ▲2.17191.21 ▲7.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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
Even though everything seems fine, this is not 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
The following issues need your attention
  • 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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: admin email, email, from email name, from email sender, from email address

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

Analyzing the main PHP file in "Admin Email As From Address" version 1.2
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 | 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 plugin54 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
Great job! No cyclomatic complexity issues were detected in this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin