84% change-default-email-sender-name

Code Review | Change Default Email Sender Name

WordPress plugin Change Default Email Sender Name scored84%from 54 tests.

About plugin

  • Plugin page: change-default-em...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 15
  • Update frequency: every 10.9 days
  • Top authors: tusharknovator (80%)mitalideva (26.67%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼2.83MB] [CPU: ▼553,004.00ms] Passed 4 tests

Analyzing server-side resources used by Change Default Email Sender Name
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▼11.3435.97 ▼2,211,979.12
Dashboard /wp-admin3.37 ▼0.0248.26 ▼20.68
Posts /wp-admin/edit.php3.48 ▲0.0855.64 ▲4.13
Add New Post /wp-admin/post-new.php5.95 ▲0.0288.85 ▼20.34
Media Library /wp-admin/upload.php3.29 ▲0.0244.88 ▲10.66
Change Sender Detail /wp-admin/options-general.php?page=change-sender-name-setting3.2631.42

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Change Default Email Sender Name
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.37 ▲0.111.67 ▼0.3839.39 ▼9.42
Dashboard /wp-admin2,199 ▲195.57 ▲0.0693.70 ▲6.6643.24 ▼1.20
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.1238.43 ▼1.7835.73 ▼0.50
Add New Post /wp-admin/post-new.php1,529 ▲322.98 ▼0.17689.90 ▲27.5753.28 ▲0.88
Media Library /wp-admin/upload.php1,401 ▲14.15 ▼0.06103.74 ▲2.2740.92 ▼5.81
Change Sender Detail /wp-admin/options-general.php?page=change-sender-name-setting7991.9927.2129.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=change-sender-name-setting
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=change-sender-name-setting
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: sender name, email sender, change default mail sender name, sender, outgoing email

change-default-email-sender-name/change-default-email-sender.php 92% from 13 tests

The main PHP file in "Change Default Email Sender Name" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("change-default-email-sender-name.php" instead of "change-default-email-sender.php")

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
Success! There were no dangerous files found in this plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2247786

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin