89% tcbd-wp-admin-bar-hide

Code Review | TCBD WP Admin Bar Hide

WordPress plugin TCBD WP Admin Bar Hide scored89%from 54 tests.

About plugin

  • Plugin page: tcbd-wp-admin-bar...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Oct 20, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /873 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by TCBD WP Admin Bar Hide
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0632.86 ▼8.15
Dashboard /wp-admin3.31 ▲0.0047.64 ▲4.66
Posts /wp-admin/edit.php3.36 ▲0.0047.31 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.35 ▲0.35
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▲2.32

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

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

Browser metrics Passed 4 tests

TCBD WP Admin Bar Hide: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,626 ▼12013.24 ▼1.133.99 ▲2.2143.19 ▼1.35
Dashboard /wp-admin2,206 ▲154.87 ▼1.01121.06 ▲19.6742.24 ▲0.59
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0638.60 ▼2.2334.92 ▼2.57
Add New Post /wp-admin/post-new.php1,537 ▼523.24 ▲4.99663.25 ▲67.5380.82 ▲21.55
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0398.46 ▲0.3644.79 ▲2.43

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === tcbd-wp-admin-bar-hide === )
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

The primary PHP file in "TCBD WP Admin Bar Hide" version 1.0 is used by WordPress to initiate all plugin functionality
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 ("tcbd-wp-admin-bar-hide.php" instead of "hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17243

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin