84% buddypress-toolbar

Code Review | BuddyPress Toolbar

WordPress plugin BuddyPress Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-toolbar
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 7, 2012
  • Latest release: Feb 21, 2019
  • Number of updates: 42
  • Update frequency: every 61.2 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /87,889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼3.89ms] Passed 4 tests

A check of server-side resources used by BuddyPress Toolbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4938.99 ▼3.31
Dashboard /wp-admin3.78 ▲0.4450.18 ▼16.47
Posts /wp-admin/edit.php3.85 ▲0.4954.81 ▲3.90
Add New Post /wp-admin/post-new.php6.07 ▲0.19108.42 ▲2.25
Media Library /wp-admin/upload.php3.79 ▲0.5638.95 ▲1.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Toolbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22814.27 ▼0.081.70 ▼0.2742.04 ▼2.54
Dashboard /wp-admin2,292 ▲1155.64 ▲0.1193.26 ▼1.9647.72 ▲4.41
Posts /wp-admin/edit.php2,191 ▲911.98 ▲0.0041.83 ▲3.6636.46 ▲0.78
Add New Post /wp-admin/post-new.php1,623 ▲9418.31 ▼4.47635.90 ▼29.3267.86 ▲18.44
Media Library /wp-admin/upload.php1,488 ▲944.17 ▼0.1299.68 ▼4.0642.19 ▼3.46

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

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)
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
The following issues need your attention
  • 12× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/buddypress-toolbar/buddypress-toolbar.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-plugins-eventsmanager.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-branding.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-plugins-achievementsapp.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-resources.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-plugins.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-plugins-achievements2x.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-admin.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-plugins-collabpress.php
    • > /wp-content/plugins/buddypress-toolbar/includes/bptb-plugins-bpcheckins.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

buddypress-toolbar/buddypress-toolbar.php Passed 13 tests

This is the main PHP file of "BuddyPress Toolbar" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
102 characters long description:
This plugin adds useful admin links and resources for BuddyPress to the WordPress Toolbar / Admin Bar.

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
There were no executable files found in this plugin3,557 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP147881,2312,191
PO File36441,4971,366

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.97
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
13 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-buddypress-green.png1.01KB0.96KB▼ 4.95%
images/icon-buddypress-turquoise.png0.88KB0.89KB0.00%
images/icon-buddypress-yellow.png0.88KB0.89KB0.00%
images/icon-bptb.png0.97KB0.97KB0.00%
images/icon-buddypress-khaki.png1.07KB1.00KB▼ 6.38%