84% hide-front-end-wp-admin-bar

Code Review | Hide Front End WP Admin Bar

WordPress plugin Hide Front End WP Admin Bar scored84%from 54 tests.

About plugin

  • Plugin page: hide-front-end-wp...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 16
  • Update frequency: every 60.9 days
  • Top authors: arulprasadj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,410 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.02MB] [CPU: ▼13.01ms] Passed 4 tests

This is a short check of server-side resources used by Hide Front End WP Admin Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0633.93 ▼10.99
Dashboard /wp-admin3.31 ▼0.0446.71 ▼17.25
Posts /wp-admin/edit.php3.36 ▲0.0045.85 ▼3.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.95 ▼19.84
Media Library /wp-admin/upload.php3.23 ▲0.0036.06 ▼1.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Front End WP Admin Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,615 ▼14614.18 ▼0.101.58 ▼0.3048.05 ▲3.05
Dashboard /wp-admin2,195 ▲185.59 ▼0.0287.80 ▼14.2239.62 ▼5.83
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0341.83 ▲7.2934.40 ▼0.45
Add New Post /wp-admin/post-new.php1,535 ▲718.31 ▼4.46643.55 ▲8.5174.87 ▲19.63
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0999.47 ▲1.7743.99 ▲0.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/hide-front-end-wp-admin-bar/hide-front-end-wp-admin-bar.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

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

The primary PHP file in "Hide Front End WP Admin Bar" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 plugin4 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24284

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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%
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
There were not PNG files found in your plugin