90% admin-bar-hider

Code Review | Hide Admin Bar From Front End

WordPress plugin Hide Admin Bar From Front End scored 90% from 54 tests.

About plugin

  • Plugin page: admin-bar-hider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.7
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: May 30, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: dev02ali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 859 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼5.86ms] Passed 4 tests

An overview of server-side resources used by Hide Admin Bar From Front End
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0631.76 ▼12.74
Dashboard /wp-admin3.31 ▲0.0147.00 ▲0.66
Posts /wp-admin/edit.php3.36 ▲0.0047.70 ▲1.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.20 ▼10.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.67 ▼1.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Hide Admin Bar From Front End: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,626 ▼10913.12 ▼0.884.70 ▲2.9038.04 ▼6.02
Dashboard /wp-admin2,206 ▲215.84 ▼0.05100.63 ▼0.2238.65 ▼4.02
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0441.55 ▲3.8835.35 ▲1.19
Add New Post /wp-admin/post-new.php1,538 ▼522.95 ▲4.82646.94 ▲7.4256.51 ▼0.43
Media Library /wp-admin/upload.php1,385 ▼04.19 ▲0.0492.45 ▼52.0844.70 ▼2.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: hide admin bar from front end, hide admin bar

admin-bar-hider/admin_bar_hider.php 92% from 13 tests

The main PHP file in "Hide Admin Bar From Front End" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-bar-hider.php" instead of "admin_bar_hider.php")

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
Good job! No executable or dangerous file extensions detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1098

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions0
▷ Named functions00.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 files were detected