84% wp-admin-bar-hiddener-tools-plugin

Code Review | wp admin bar hiddener tools plugin

WordPress plugin wp admin bar hiddener tools plugin scored84%from 54 tests.

About plugin

  • Plugin page: wp-admin-bar-hidd...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Dec 12, 2018
  • Number of updates: 9
  • Update frequency: every 185.1 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /1,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by wp admin bar hiddener tools plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0633.85 ▼9.68
Dashboard /wp-admin3.31 ▼0.0448.56 ▼14.71
Posts /wp-admin/edit.php3.36 ▲0.0045.80 ▼7.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.94 ▼27.49
Media Library /wp-admin/upload.php3.23 ▲0.0038.25 ▲3.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

wp admin bar hiddener tools plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,615 ▼14614.70 ▲0.551.48 ▼0.3639.50 ▼2.97
Dashboard /wp-admin2,195 ▲185.55 ▲0.0291.54 ▼10.6542.57 ▼3.34
Posts /wp-admin/edit.php2,103 ▲32.15 ▲0.1937.70 ▲1.1832.22 ▼1.63
Add New Post /wp-admin/post-new.php1,528 ▲223.05 ▲0.06663.34 ▼18.1957.71 ▲1.07
Media Library /wp-admin/upload.php1,400 ▲64.22 ▲0.00105.78 ▼2.7442.12 ▼4.09

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-bar-hiddener-tools-plugin/functions.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: wp admin bar hide 1kb plugin, wordpress admin bar hide, wordpress plugin

wp-admin-bar-hiddener-tools-plugin/functions.php 92% from 13 tests

The main PHP file in "wp admin bar hiddener tools plugin" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-bar-hiddener-tools-plugin.php" instead of "functions.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
Everything looks great! No dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810

PHP code Passed 2 tests

A short review of 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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected