56% hide-administrator-bar

Code Review | Hide Administrator Bar

WordPress plugin Hide Administrator Bar scored56%from 54 tests.

About plugin

  • Plugin page: hide-administrato...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 20, 2016
  • Latest release: Jan 5, 2021
  • Number of updates: 10
  • Update frequency: every 166.3 days
  • Top authors: pawaryogesh1989 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,494 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.94MB] [CPU: ▼32.06ms] Passed 4 tests

A check of server-side resources used by Hide Administrator Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.41 ▼3.52
Dashboard /wp-admin3.00 ▼0.3124.62 ▼24.54
Posts /wp-admin/edit.php3.00 ▼0.3625.46 ▼21.14
Add New Post /wp-admin/post-new.php3.00 ▼2.8925.12 ▼73.77
Media Library /wp-admin/upload.php3.00 ▼0.2324.98 ▼8.80
Admin Bar Settings /wp-admin/tools.php?page=hide-admin-bar-settings3.0022.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Hide Administrator Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7214.48 ▲0.011.96 ▼0.0641.57 ▼8.16
Dashboard /wp-admin2,207 ▲195.77 ▼0.1199.24 ▼1.0039.48 ▼3.83
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0234.97 ▼2.2133.48 ▲0.45
Add New Post /wp-admin/post-new.php1,517 ▼1717.81 ▼5.68685.26 ▲98.8852.44 ▲1.71
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.0194.57 ▼4.8743.80 ▲1.33
Admin Bar Settings /wp-admin/tools.php?page=hide-admin-bar-settings9602.2129.8963.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 0% 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/tools.php?page=hide-admin-bar-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hide-administrator-bar/hide-administrator-bar.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/hide-administrator-bar/views/admin-bar-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-administrator-bar/classes/class.hide.adminbar.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/tools.php?page=hide-admin-bar-settings
    • > Network (severe)
    wp-content/plugins/hide-administrator-bar/assets/fonts/glyphicons-halflings-regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=hide-admin-bar-settings
    • > Network (severe)
    wp-content/plugins/hide-administrator-bar/assets/fonts/glyphicons-halflings-regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=hide-admin-bar-settings
    • > Network (severe)
    wp-content/plugins/hide-administrator-bar/assets/fonts/glyphicons-halflings-regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

hide-administrator-bar/hide-administrator-bar.php 92% from 13 tests

The entry point to "Hide Administrator Bar" version 3.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin566 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36819333
PHP34035139
CSS215794

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin