71% profile-builder

Code Review | User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor

WordPress plugin User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor scored71%from 54 tests.

About plugin

Code review

54 tests

User reviews

683 reviews

Install metrics

50,000+ active /4,053,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.33MB] [CPU: ▲20.70ms] Passed 4 tests

Server-side resources used by User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /7.61 ▲4.1464.37 ▲21.28
Dashboard /wp-admin7.71 ▲4.3674.67 ▲13.36
Posts /wp-admin/edit.php7.76 ▲4.4079.86 ▲30.57
Add New Post /wp-admin/post-new.php10.35 ▲4.46114.45 ▲17.59
Media Library /wp-admin/upload.php7.65 ▲4.4265.86 ▲32.32
Add-Ons /wp-admin/admin.php?page=profile-builder-add-ons7.6963.98
Admin Email Customizer /wp-admin/admin.php?page=admin-email-customizer7.6561.19
Private Website /wp-admin/admin.php?page=profile-builder-private-website7.6364.50
Paid Accounts /wp-admin/admin.php?page=profile-builder-pms-promo7.5455.82
Toolbox /wp-admin/admin.php?page=profile-builder-toolbox-settings7.6661.81
Dashboard /wp-admin/admin.php?page=profile-builder-dashboard7.6366.97
Content Restriction /wp-admin/admin.php?page=profile-builder-content_restriction7.6964.30
Form Fields /wp-admin/admin.php?page=manage-fields7.9184.16
/wp-admin/index.php?page=wppb-setup7.4462.03
Settings /wp-admin/admin.php?page=profile-builder-general-settings7.6361.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 603 new files
Database: no new tables, 49 new options
New WordPress options
wppb_version
wppb_user_emailc_change_email_address_request_enabled
wppb_user_emailc_reset_email_content
wppb_admin_emailc_user_password_reset_email_enabled
wppb_user_emailc_change_email_address_subject
wppb_private_website_settings
wppb_admin_emailc_user_password_reset_email_subject
db_upgraded
wppb_toolbox_forms_settings
wppb_manage_fields
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10413.43 ▼1.311.66 ▼0.1539.10 ▼4.32
Dashboard /wp-admin2,254 ▲905.32 ▼0.33100.64 ▼4.5388.73 ▲44.98
Posts /wp-admin/edit.php2,337 ▲2372.34 ▲0.3843.95 ▲7.5835.25 ▼0.27
Add New Post /wp-admin/post-new.php1,602 ▲7423.45 ▲0.26673.51 ▲10.2135.06 ▼25.80
Media Library /wp-admin/upload.php1,475 ▲754.77 ▲0.61100.99 ▲3.6777.14 ▲32.85
Add-Ons /wp-admin/admin.php?page=profile-builder-add-ons2,1852.3935.6791.31
Admin Email Customizer /wp-admin/admin.php?page=admin-email-customizer2,1123.1483.38114.30
Private Website /wp-admin/admin.php?page=profile-builder-private-website1,4812.5749.38120.58
Paid Accounts /wp-admin/admin.php?page=profile-builder-pms-promo1,3812.0329.2938.24
Toolbox /wp-admin/admin.php?page=profile-builder-toolbox-settings1,5952.4939.3638.59
Dashboard /wp-admin/admin.php?page=profile-builder-dashboard1,3772.4030.0138.04
Content Restriction /wp-admin/admin.php?page=profile-builder-content_restriction2,3338.73160.11133.32
Form Fields /wp-admin/admin.php?page=manage-fields9,4014.59129.04119.17
/wp-admin/index.php?page=wppb-setup280.410.093.33
Settings /wp-admin/admin.php?page=profile-builder-general-settings1,8272.6047.4669.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 49 options
    • wppb_user_emailc_change_email_address_request_subject
    • wppb_admin_emailc_default_registration_email_content
    • wppb_user_emailc_change_email_address_enabled
    • widget_recent-posts
    • wppb_toolbox_admin_settings
    • wppb_toolbox_forms_settings
    • wppb_toolbox_userlisting_settings
    • wppb_user_emailc_reset_success_email_subject
    • wppb_user_emailc_default_registration_email_enabled
    • wppb_content_restriction_settings
    • ...

Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/profile-builder/assets/misc/fallback-page.php
  • 100× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-builder/admin/advanced-settings/includes/admin/admin-approval-access.php:9
    • > PHP Notice
      Undefined variable: details in wp-content/plugins/profile-builder/assets/lib/wck-api/fields/upload.php on line 12
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/profile-builder/assets/lib/Mustache/Exception/UnknownTemplateException.php:15
    • > PHP Warning
      require_once(WPPB_PLUGIN_DIR/assets/lib/class-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/profile-builder/features/email-confirmation/class-email-confirmation.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wppb_toolbox_get_settings() in wp-content/plugins/profile-builder/admin/advanced-settings/includes/forms/redirect-delay-timer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/profile-builder/admin/advanced-settings/includes/userlisting/remove-repetitions.php:3
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/profile-builder/add-ons-free/gdpr-communication-preferences/gdpr-communication-preferences.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-builder/admin/advanced-settings/includes/fields/remove-all-fields-from-backend.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Logger_AbstractLogger' not found in wp-content/plugins/profile-builder/assets/lib/Mustache/Logger/StreamLogger.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/profile-builder/admin/advanced-settings/includes/fields/capitalize-first-last.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/index.php?page=wppb-setup
    • > Network (severe)
    wp-admin/index.php?page=wppb-setup - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 86% 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 require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

profile-builder/index.php 77% from 13 tests

This is the main PHP file of "User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor" version 3.10.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.1" instead of "3.0.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("profile-builder.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)

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
Success! There were no dangerous files found in this plugin100,208 lines of code in 439 files:
LanguageFilesBlank linesComment linesLines of code
PO File1922,69332,79347,539
PHP2126,8187,33430,069
JavaScript1452,0191,22914,616
CSS301,1433316,672
HTML101081705
JSON800290
SVG1031226
Sass33058
XML11024
Markdown1209

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.11
▷ Minimum class complexity1.00
▷ Maximum class complexity277.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces6
Traits0
Classes60
▷ Abstract classes58.33%
▷ Concrete classes5591.67%
▷ Final classes00.00%
Methods513
▷ Static methods254.87%
▷ Public methods41681.09%
▷ Protected methods428.19%
▷ Private methods5510.72%
Functions688
▷ Named functions65995.78%
▷ Anonymous functions294.22%
Constants107
▷ Global constants4340.19%
▷ Class constants6459.81%
▷ Public constants64100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
105 PNG files occupy 1.13MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/add-ons/pb-add-on-campaign-monitor-logo.png2.40KB1.75KB▼ 27.36%
assets/images/pb-logo-free.png122.08KB53.69KB▼ 56.02%
assets/images/sorting-ascending.png0.96KB0.12KB▼ 87.12%
assets/images/good.png0.84KB0.99KB0.00%
assets/images/logo_pro.png6.32KB2.86KB▼ 54.71%