84% change-username

Code Review | Change Username

WordPress plugin Change Username scored84%from 54 tests.

About plugin

  • Plugin page: change-username
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Dec 23, 2022
  • Number of updates: 7
  • Update frequency: every 310.0 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /9,044 total downloads


Plugin footprint 83% from 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.01MB] [CPU: ▼8.32ms] Passed 4 tests

Analyzing server-side resources used by Change Username
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.78 ▼4.56
Dashboard /wp-admin3.33 ▼0.0241.84 ▼20.13
Posts /wp-admin/edit.php3.38 ▲0.0245.57 ▲0.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.79 ▼9.01
Media Library /wp-admin/upload.php3.26 ▲0.0235.42 ▲2.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Change Username
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.131.68 ▼0.2440.34 ▼5.93
Dashboard /wp-admin2,209 ▲214.86 ▼1.00107.20 ▼11.0138.73 ▼6.48
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0138.86 ▲0.0935.05 ▼2.88
Add New Post /wp-admin/post-new.php1,544 ▲2518.22 ▼4.92646.85 ▼12.4556.95 ▲2.15
Media Library /wp-admin/upload.php1,391 ▲94.18 ▼0.12111.57 ▲10.5942.34 ▲1.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-username/change-username.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (The toggle as shown on the "Edit user" page.)
The official readme.txt might help

change-username/change-username.php Passed 13 tests

The entry point to "Change Username" version 1.0.1 is a PHP file that has certain tags in its header comment area
58 characters long description:
Allows you to change the username of your WordPress users.

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
No dangerous file extensions were detected203 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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