90% hide-admin-navbar

Code Review | Hide Admin Navbar - Disable Admin Bar, Remove Admin Toolbar from Frontend

WordPress plugin Hide Admin Navbar - Disable Admin Bar, Remove Admin Toolbar from Frontend scored90%from 54 tests.

About plugin

  • Plugin page: hide-admin-navbar
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2021
  • Latest release: Dec 1, 2023
  • Number of updates: 42
  • Update frequency: every 20.3 days
  • Top authors: mehrazmorshed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Hide Admin Navbar - Disable Admin Bar, Remove Admin Toolbar from Frontend
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0628.96 ▼9.76
Dashboard /wp-admin3.31 ▲0.0145.24 ▼5.42
Posts /wp-admin/edit.php3.37 ▲0.0147.31 ▼3.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.93 ▼16.39
Media Library /wp-admin/upload.php3.24 ▲0.0136.79 ▲1.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hide Admin Navbar - Disable Admin Bar, Remove Admin Toolbar from Frontend
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,630 ▼13214.25 ▲0.131.28 ▼0.5335.11 ▼9.78
Dashboard /wp-admin2,189 ▲85.65 ▼0.0295.53 ▼10.4041.57 ▼4.02
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0438.81 ▼3.5731.95 ▼6.35
Add New Post /wp-admin/post-new.php1,526 ▼1023.14 ▲0.06664.92 ▲76.4650.25 ▼0.12
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0095.70 ▼3.1543.04 ▲1.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: hide admin toolbar, disable admin bar, remove admin bar, remove admin toolbar, disable admin toolbar...

hide-admin-navbar/hide-admin-navbar.php 92% from 13 tests

"Hide Admin Navbar - Disable Admin Bar, Remove Admin Toolbar from Frontend" version 1.4.4'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:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 73 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin34 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3205234

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin