83% admin-email-address-changer

Code Review | Admin Email Address Changer

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

About plugin

  • Plugin page: admin-email-addre...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: Jul 28, 2022
  • Number of updates: 3
  • Update frequency: every 143.0 days
  • Top authors: switcorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Admin Email Address Changer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0252.59 ▲6.66
Dashboard /wp-admin3.32 ▲0.0151.56 ▼6.15
Posts /wp-admin/edit.php3.37 ▲0.0166.06 ▲7.04
Add New Post /wp-admin/post-new.php5.92 ▲0.03101.87 ▲2.62
Media Library /wp-admin/upload.php3.24 ▲0.0138.15 ▲0.31
Admin Email /wp-admin/options-general.php?page=admin-email-address-changer3.2139.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Email Address Changer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲11613.63 ▲0.415.78 ▲1.0042.20 ▼2.00
Dashboard /wp-admin2,214 ▲85.80 ▲0.9297.26 ▼5.3236.33 ▼1.15
Posts /wp-admin/edit.php2,097 ▲52.00 ▲0.0136.63 ▼12.1532.94 ▼3.34
Add New Post /wp-admin/post-new.php1,521 ▼1423.08 ▼0.24655.21 ▼63.3249.63 ▼7.12
Media Library /wp-admin/upload.php1,393 ▲84.23 ▲0.0299.92 ▼8.8040.74 ▼5.77
Admin Email /wp-admin/options-general.php?page=admin-email-address-changer8032.0230.0330.93

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 2× PHP files output text when accessed directly:
    • > /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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === admin-email-address-changer === )
  • Screenshots: Screenshot #1 (Quick WordPress Admin Email Change Without any confirmation) image missing
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

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

The primary PHP file in "Admin Email Address Changer" version 1.0.1 is used by WordPress to initiate all plugin functionality
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
Everything looks great! No dangerous files found in this plugin250 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12135541204
PO File191140
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued 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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin