84% wp-mail-changer

Code Review | WordPress Mail Changer

WordPress plugin WordPress Mail Changer scored84%from 54 tests.

About plugin

  • Plugin page: wp-mail-changer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Nov 1, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aristath (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /2,222 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: ▼3.47ms] Passed 4 tests

A check of server-side resources used by WordPress Mail Changer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.47 ▼2.19
Dashboard /wp-admin3.32 ▲0.0245.72 ▼2.09
Posts /wp-admin/edit.php3.37 ▲0.0248.61 ▲3.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.88 ▼10.15
Media Library /wp-admin/upload.php3.24 ▲0.0133.38 ▲0.56
Mail Change /wp-admin/options-general.php?page=mail-change3.2131.14

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

Analyzing filesystem and database footprints 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
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WordPress Mail Changer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.33 ▼1.051.82 ▼0.0941.27 ▼3.23
Dashboard /wp-admin2,204 ▲135.80 ▼0.09104.84 ▼10.4538.14 ▼6.56
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0235.16 ▼1.1030.55 ▼5.02
Add New Post /wp-admin/post-new.php1,523 ▼1023.20 ▲0.12682.78 ▲10.4157.96 ▼4.71
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.1996.02 ▼7.4742.74 ▼0.93
Mail Change /wp-admin/options-general.php?page=mail-change8122.0623.2325.89

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

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/wp-mail-changer/wp-mail-changer.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: email

wp-mail-changer/wp-mail-changer.php Passed 13 tests

This is the main PHP file of "WordPress Mail Changer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
A simple and easy way to change the default email address used by WordPress for generic emails.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142373
Markdown120023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin