93% admin-email-address-changer

Code Review | Admin Email Address Changer

WordPress plugin Admin Email Address Changer scored 93% from 54 tests.

About plugin

  • Plugin page: admin-email-addre...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7
  • WordPress version: 5.9.2
  • First release: May 25, 2021
  • Latest release: May 25, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: switcorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 209 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Admin Email Address Changer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1258.55 ▼2.34
Dashboard /wp-admin3.47 ▲0.0638.51 ▲1.94
Posts /wp-admin/edit.php3.70 ▲0.0544.22 ▲1.13
Add New Post /wp-admin/post-new.php6.95 ▼0.02102.39 ▼1,173.71
Media Library /wp-admin/upload.php3.35 ▲0.0431.00 ▼4.99
Admin Email /wp-admin/options-general.php?page=admin-email-address-changer3.3226.74

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Email Address Changer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,881 ▲15916.72 ▲1.008.46 ▲2.642.38 ▲0.08
Dashboard /wp-admin2,901 ▲476.23 ▲0.04120.23 ▼16.21154.19 ▼8.09
Posts /wp-admin/edit.php2,697 ▲63.36 ▲0.1264.07 ▼0.33143.71 ▼5.60
Add New Post /wp-admin/post-new.php1,673 ▼7920.85 ▼0.78426.46 ▼10.20159.20 ▼0.72
Media Library /wp-admin/upload.php1,702 ▲45.54 ▲0.03146.67 ▲2.27186.00 ▼21.10
Admin Email /wp-admin/options-general.php?page=admin-email-address-changer1,0132.4154.49113.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-email-address-changer/admin/partials/admin-email-address-changer-admin-display.php
    • > /wp-content/plugins/admin-email-address-changer/public/partials/admin-email-address-changer-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === admin-email-address-changer === )
  • Donate link: Invalid url: ""
  • Screenshots: Screenshot #1 (Quick WordPress Admin Email Change Without any confirmation) image missing
Please take inspiration from this readme.txt

admin-email-address-changer/admin-email-address-changer.php Passed 13 tests

The entry point to "Admin Email Address Changer" version 1.0.0 is a PHP file that has certain tags in its header comment area
69 characters long description:
Change Admin Email directly from dashboard without email confirmation

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected250 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12135541204
PO File191140
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.71
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin