84% bogo-buddypress

Code Review | Bogo BuddyPress

WordPress plugin Bogo BuddyPress scored84%from 54 tests.

About plugin

  • Plugin page: bogo-buddypress
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Apr 2, 2015
  • Number of updates: 24
  • Update frequency: every 1.5 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Bogo BuddyPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.64 ▲1.64
Dashboard /wp-admin3.31 ▲0.0048.77 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0050.72 ▲2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.52 ▼2.62
Media Library /wp-admin/upload.php3.23 ▲0.0035.57 ▲3.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Bogo BuddyPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.31 ▼0.061.63 ▼0.2143.57 ▲2.26
Dashboard /wp-admin2,195 ▲155.62 ▲0.0490.84 ▼0.5139.67 ▼3.20
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0334.49 ▼7.0436.87 ▼2.53
Add New Post /wp-admin/post-new.php1,526 ▼923.68 ▲5.37697.85 ▲74.5551.67 ▼17.69
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.01102.59 ▼2.1045.56 ▼0.97

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× 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/bogo-buddypress/includes/admin-xprofile.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bogo-buddypress/includes/admin-xprofile.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: buddypress, bogo

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

The main file in "Bogo BuddyPress" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
30 characters long description:
Make Bogo work with BuddyPress

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 detected421 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP415061358
CSS10063

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions16
▷ Named functions1381.25%
▷ Anonymous functions318.75%
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
There are no PNG files in this plugin