90% hide-admin-bar-front-end

Code Review | Hide Admin Bar - Front End

WordPress plugin Hide Admin Bar - Front End scored90%from 54 tests.

About plugin

  • Plugin page: hide-admin-bar-fr...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Nov 2, 2022
  • Number of updates: 6
  • Update frequency: every 117.0 days
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Hide Admin Bar - Front End
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0629.05 ▼9.64
Dashboard /wp-admin3.31 ▲0.0046.24 ▼2.52
Posts /wp-admin/edit.php3.36 ▲0.0048.34 ▼2.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.30 ▼13.26
Media Library /wp-admin/upload.php3.23 ▲0.0031.81 ▼0.04

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Admin Bar - Front End
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,626 ▼12013.15 ▼1.541.32 ▼0.2639.92 ▼1.67
Dashboard /wp-admin2,209 ▲214.83 ▼1.07109.53 ▲10.3143.34 ▲0.64
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0740.32 ▲1.4134.73 ▼2.07
Add New Post /wp-admin/post-new.php1,520 ▲623.04 ▲5.53648.57 ▼11.2152.66 ▼6.65
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0595.01 ▼14.2541.58 ▼4.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
No plugin tags provided

hide-admin-bar-front-end/hide-admin-bar.php 92% from 13 tests

The main PHP file in "Hide Admin Bar - Front End" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hide-admin-bar-front-end.php" instead of "hide-admin-bar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11104

PHP code Passed 2 tests

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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin