84% better-bp-registration

Code Review | BuddyPress Better Registration

WordPress plugin BuddyPress Better Registration scored84%from 54 tests.

About plugin

  • Plugin page: better-bp-registr...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Jun 20, 2018
  • Number of updates: 18
  • Update frequency: every 36.3 days
  • Top authors: sooskriszta (61.11%)abwebstudio1 (44.44%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /5,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.18ms] Passed 4 tests

A check of server-side resources used by BuddyPress Better Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.99 ▼1.34
Dashboard /wp-admin3.31 ▼0.0449.35 ▼7.88
Posts /wp-admin/edit.php3.36 ▲0.0043.84 ▼3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.06 ▼11.57
Media Library /wp-admin/upload.php3.23 ▲0.0032.41 ▲1.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Better Registration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.161.83 ▲0.0838.43 ▼0.96
Dashboard /wp-admin2,206 ▲244.83 ▼0.05109.29 ▲2.4238.30 ▼2.59
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0034.49 ▼2.2331.66 ▲0.16
Add New Post /wp-admin/post-new.php1,514 ▼1917.48 ▼5.93629.54 ▼30.7551.71 ▼1.92
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0498.86 ▲1.6843.81 ▲2.98

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× 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/better-bp-registration/core/facebook.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: account activation, buddypress activation, buddypress, buddypress registration, community...

better-bp-registration/index.php 92% from 13 tests

The main PHP file in "BuddyPress Better Registration" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("better-bp-registration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,092 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP154161831,099
JavaScript810731551
CSS83916442

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.00
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions32
▷ Named functions2268.75%
▷ Anonymous functions1031.25%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin