WordPress plugin Change Admin Email scored 94% from 54 tests.

About plugin

  • Plugin page: change-admin-emai...
  • Plugin version: 3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.8.1
  • First release: Mar 15, 2018
  • Latest release: Aug 13, 2021
  • Number of updates: 16
  • Update frequency: every 77.9 days
  • Top authors: johndeebdd (81.25%)deployer (25%)

Code review

54 tests

User reviews

49 reviews

Install metrics

10,000+ active / 60,883 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Change Admin Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0333.52 ▲0.26
Dashboard /wp-admin3.09 ▲0.0339.31 ▼10.80
Posts /wp-admin/edit.php3.14 ▲0.0351.67 ▲10.38
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.43 ▼556.20
Media Library /wp-admin/upload.php3.03 ▲0.0335.72 ▼0.38

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Change Admin Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.42 ▲0.959.04 ▼0.8652.79 ▲4.60
Dashboard /wp-admin2,967 ▲335.90 ▼0.10136.61 ▼19.89128.79 ▲18.27
Posts /wp-admin/edit.php2,736 ▼32.71 ▲0.0168.11 ▼0.4689.52 ▼13.71
Add New Post /wp-admin/post-new.php1,615 ▼6820.91 ▲2.13294.73 ▼96.23111.73 ▼15.06
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.04147.62 ▼10.53124.43 ▼4.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ChangeAdminEmail\\add_action() in wp-content/plugins/change-admin-email-setting-without-outbound-email/change-admin-email.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: rollback, admin_email, email, change_admin_email

change-admin-email-setting-without-outbound-email/change-admin-email.php 85% from 13 tests

"Change Admin Email" version 3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("change-admin-email-setting-without-outbound-email.php" instead of "change-admin-email.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin101 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11819101

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.20
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods535.71%
▷ Public methods1392.86%
▷ Protected methods17.14%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin