84% wp-email-changer

Code Review | WP Email Changer

WordPress plugin WP Email Changer scored84%from 54 tests.

About plugin

  • Plugin page: wp-email-changer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 20, 2017
  • Latest release: Jul 20, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: susonwaiba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.10ms] Passed 4 tests

Analyzing server-side resources used by WP Email Changer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.56 ▼2.12
Dashboard /wp-admin3.32 ▲0.0249.75 ▼0.62
Posts /wp-admin/edit.php3.37 ▲0.0255.03 ▲3.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.33 ▼5.24
Media Library /wp-admin/upload.php3.25 ▲0.0235.55 ▼0.42
WP Email Changer /wp-admin/options-general.php?page=wp-email-changer3.2131.11

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Email Changer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▲0.011.77 ▲0.0738.59 ▼3.09
Dashboard /wp-admin2,199 ▲225.63 ▼0.0196.25 ▲1.7142.65 ▲2.02
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0439.15 ▼0.3837.03 ▼3.44
Add New Post /wp-admin/post-new.php1,532 ▲423.18 ▼0.05605.62 ▼81.0758.27 ▼1.75
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.02104.92 ▼3.8047.34 ▲2.53
WP Email Changer /wp-admin/options-general.php?page=wp-email-changer9062.1522.2028.51

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 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-email-changer/wp-email-changer.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: wp, email, default wp email changer, wp-email-changer, suson waiba...

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

This is the main PHP file of "WP Email 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
82 characters long description:
Just a plugin which will change default wordpress@domain.com to anything you wish.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11722104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin