94% wp-admin-bar-hide

Code Review | WP Adminbar Hide From Front End

WordPress plugin WP Adminbar Hide From Front End scored 94% from 54 tests.

About plugin

  • Plugin page: wp-admin-bar-hide
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Mar 22, 2017
  • Latest release: Mar 22, 2017
  • Number of updates: 12
  • Update frequency: every 16.1 days
  • Top authors: mp518 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,627 total downloads

Benchmarks

Plugin footprint Passed 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: ▼180.99ms] Passed 4 tests

An overview of server-side resources used by WP Adminbar Hide From Front End
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.0523.97 ▲2.09
Dashboard /wp-admin3.06 ▼0.0031.49 ▼11.91
Posts /wp-admin/edit.php3.11 ▲0.0130.73 ▼0.69
Add New Post /wp-admin/post-new.php5.42 ▼0.0166.48 ▼711.71
Media Library /wp-admin/upload.php3.00 ▲0.0022.92 ▲0.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Adminbar Hide From Front End
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,461 ▼14015.60 ▼0.065.03 ▼1.4575.98 ▲3.55
Dashboard /wp-admin2,933 ▲386.10 ▼0.01115.70 ▼15.17168.53 ▼9.01
Posts /wp-admin/edit.php2,746 ▲33.24 ▼0.0165.20 ▼0.62139.71 ▲1.72
Add New Post /wp-admin/post-new.php3,818 ▲8319.31 ▲1.53411.19 ▼49.75165.17 ▼0.51
Media Library /wp-admin/upload.php1,754 ▼15.53 ▼0.00140.42 ▼8.29183.36 ▼12.34

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

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

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-bar-hide/wpadminbar-hide.php:11

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

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

"WP Adminbar Hide From Front End" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-admin-bar-hide.php" instead of "wpadminbar-hide.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
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1189

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin