83% wp-admin-bar-hide-mh

Code Review | WP Admin Bar Hide MH

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

About plugin

  • Plugin page: wp-admin-bar-hide-mh
  • Plugin version: 0.3.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Feb 9, 2020
  • Latest release: Feb 9, 2020
  • Number of updates: 5
  • Update frequency: every 18.8 days
  • Top authors: mharif (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /371 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: ▼1.96ms] Passed 4 tests

A check of server-side resources used by WP Admin Bar Hide MH
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0630.61 ▼9.81
Dashboard /wp-admin3.31 ▲0.0149.61 ▲3.38
Posts /wp-admin/edit.php3.36 ▲0.0047.44 ▲0.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.20 ▼1.74
Media Library /wp-admin/upload.php3.24 ▲0.0038.16 ▲7.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Admin Bar Hide MH
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,626 ▼13114.46 ▲0.291.29 ▼0.6240.11 ▼11.44
Dashboard /wp-admin2,203 ▲154.85 ▼0.07112.53 ▲3.1737.14 ▼2.20
Posts /wp-admin/edit.php2,086 ▼32.05 ▼0.0039.36 ▼1.1335.39 ▲0.95
Add New Post /wp-admin/post-new.php1,542 ▲2818.29 ▲0.76644.26 ▼34.0951.81 ▼26.36
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.0294.38 ▼8.8742.71 ▼0.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please take a closer look at the following
  • 1× 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/wp-admin-bar-hide-mh/wp_admin_bar_hide_mh.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: hidden admin bar, wordpress admin bar, hide admin bar, wp admin bar

wp-admin-bar-hide-mh/wp_admin_bar_hide_mh.php 77% from 13 tests

"WP Admin Bar Hide MH" version 0.3.9.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 343 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-bar-hide-mh.php" instead of "wp_admin_bar_hide_mh.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10810

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

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