99% username-updater

Code Review | Easy Username Updater

WordPress plugin Easy Username Updater scored 99% from 54 tests.

About plugin

  • Plugin page: username-updater
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.9.2
  • First release: Oct 3, 2016
  • Latest release: Aug 27, 2021
  • Number of updates: 29
  • Update frequency: every 61.7 days
  • Top authors: yogeshpant (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

8,000+ active / 29,892 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Easy Username Updater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0353.36 ▼2.19
Dashboard /wp-admin3.46 ▲0.0633.57 ▲0.03
Posts /wp-admin/edit.php3.69 ▲0.0540.41 ▲3.83
Add New Post /wp-admin/post-new.php6.93 ▼0.0496.11 ▼1,158.84
Media Library /wp-admin/upload.php3.34 ▲0.0424.84 ▼5.66
Username Updater /wp-admin/users.php?page=easy_username_updater3.3122.08
Update /wp-admin/admin.php?page=eup_username_update3.3122.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Username Updater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,780 ▲2616.12 ▲0.335.77 ▼0.812.25 ▼0.07
Dashboard /wp-admin2,904 ▲506.74 ▲0.52118.23 ▼21.36155.54 ▼4.70
Posts /wp-admin/edit.php2,704 ▲112.95 ▼0.2866.16 ▲2.21147.49 ▲10.47
Add New Post /wp-admin/post-new.php1,674 ▼3715.92 ▼5.12392.48 ▼41.52160.08 ▼1.62
Media Library /wp-admin/upload.php1,711 ▲135.71 ▲0.21140.01 ▼12.71184.56 ▼6.72
Username Updater /wp-admin/users.php?page=easy_username_updater1,1963.0470.79132.51
Update /wp-admin/admin.php?page=eup_username_update1,8194.3389.07138.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (The main interface), #2 (Update username)
The official readme.txt might help

username-updater/init.php 92% from 13 tests

The principal PHP file in "Easy Username Updater" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("username-updater.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin270 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png62.90KB17.46KB▼ 72.24%
screenshot-1.png133.96KB48.77KB▼ 63.59%