74% user-name-security

Code Review | SX User Name Security

WordPress plugin SX User Name Security scored74%from 54 tests.

About plugin

  • Plugin page: user-name-security
  • Plugin version: 2.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2013
  • Latest release: Aug 24, 2023
  • Number of updates: 67
  • Update frequency: every 57.0 days
  • Top authors: Confridin (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /15,430 total downloads

Benchmarks

Plugin footprint 65% 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.92MB] [CPU: ▼34.90ms] Passed 4 tests

An overview of server-side resources used by SX User Name Security
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.93 ▼4.84
Dashboard /wp-admin3.02 ▼0.2827.76 ▼30.94
Posts /wp-admin/edit.php3.02 ▼0.3429.70 ▼19.25
Add New Post /wp-admin/post-new.php3.02 ▼2.8723.55 ▼79.37
Media Library /wp-admin/upload.php3.02 ▼0.2126.07 ▼10.02

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by SX User Name Security
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10214.35 ▼0.001.96 ▼0.0044.09 ▼3.41
Dashboard /wp-admin2,244 ▲645.58 ▼0.0490.45 ▼8.6544.95 ▲0.07
Posts /wp-admin/edit.php2,150 ▲502.14 ▲0.1141.76 ▲4.7741.89 ▲6.56
Add New Post /wp-admin/post-new.php1,575 ▲2523.14 ▲4.80639.53 ▲8.5457.01 ▼13.64
Media Library /wp-admin/upload.php1,449 ▲524.19 ▲0.02109.67 ▲10.1551.25 ▲9.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/sf-author-url-control): failed to open dir: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/user-name-security/user-name-security.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: body_class, security, display nam, nicename, user

user-name-security/user-name-security.php 92% from 13 tests

"SX User Name Security" version 2.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 255 characters long)

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
There were no executable files found in this plugin1,433 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212295749
PHP136175307
CSS21935223
PO File23034154

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_75_dadada_40x100.png0.22KB0.08KB▼ 62.17%
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-bg_flat_55_fbf9ee_40x100.png0.20KB0.08KB▼ 57.77%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%