84% remove-profile-dropdown-in-admin-bar

Code Review | Remove Profile Dropdown in Admin Bar

WordPress plugin Remove Profile Dropdown in Admin Bar scored 84% from 54 tests.

About plugin

  • Plugin page: remove-profile-dr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 3, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 4
  • Update frequency: every 138.5 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 830 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Remove Profile Dropdown in Admin Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.01 ▼6.21
Dashboard /wp-admin3.31 ▲0.0046.61 ▼21.18
Posts /wp-admin/edit.php3.36 ▲0.0046.73 ▼14.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.28 ▼13.76
Media Library /wp-admin/upload.php3.23 ▲0.0040.08 ▲6.41

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Remove Profile Dropdown in Admin Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲1713.17 ▼1.301.93 ▼1.3943.74 ▼11.39
Dashboard /wp-admin2,205 ▼14.85 ▼0.93111.43 ▲2.2242.54 ▼4.86
Posts /wp-admin/edit.php2,085 ▼72.04 ▲0.0639.17 ▲2.4634.82 ▼4.11
Add New Post /wp-admin/post-new.php1,523 ▼1023.32 ▲0.29679.43 ▼55.7061.56 ▼6.37
Media Library /wp-admin/upload.php1,387 ▼14.24 ▲0.06119.06 ▼17.8555.03 ▼6.04

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-profile-dropdown-in-admin-bar/hide-profile-dropdown-admin-bar.php:15

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 on the user side

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
Attributes that need to be fixed:
  • Requires at least: Invalid version format
You can look at the official readme.txt

remove-profile-dropdown-in-admin-bar/hide-profile-dropdown-admin-bar.php 92% from 13 tests

This is the main PHP file of "Remove Profile Dropdown in Admin Bar" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-profile-dropdown-in-admin-bar.php" instead of "hide-profile-dropdown-admin-bar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin