84% username

Code Review | Username

WordPress plugin Username scored84%from 54 tests.

About plugin

  • Plugin page: username
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2013
  • Latest release: Dec 2, 2022
  • Number of updates: 22
  • Update frequency: every 153.5 days
  • Top authors: pranavpathakjaora (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /12,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Username
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.87 ▼5.42
Dashboard /wp-admin3.32 ▲0.0253.14 ▼1.78
Posts /wp-admin/edit.php3.37 ▲0.0152.80 ▲3.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.58 ▼1.91
Media Library /wp-admin/upload.php3.24 ▲0.0138.90 ▲2.74
Username /wp-admin/options-general.php?page=username-setting-admin3.1928.34

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Username
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.17 ▼0.531.95 ▼0.4043.91 ▼3.76
Dashboard /wp-admin2,198 ▲215.55 ▼0.0996.50 ▲3.9641.81 ▼0.07
Posts /wp-admin/edit.php2,106 ▲62.00 ▼0.0137.90 ▲0.8134.19 ▼1.38
Add New Post /wp-admin/post-new.php1,533 ▼1623.11 ▲4.93662.47 ▲39.3857.26 ▼9.67
Media Library /wp-admin/upload.php1,406 ▲64.17 ▼0.02102.95 ▲3.5150.34 ▲8.88
Username /wp-admin/options-general.php?page=username-setting-admin8072.0525.9629.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=username-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=username-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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 (Admin page screenshot.) image not found
You can take inspiration from this readme.txt

username/username.php Passed 13 tests

Analyzing the main PHP file in "Username" version 1.3
116 characters long description:
The Username plugin helps to change username, if username is not exist and without effecting others user's username.

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
Success! There were no dangerous files found in this plugin143 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3173491
JavaScript11252

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.06KB7.36KB▼ 38.94%