84% hide-username-front-side

Code Review | Hide Username Front Side

WordPress plugin Hide Username Front Side scored84%from 54 tests.

About plugin

  • Plugin page: hide-username-fro...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: May 24, 2013
  • Latest release: Sep 13, 2014
  • Number of updates: 7
  • Update frequency: every 68.1 days
  • Top authors: mindstien (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Hide Username Front Side
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.94 ▼5.75
Dashboard /wp-admin3.31 ▲0.0146.60 ▼2.08
Posts /wp-admin/edit.php3.36 ▲0.0146.82 ▲0.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.05 ▲0.92
Media Library /wp-admin/upload.php3.23 ▲0.0132.46 ▼1.04
Hide Username /wp-admin/users.php?page=hide_username_front_side3.2031.93

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Hide Username Front Side
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.101.78 ▼0.0942.46 ▼1.21
Dashboard /wp-admin2,213 ▲255.78 ▲0.89105.56 ▲0.2039.36 ▼1.41
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0236.14 ▼0.3633.02 ▼3.57
Add New Post /wp-admin/post-new.php1,547 ▲1418.44 ▼4.65611.39 ▼32.7854.50 ▼1.35
Media Library /wp-admin/upload.php1,395 ▲134.18 ▼0.0695.14 ▼14.9841.03 ▼4.38
Hide Username /wp-admin/users.php?page=hide_username_front_side8842.1827.4331.08

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× 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/hide-username-front-side/hide-username-front-side.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

hide-username-front-side/hide-username-front-side.php 92% from 13 tests

"Hide Username Front Side" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 309 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin227 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16415227

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected