10% buddybar-widget

Code Review | BuddyBar Widget

WordPress plugin BuddyBar Widget scored 10% from 54 tests.

About plugin

  • Plugin page: buddybar-widget
  • Plugin version: 0.21
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-4.5.1
  • WordPress version: 5.8.1
  • First release: Apr 11, 2011
  • Latest release: May 3, 2016
  • Number of updates: 40
  • Update frequency: every 48.2 days
  • Top authors: slushman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 10,347 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/buddybar-widget/buddybar-widget.php+53
    require(wp-content/plugins/buddybar-widget/includes/class-buddybar-widget.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.00MB] [CPU: ▼188.22ms] Passed 4 tests

An overview of server-side resources used by BuddyBar Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0027.06 ▼0.19
Dashboard /wp-admin3.06 ▼0.0029.50 ▼14.22
Posts /wp-admin/edit.php3.11 ▲0.0028.92 ▼12.84
Add New Post /wp-admin/post-new.php5.42 ▼0.0268.03 ▼721.19
Media Library /wp-admin/upload.php3.00 ▲0.0022.30 ▼4.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyBar Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.70 ▼0.384.84 ▼4.2572.72 ▼19.13
Dashboard /wp-admin2,930 ▲316.14 ▲0.06118.10 ▼50.58166.25 ▼42.61
Posts /wp-admin/edit.php2,743 ▲63.24 ▲0.0063.42 ▼18.44137.27 ▼42.35
Add New Post /wp-admin/post-new.php3,743 ▲3618.83 ▼0.26414.47 ▼144.56166.35 ▼34.81
Media Library /wp-admin/upload.php1,752 ▲35.52 ▲0.01141.63 ▼28.70185.54 ▼47.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddybar-widget/classes/views/login-form.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/buddybar-widget/classes/views/form.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/buddybar-widget/classes/views/widget.php:14

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: buddybar, widget, buddypress

buddybar-widget/buddybar-widget.php 92% from 13 tests

The principal PHP file in "BuddyBar Widget" v. 0.21 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin386 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13247538349
Sass18036
CSS1111

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.29
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2374.19%
▷ Protected methods00.00%
▷ Private methods825.81%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin