94% hello-bar-wp

Code Review | Hello Bar WP

WordPress plugin Hello Bar WP scored 94% from 54 tests.

About plugin

  • Plugin page: hello-bar-wp
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 7, 2018
  • Latest release: Apr 11, 2018
  • Number of updates: 13
  • Update frequency: every 2.7 days
  • Top authors: afterimagedesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 936 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Hello Bar WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.23 ▲9.60
Dashboard /wp-admin3.07 ▲0.0252.19 ▲10.51
Posts /wp-admin/edit.php3.12 ▲0.0148.35 ▲3.29
Add New Post /wp-admin/post-new.php5.43 ▼0.01100.45 ▼546.54
Media Library /wp-admin/upload.php3.01 ▲0.0136.73 ▲3.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Hello Bar WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲18016.26 ▲0.2610.60 ▼0.1144.58 ▼4.29
Dashboard /wp-admin3,023 ▲926.79 ▲0.57148.19 ▼16.31105.11 ▼4.49
Posts /wp-admin/edit.php2,792 ▲532.80 ▲0.0767.25 ▼3.5889.35 ▲4.97
Add New Post /wp-admin/post-new.php1,617 ▼6621.08 ▲2.58479.78 ▲92.12119.26 ▲7.01
Media Library /wp-admin/upload.php1,857 ▲505.23 ▲0.24153.09 ▼9.32114.34 ▲5.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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 | 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-bar-wp/hello-bar-wp.php:149

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: header bar, opt-in bar, hello bar, top bar, conversion...

hello-bar-wp/hello-bar-wp.php Passed 13 tests

The entry point to "Hello Bar WP" version 1.0.2 is a PHP file that has certain tags in its header comment area
58 characters long description:
A simple plugin to show a Hello bar in the top of the page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin222 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP21625158
CSS20051
JavaScript231113

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin