10% admin-bar-hide

Code Review | Admin Bar Hide

WordPress plugin Admin Bar Hide scored 10% from 54 tests.

About plugin

  • Plugin page: admin-bar-hide
  • Plugin version:
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.2.2
  • WordPress version: 5.9.2
  • First release: Jun 12, 2015
  • Latest release: Jul 5, 2019
  • Number of updates: 11
  • Update frequency: every 135.3 days
  • Top authors: sk.shaikat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,896 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/admin-bar-hide/admin-bar-hide.php+45
    require_once(wp-content/plugins/admin-bar-hide/freemius/start.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.02MB] [CPU: ▼296.11ms] Passed 4 tests

A check of server-side resources used by Admin Bar Hide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0158.56 ▲7.27
Dashboard /wp-admin3.41 ▲0.0032.52 ▼0.35
Posts /wp-admin/edit.php3.64 ▲0.0038.44 ▲2.52
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.20 ▼1,185.04
Media Library /wp-admin/upload.php3.29 ▲0.0022.12 ▼1.57

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Bar Hide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.91 ▲0.337.65 ▲1.741.87 ▼1.74
Dashboard /wp-admin2,895 ▲346.10 ▼0.19118.06 ▼18.38149.47 ▼8.10
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0063.25 ▲1.77141.22 ▲7.65
Add New Post /wp-admin/post-new.php1,668 ▲718.10 ▲1.98393.87 ▼3.42153.88 ▼3.81
Media Library /wp-admin/upload.php1,698 ▲35.53 ▲0.07143.81 ▲0.54184.16 ▼19.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/admin-bar-hide/freemius/start.php' (include_path='.:/usr/share/php') in wp-content/plugins/admin-bar-hide/admin-bar-hide.php on line 45
    • > PHP Warning
      require_once(wp-content/plugins/admin-bar-hide/freemius/start.php): failed to open stream: No such file or directory in wp-content/plugins/admin-bar-hide/admin-bar-hide.php on line 45

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: header toolbar hide, toolbar hide, hide, admin toolbar, admin bar hide...

admin-bar-hide/admin-bar-hide.php Passed 13 tests

"Admin Bar Hide" version's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Hide admin toolbar for all other users. Only admin can have that toolbar.

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
There were no executable files found in this plugin61 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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 files were detected