94% fix-email-return-path

Code Review | Fix Email Return-Path

WordPress plugin Fix Email Return-Path scored 94% from 54 tests.

About plugin

  • Plugin page: fix-email-return-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.1
  • WordPress version: 5.8.1
  • First release: Apr 10, 2017
  • Latest release: Sep 3, 2020
  • Number of updates: 4
  • Update frequency: every 310.5 days
  • Top authors: mishalpatel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 641 total downloads


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: ▼138.35ms] Passed 4 tests

Server-side resources used by Fix Email Return-Path
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.50 ▲15.35
Dashboard /wp-admin3.06 ▲0.0148.71 ▲5.81
Posts /wp-admin/edit.php3.12 ▲0.0147.76 ▼2.01
Add New Post /wp-admin/post-new.php5.42 ▼0.0197.95 ▼558.30
Media Library /wp-admin/upload.php3.01 ▲0.0035.57 ▲1.09

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Fix Email Return-Path
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.94 ▲0.428.34 ▼0.4448.46 ▼0.19
Dashboard /wp-admin2,966 ▲296.07 ▲0.12155.24 ▲0.90111.26 ▼0.80
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0173.13 ▲2.4891.50 ▲0.05
Add New Post /wp-admin/post-new.php1,683 ▼2,04118.56 ▲3.31434.82 ▼42.61119.32 ▲4.95
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.02199.42 ▲19.42139.97 ▲17.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fix-email-return-path/fix-email-return-path.php:12

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: return-path, sender, phpmailer

fix-email-return-path/fix-email-return-path.php Passed 13 tests

The primary PHP file in "Fix Email Return-Path" version 1.0.5 is used by WordPress to initiate all plugin functionality
92 characters long description:
This plugin updates the Return-Path header of all outgoing emails to the FROM email address.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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