89% default-email-and-sender-name-in-wp

Code Review | Default Email Sender Name in WP

WordPress plugin Default Email Sender Name in WP scored89%from 54 tests.

About plugin

  • Plugin page: default-email-and...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7
  • WordPress version: 6.3.1
  • First release: Jun 27, 2021
  • Latest release: Jul 6, 2021
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: shahala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /331 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.01MB] [CPU: ▼4.39ms] Passed 4 tests

This is a short check of server-side resources used by Default Email Sender Name in WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.73 ▼3.62
Dashboard /wp-admin3.31 ▲0.0144.60 ▼11.77
Posts /wp-admin/edit.php3.36 ▲0.0148.79 ▼1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.74 ▼1.14
Media Library /wp-admin/upload.php3.23 ▲0.0034.70 ▲0.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Default Email Sender Name in WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.81 ▲0.431.77 ▼0.1341.33 ▼2.33
Dashboard /wp-admin2,206 ▲154.85 ▼0.05110.22 ▲7.8540.55 ▼1.96
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0139.63 ▼0.0435.12 ▼0.24
Add New Post /wp-admin/post-new.php1,534 ▲123.08 ▼0.00649.16 ▲12.8656.18 ▲3.36
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.00109.00 ▲3.4844.93 ▲2.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 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: email sender, email, wordpress

default-email-and-sender-name-in-wp/Modify-default-email-and-sender-name-in-wordpress.php 77% from 13 tests

The main PHP file in "Default Email Sender Name in WP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("default-email-and-sender-name-in-wp.php" instead of "Modify-default-email-and-sender-name-in-wordpress.php")

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
Everything looks great! No dangerous files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161912

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin