79% username-editor

Code Review | Username Editor

WordPress plugin Username Editor scored79%from 54 tests.

About plugin

  • Plugin page: username-editor
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Dec 17, 2020
  • Number of updates: 21
  • Update frequency: every 1.4 days
  • Top authors: websiteguiderteam1618 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /504 total downloads

Benchmarks

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
Install script ran successfully

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

An overview of server-side resources used by Username Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.80 ▼2.67
Dashboard /wp-admin3.33 ▼0.0153.81 ▼12.18
Posts /wp-admin/edit.php3.38 ▲0.0353.14 ▼0.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.69 ▼19.98
Media Library /wp-admin/upload.php3.25 ▲0.0339.46 ▲1.22
Change Username /wp-admin/admin.php?page=wg_ue_change_username3.2032.70
Users /wp-admin/admin.php?page=wg_ue_user_list3.2234.06
Username Editor /wp-admin/admin.php?page=wg_ue3.2234.25

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Username Editor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲8013.49 ▼0.881.80 ▼0.3145.81 ▲1.54
Dashboard /wp-admin2,255 ▲495.82 ▲0.95101.38 ▼6.6142.41 ▲1.41
Posts /wp-admin/edit.php2,131 ▲282.02 ▼0.0336.14 ▼5.3235.15 ▲1.04
Add New Post /wp-admin/post-new.php1,555 ▲2123.16 ▼0.34677.42 ▲60.9946.47 ▼15.12
Media Library /wp-admin/upload.php1,437 ▲404.23 ▲0.0396.41 ▼8.4844.00 ▼0.60
Change Username /wp-admin/admin.php?page=wg_ue_change_username7952.0324.0928.99
Users /wp-admin/admin.php?page=wg_ue_user_list8182.0725.4426.22
Username Editor /wp-admin/admin.php?page=wg_ue1,0382.0427.1641.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wg_ue_change_username
    • > Notice in wp-content/plugins/username-editor/inc/callback-functions.php+191
    Undefined index: username_update

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/username-editor/inc/admin-settings.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/username-editor/inc/ajax-handler.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: username manager, username editor, username edit, username-change, username change

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

Analyzing the main PHP file in "Username Editor" version 1.2
32 characters long description:
Change WordPress username easily

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,146 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP712870689
CSS1692338
JavaScript1144119

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin