84% current-username-on-navigation-lable

Code Review | Current Username on Navigation Label

WordPress plugin Current Username on Navigation Label scored84%from 54 tests.

About plugin

  • Plugin page: current-username-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: May 12, 2014
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: realblackz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /4,187 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.63ms] Passed 4 tests

This is a short check of server-side resources used by Current Username on Navigation Label
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.50 ▼4.19
Dashboard /wp-admin3.31 ▲0.0148.53 ▼2.31
Posts /wp-admin/edit.php3.36 ▲0.0045.21 ▼5.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.64 ▼18.71
Media Library /wp-admin/upload.php3.23 ▲0.0040.51 ▲6.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Current Username on Navigation Label
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.62 ▼0.561.84 ▼0.2043.50 ▼0.79
Dashboard /wp-admin2,206 ▲184.86 ▼0.04107.29 ▼5.5439.60 ▼6.97
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0138.58 ▼1.1234.08 ▲1.02
Add New Post /wp-admin/post-new.php1,519 ▲523.60 ▲5.95684.06 ▼5.6453.46 ▼0.59
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0393.89 ▼15.9044.01 ▲1.48

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/current-username-on-navigation-lable/current-username-on-navigation-label.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: navigation label, menus, title attributes, username

current-username-on-navigation-lable/current-username-on-navigation-label.php 85% from 13 tests

The entry point to "Current Username on Navigation Label" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("current-username-on-navigation-lable.php" instead of "current-username-on-navigation-label.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 240 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
Good job! No executable or dangerous file extensions detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin