84% bbp-buddypress-profile-information

Code Review | bbp buddypress profile information

WordPress plugin bbp buddypress profile information scored84%from 54 tests.

About plugin

  • Plugin page: bbp-buddypress-pr...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2014
  • Latest release: Apr 6, 2023
  • Number of updates: 34
  • Update frequency: every 91.9 days
  • Top authors: Robin W (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /8,938 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.15ms] Passed 4 tests

This is a short check of server-side resources used by bbp buddypress profile information
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.61 ▼8.53
Dashboard /wp-admin3.37 ▲0.0650.21 ▼3.61
Posts /wp-admin/edit.php3.42 ▲0.0656.05 ▲6.27
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.79 ▼3.23
Media Library /wp-admin/upload.php3.29 ▲0.0636.66 ▲2.77
bbp buddypress profile Information /wp-admin/options-general.php?page=bbp-buddypress-profile-information-settings3.2633.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbp buddypress profile information
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.30 ▼0.261.68 ▲0.0343.17 ▼3.01
Dashboard /wp-admin2,199 ▲255.50 ▼0.2186.51 ▼5.8937.98 ▼5.40
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0335.94 ▲1.2734.68 ▼0.33
Add New Post /wp-admin/post-new.php1,531 ▲523.16 ▼0.36625.54 ▼70.9267.81 ▲1.75
Media Library /wp-admin/upload.php1,407 ▲104.21 ▼0.0598.44 ▼9.7148.97 ▼1.64
bbp buddypress profile Information /wp-admin/options-general.php?page=bbp-buddypress-profile-information-settings1,1052.0325.7228.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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)
Even though no errors were found, 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-buddypress-profile-information/includes/settings.php:247
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-buddypress-profile-information/bbp-buddypress-profile-information.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-buddypress-profile-information/includes/display.php:8

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The topic page with City and State shown without label, and Target and Level shown with label) image required
The official readme.txt might help

bbp-buddypress-profile-information/bbp-buddypress-profile-information.php 92% from 13 tests

Analyzing the main PHP file in "bbp buddypress profile information" version 1.3
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin353 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected