89% wp-mail-returnpath

Code Review | wp_mail return-path

WordPress plugin wp_mail return-path scored89%from 54 tests.

About plugin

  • Plugin page: wp-mail-returnpath
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Dec 18, 2015
  • Latest release: Feb 22, 2021
  • Number of updates: 20
  • Update frequency: every 95.9 days
  • Top authors: barnz99 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /21,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by wp_mail return-path
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.00 ▲2.25
Dashboard /wp-admin3.32 ▼0.0345.09 ▼12.21
Posts /wp-admin/edit.php3.37 ▲0.0146.12 ▼0.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.86 ▼20.50
Media Library /wp-admin/upload.php3.24 ▲0.0130.27 ▼2.58

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for wp_mail return-path
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.23 ▼0.121.82 ▲0.0146.16 ▲6.65
Dashboard /wp-admin2,195 ▲205.53 ▼0.12109.63 ▲11.8643.61 ▲2.70
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0333.69 ▼6.0938.35 ▲1.98
Add New Post /wp-admin/post-new.php1,526 ▼1423.18 ▲5.05627.29 ▼9.3659.14 ▼22.44
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0996.25 ▲2.4942.98 ▲0.08

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-mail-returnpath === )
The official readme.txt is a good inspiration

wp-mail-returnpath/index.php 92% from 13 tests

The principal PHP file in "wp_mail return-path" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mail-returnpath.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191227

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin