84% wp-from-email

Code Review | Change From Email

WordPress plugin Change From Email scored84%from 54 tests.

About plugin

  • Plugin page: wp-from-email
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.9
  • WordPress version: 6.3.1
  • First release: Jun 26, 2008
  • Latest release: Mar 28, 2022
  • Number of updates: 8
  • Update frequency: every 627.9 days
  • Top authors: mariankadanka (87.5%)skullbit (25%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /26,948 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.61ms] Passed 4 tests

This is a short check of server-side resources used by Change From Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.08 ▲0.94
Dashboard /wp-admin3.34 ▲0.0349.19 ▼0.36
Posts /wp-admin/edit.php3.39 ▲0.0348.55 ▼4.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.75 ▼22.99
Media Library /wp-admin/upload.php3.26 ▲0.0338.78 ▲3.19
Change From Email /wp-admin/options-general.php?page=wp_from_email3.2029.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Change From Email
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.101.82 ▲0.0840.81 ▼4.38
Dashboard /wp-admin2,193 ▲165.52 ▼0.1087.52 ▲2.0739.72 ▼5.08
Posts /wp-admin/edit.php2,101 ▼21.96 ▲0.0035.75 ▼3.2536.79 ▼0.74
Add New Post /wp-admin/post-new.php1,529 ▲123.55 ▲0.30679.26 ▲61.7855.49 ▼3.54
Media Library /wp-admin/upload.php1,398 ▼54.23 ▲0.0294.64 ▼11.7346.65 ▲0.04
Change From Email /wp-admin/options-general.php?page=wp_from_email7992.0027.8630.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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 server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_from_email
    • > Notice in wp-content/plugins/wp-from-email/wp-from-email.php+110
    Trying to access array offset on value of type bool

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
No output text or server-side errors detected 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)
Everything seems fine on the user side

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 require attention:
  • Screenshots: Screenshot #1 (Change From Email settings page) image not found
You can look at the official readme.txt

wp-from-email/wp-from-email.php Passed 13 tests

The primary PHP file in "Change From Email" version 1.2.1 is used by WordPress to initiate all plugin functionality
92 characters long description:
Override the default From: 'WordPress <wordpress@mydomain.com>' name and email address

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
No dangerous file extensions were detected99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2303099

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png33.17KB13.98KB▼ 57.85%