74% hide-admin-bar-by-wp-all-support

Code Review | Hide WP Admin Bar by WP ALL SUPPORT

WordPress plugin Hide WP Admin Bar by WP ALL SUPPORT scored74%from 54 tests.

About plugin

  • Plugin page: hide-admin-bar-by...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Oct 23, 2021
  • Number of updates: 8
  • Update frequency: every 61.4 days
  • Top authors: wpallsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲5.54ms] Passed 4 tests

Server-side resources used by Hide WP Admin Bar by WP ALL SUPPORT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.93 ▼4.35
Dashboard /wp-admin3.38 ▲0.0845.58 ▼1.97
Posts /wp-admin/edit.php3.50 ▲0.1472.67 ▲24.22
Add New Post /wp-admin/post-new.php5.97 ▲0.08122.63 ▲20.51
Media Library /wp-admin/upload.php3.31 ▲0.0840.38 ▲7.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
wpas_admin_bar_settings
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide WP Admin Bar by WP ALL SUPPORT
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,641 ▼9413.31 ▼1.051.15 ▼0.6838.90 ▼8.55
Dashboard /wp-admin2,224 ▲364.95 ▼0.9399.21 ▼0.1783.85 ▲30.45
Posts /wp-admin/edit.php2,113 ▲242.02 ▲0.0276.36 ▲35.1884.11 ▲50.01
Add New Post /wp-admin/post-new.php1,527 ▲722.97 ▼0.22668.07 ▲54.0654.54 ▼2.13
Media Library /wp-admin/upload.php1,403 ▲124.14 ▼0.05106.06 ▲1.5988.47 ▲44.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/hide-admin-bar-by-wp-all-support/uninstall.php+12
    Undefined index: uninstall_data
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wpas_admin_bar_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-admin-bar-by-wp-all-support/admin/class-wpas-hide-admin-bar-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/hide-admin-bar-by-wp-all-support/templates/add-new-rule.php:10

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 93% 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
8 plugin tags: disable admin bar, admin bar, wp admin, wp admin bar hide, hide admin bar...

hide-admin-bar-by-wp-all-support/wpas-hide-admin-bar.php 85% from 13 tests

Analyzing the main PHP file in "Hide WP Admin Bar by WP ALL SUPPORT" version 1.0.3
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hide-admin-bar-by-wp-all-support.php" instead of "wpas-hide-admin-bar.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected626 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP812225485
JavaScript222085
PO File1131545
CSS30411

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity27.00
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/admin-menu.png1.99KB1.28KB▼ 35.90%