83% super-wp-hide-admin-bar

Code Review | WP Hide Admin Bar

WordPress plugin WP Hide Admin Bar scored83%from 54 tests.

About plugin

  • Plugin page: super-wp-hide-adm...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 6.3.1
  • First release: May 4, 2016
  • Latest release: May 4, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: muhaimin1992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼9.00ms] Passed 4 tests

A check of server-side resources used by WP Hide Admin Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0635.37 ▼1.03
Dashboard /wp-admin3.31 ▼0.0446.68 ▼14.51
Posts /wp-admin/edit.php3.36 ▲0.0044.21 ▼2.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.10 ▼18.44
Media Library /wp-admin/upload.php3.23 ▲0.0036.39 ▲1.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Hide Admin Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,615 ▼13114.40 ▼0.151.25 ▼0.3442.44 ▲2.30
Dashboard /wp-admin2,195 ▲175.65 ▼0.0088.45 ▼9.2538.26 ▼0.64
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0133.93 ▼1.6636.45 ▼2.57
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.51673.69 ▲6.7550.36 ▼4.13
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.1095.02 ▼2.6744.82 ▼0.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function show_admin_bar() in wp-content/plugins/super-wp-hide-admin-bar/plugin-main-file.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === super-wp-hide-admin-bar === )
You can look at the official readme.txt

super-wp-hide-admin-bar/plugin-main-file.php 92% from 13 tests

"WP Hide Admin Bar" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("super-wp-hide-admin-bar.php" instead of "plugin-main-file.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
No dangerous file extensions were detected3 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for 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

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