84% bbp-profile-information

Code Review | bbp profile information

WordPress plugin bbp profile information scored84%from 54 tests.

About plugin

  • Plugin page: bbp-profile-infor...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2014
  • Latest release: Apr 6, 2023
  • Number of updates: 103
  • Update frequency: every 32.2 days
  • Top authors: Robin W (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /8,992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.27ms] Passed 4 tests

An overview of server-side resources used by bbp profile information
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.31 ▼6.10
Dashboard /wp-admin3.32 ▲0.0251.76 ▲0.87
Posts /wp-admin/edit.php3.37 ▲0.0251.97 ▲2.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.55 ▲4.94
Media Library /wp-admin/upload.php3.24 ▲0.0242.26 ▲4.20
bbp-profile-information /wp-admin/options-general.php?page=bbp-profile-information3.2136.70

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for bbp profile information
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.22 ▼1.361.80 ▲0.1842.42 ▼9.41
Dashboard /wp-admin2,222 ▲195.83 ▼0.02108.92 ▼9.9746.50 ▼0.17
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0537.31 ▼0.7939.42 ▲2.42
Add New Post /wp-admin/post-new.php1,548 ▼023.36 ▲0.03630.09 ▲10.1253.52 ▼6.88
Media Library /wp-admin/upload.php1,401 ▲14.29 ▲0.08112.61 ▼14.4449.55 ▼2.03
bbp-profile-information /wp-admin/options-general.php?page=bbp-profile-information1,2472.0627.6241.28

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
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× 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/bbp-profile-information/includes/registration.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-profile-information/bbp-profile-information.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-profile-information/includes/settings.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-profile-information/includes/display.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-profile-information/includes/profile.php:11

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 97% 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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The profile Page with City, State, Target and Level added as fields), #2 (The topic page with City and State shown without label, and Target and Level shown with label)
You can take inspiration from this readme.txt

bbp-profile-information/bbp-profile-information.php Passed 13 tests

The primary PHP file in "bbp profile information" version 2.1.2 is used by WordPress to initiate all plugin functionality
120 characters long description:
adds fields to the bbp user profile and displays any combination of these under the authors avatar in topics and replies

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
No dangerous file extensions were detected728 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP920193728

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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 functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin