83% wp-change-default-from-email

Code Review | WP Change Default From Email

WordPress plugin WP Change Default From Email scored83%from 54 tests.

About plugin

  • Plugin page: wp-change-default...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Feb 18, 2022
  • Number of updates: 11
  • Update frequency: every 229.8 days
  • Top authors: subodhghulaxe (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

10,000+ active /103,230 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.93ms] Passed 4 tests

Server-side resources used by WP Change Default From Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.36 ▲2.33
Dashboard /wp-admin3.33 ▼0.0251.41 ▼10.44
Posts /wp-admin/edit.php3.44 ▲0.0849.86 ▲2.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.73 ▼18.31
Media Library /wp-admin/upload.php3.25 ▲0.0240.67 ▲4.94
Change From Email /wp-admin/options-general.php?page=wcdfe_settings3.2731.64

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 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

Checking browser requirements for WP Change Default From Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.29 ▼1.321.65 ▼0.1143.68 ▼2.19
Dashboard /wp-admin2,212 ▲245.81 ▼0.04101.94 ▼11.8747.08 ▲8.80
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0040.79 ▲5.1634.09 ▼1.48
Add New Post /wp-admin/post-new.php1,533 ▼922.99 ▲4.68675.25 ▲38.1648.21 ▼4.26
Media Library /wp-admin/upload.php1,394 ▲64.18 ▼0.0596.29 ▼7.7340.59 ▼4.17
Change From Email /wp-admin/options-general.php?page=wcdfe_settings9291.8529.8856.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-change-default-from-email/admin/pages/settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (**Settings Page** - Here you can set 'From Email' and 'From Name'.), #2 (**Help Page** - List of FAQ and support contact information.)
The official readme.txt might help

wp-change-default-from-email/WCDFE.php 85% from 13 tests

The primary PHP file in "WP Change Default From Email" version 1.1.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-change-default-from-email.php" instead of "WCDFE.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected715 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File5116247327
PHP559127273
CSS111115

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.50
▷ Minimum class complexity8.00
▷ Maximum class complexity13.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected