89% username-update

Code Review | Username Update

WordPress plugin Username Update scored89%from 54 tests.

About plugin

  • Plugin page: username-update
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2023
  • Latest release: Oct 4, 2023
  • Number of updates: 12
  • Update frequency: every 2.4 days
  • Top authors: dhavalpanchal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /81 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.40ms] Passed 4 tests

A check of server-side resources used by Username Update
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.86 ▼3.01
Dashboard /wp-admin3.36 ▲0.0649.86 ▼4.12
Posts /wp-admin/edit.php3.47 ▲0.1253.75 ▲0.50
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.45 ▲1.31
Media Library /wp-admin/upload.php3.28 ▲0.0637.39 ▼2.95

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Username Update
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.35 ▼0.021.82 ▼0.3541.69 ▼5.35
Dashboard /wp-admin2,205 ▲285.56 ▼0.0789.78 ▼1.4039.67 ▲1.11
Posts /wp-admin/edit.php2,107 ▲101.99 ▲0.0435.63 ▼1.7333.59 ▼1.54
Add New Post /wp-admin/post-new.php1,533 ▲723.13 ▲0.09692.41 ▼31.5560.03 ▼5.56
Media Library /wp-admin/upload.php1,410 ▲104.21 ▲0.0998.32 ▼7.3848.31 ▲2.39

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
The following 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
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #1 (User Name Update Section) image not found
You can look at the official readme.txt

username-update/username-update.php 92% from 13 tests

The primary PHP file in "Username Update" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 325 characters long)

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
No dangerous file extensions were detected272 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9110444223
JavaScript111046
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.83
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
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 files were detected