84% bp-registration-options

Code Review | Registration Options for BuddyPress

WordPress plugin Registration Options for BuddyPress scored84%from 54 tests.

About plugin

  • Plugin page: bp-registration-o...
  • Plugin version: 4.4.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2009
  • Latest release: Mar 5, 2023
  • Number of updates: 97
  • Update frequency: every 50.3 days
  • Top authors: tw2113 (64.95%)Messenlehner (32.99%)modemlooper (4.12%)

Code review

54 tests

User reviews

32 reviews

Install metrics

3,000+ active /169,474 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.01MB] [CPU: ▼3.66ms] Passed 4 tests

Analyzing server-side resources used by Registration Options for BuddyPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.63 ▼1.73
Dashboard /wp-admin3.31 ▲0.0143.46 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0143.89 ▼1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.86 ▼7.87
Media Library /wp-admin/upload.php3.24 ▲0.0133.17 ▼2.24

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Registration Options for BuddyPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.141.75 ▼0.0442.41 ▲4.12
Dashboard /wp-admin2,206 ▲185.83 ▲0.9299.65 ▼2.4643.72 ▲0.98
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0334.30 ▼6.9833.54 ▼2.24
Add New Post /wp-admin/post-new.php1,519 ▼2323.03 ▲4.93609.23 ▼38.5355.28 ▼2.53
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0192.06 ▼20.8445.30 ▼1.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-registration-options/includes/compatibility.php:176
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-registration-options/loader.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-registration-options/includes/core.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-registration-options/includes/admin.php:333

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: admin, plugin, blogs, new members, buddypress spam...

bp-registration-options/loader.php 85% from 13 tests

Analyzing the main PHP file in "Registration Options for BuddyPress" version 4.4.5
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 637 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bp-registration-options.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,826 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File74787011,419
PHP63967721,394
CSS10013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions64
▷ Named functions6398.44%
▷ Anonymous functions11.56%
Constants1
▷ 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
PNG images were not found in this plugin