90% change-mail-sender

Code Review | Change Mail Sender

WordPress plugin Change Mail Sender scored90%from 54 tests.

About plugin

  • Plugin page: change-mail-sender
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2019
  • Latest release: Oct 2, 2019
  • Number of updates: 8
  • Update frequency: every 11.1 days
  • Top authors: pratik27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /604 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
Installer ran successfully

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

A check of server-side resources used by Change Mail Sender
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.41 ▼0.21
Dashboard /wp-admin3.32 ▼0.0349.19 ▼20.75
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▼3.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.02 ▼25.40
Media Library /wp-admin/upload.php3.24 ▲0.0140.06 ▲4.03

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Change Mail Sender
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.241.79 ▲0.1144.46 ▲2.58
Dashboard /wp-admin2,195 ▲185.57 ▼0.0592.23 ▲2.6639.49 ▼1.64
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0935.66 ▼5.1333.99 ▲0.22
Add New Post /wp-admin/post-new.php1,528 ▲223.09 ▲0.11653.73 ▼10.1853.77 ▼5.88
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.05104.52 ▲1.4447.02 ▲2.43

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Donate link: Invalid URI ("#")
The official readme.txt might help

change-mail-sender/change-mail-sender.php Passed 13 tests

The entry point to "Change Mail Sender" version 1.0.0 is a PHP file that has certain tags in its header comment area
82 characters long description:
Change Mail Sender automatically addes Site name as Sender name in outgoing emals.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin48 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3267748

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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