89% username-updater

Code Review | Easy Username Updater

WordPress plugin Easy Username Updater scored89%from 54 tests.

About plugin

  • Plugin page: username-updater
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Sep 4, 2023
  • Number of updates: 39
  • Update frequency: every 64.8 days
  • Top authors: yogeshpant (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

10,000+ active /61,939 total downloads


Plugin footprint 83% from 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: ▼6.20ms] Passed 4 tests

An overview of server-side resources used by Easy Username Updater
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.78 ▼1.89
Dashboard /wp-admin3.35 ▲0.0152.15 ▼15.33
Posts /wp-admin/edit.php3.41 ▲0.0548.14 ▼2.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.66 ▼5.05
Media Library /wp-admin/upload.php3.28 ▲0.0536.91 ▼1.55
Update /wp-admin/admin.php?page=eup_username_update3.2433.96
Username Updater /wp-admin/users.php?page=easy_username_updater3.2542.20

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Easy Username Updater: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6713.60 ▼0.651.51 ▼0.3742.66 ▼2.52
Dashboard /wp-admin2,237 ▲315.25 ▼0.63105.42 ▼20.8638.23 ▼7.69
Posts /wp-admin/edit.php2,095 ▼52.52 ▲0.5249.45 ▲10.3032.25 ▼1.85
Add New Post /wp-admin/post-new.php1,550 ▲518.40 ▼4.84655.47 ▼60.1873.39 ▲11.96
Media Library /wp-admin/upload.php1,413 ▲164.52 ▲0.27122.21 ▲5.6445.46 ▼2.84
Update /wp-admin/admin.php?page=eup_username_update1,6263.4558.6148.52
Username Updater /wp-admin/users.php?page=easy_username_updater9522.5166.7438.03

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The main interface), #2 (Update username)
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main PHP script in "Easy Username Updater" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin416 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
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 functions2100.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-1.png133.96KB48.77KB▼ 63.59%
screenshot-2.png62.90KB17.46KB▼ 72.24%