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

About plugin

  • Plugin page: hide-admin-bar-fr...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.3
  • WordPress version: 5.8.1
  • First release: Jan 10, 2019
  • Latest release: Dec 6, 2019
  • Number of updates: 4
  • Update frequency: every 83.0 days
  • Top authors: royalnavneet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 327 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Hide Admin Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▲0.0636.02 ▲10.32
Dashboard /wp-admin3.06 ▲0.0153.50 ▲0.01
Posts /wp-admin/edit.php3.11 ▲0.0152.17 ▲4.77
Add New Post /wp-admin/post-new.php5.42 ▼0.01101.93 ▼582.62
Media Library /wp-admin/upload.php3.00 ▲0.0036.57 ▲0.90

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, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Admin Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,483 ▼11315.91 ▲0.4411.08 ▼1.1352.43 ▼0.98
Dashboard /wp-admin2,970 ▲396.12 ▼0.09156.60 ▼23.40125.75 ▼0.62
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0169.96 ▼1.6794.85 ▼5.73
Add New Post /wp-admin/post-new.php1,615 ▼6821.50 ▲2.73296.06 ▼103.35109.67 ▼7.84
Media Library /wp-admin/upload.php1,807 ▼05.08 ▲0.02167.04 ▲5.94126.08 ▲1.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/hide-admin-bar-from-frontend-no-setting-required/hide_admin_bar_from_frontend.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% 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
3 plugin tags: hidden, admin bar, admin

hide-admin-bar-from-frontend-no-setting-required/hide_admin_bar_from_frontend.php 92% from 13 tests

The main PHP script in "Hide Admin Bar" version 0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hide-admin-bar-from-frontend-no-setting-required.php" instead of "hide_admin_bar_from_frontend.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 plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10810

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected