62% wp-user-manager

Code Review | WP User Manager - User Profile Builder & Membership

WordPress plugin WP User Manager - User Profile Builder & Membership scored62%from 54 tests.

About plugin

  • Plugin page: wp-user-manager
  • Plugin version: 2.9.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jul 6, 2015
  • Latest release: Nov 19, 2023
  • Number of updates: 394
  • Update frequency: every 7.8 days
  • Top authors: alessandro.tesoro (73.86%)wpusermanager (26.4%)

Code review

54 tests

User reviews

326 reviews

Install metrics

10,000+ active /549,938 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.23MB] [CPU: ▲14.17ms] 75% from 4 tests

An overview of server-side resources used by WP User Manager - User Profile Builder & Membership
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,453.03ms on /wp-admin/users.php?page=wpum-addons)
PageMemory (MB)CPU Time (ms)
Home /4.54 ▲1.0857.72 ▲19.62
Dashboard /wp-admin4.56 ▲1.2666.05 ▲17.71
Posts /wp-admin/edit.php4.69 ▲1.3462.14 ▲12.87
Add New Post /wp-admin/post-new.php7.47 ▲1.58112.19 ▲28.05
Media Library /wp-admin/upload.php4.48 ▲1.2543.61 ▲6.49
Emails /wp-admin/users.php?page=wpum-emails4.4848.28
Getting started with WP User Manager /wp-admin/index.php?page=wpum-getting-started4.4745.91
Custom Fields /wp-admin/users.php?page=wpum-custom-fields4.9548.42
Addons /wp-admin/users.php?page=wpum-addons4.771,453.03
Roles /wp-admin/users.php?page=wpum-roles4.4847.87
Settings /wp-admin/users.php?page=wpum-settings4.5449.69
Registration Forms /wp-admin/users.php?page=wpum-registration-forms4.4854.30
Directories /wp-admin/edit.php?post_type=wpum_directory4.7055.10

Server storage [IO: ▲16.96MB] [DB: ▲0.12MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,618 new files
Database: 8 new tables, 23 new options
New tables
wp_wpum_fields
wp_wpum_registration_forms
wp_wpum_fieldmeta
wp_wpum_stripe_subscriptions
wp_wpum_search_fields
wp_wpum_registration_formmeta
wp_wpum_fieldsgroups
wp_wpum_stripe_invoices
New WordPress options
wpdb_wpum_fields_version
wpum_activation_date
widget_wpum_registration_form_widget
theysaidso_admin_options
widget_wpum_login_form_widget
widget_wpum_recently_registered_users
widget_wpum_password_recovery
wpum_version
widget_recent-posts
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by WP User Manager - User Profile Builder & Membership
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,117 ▲33019.58 ▲4.875.46 ▲3.4842.31 ▼5.93
Dashboard /wp-admin2,410 ▲2339.32 ▲3.68172.14 ▲76.1432.62 ▼11.13
Posts /wp-admin/edit.php2,352 ▲2526.63 ▲4.69115.94 ▲74.5932.65 ▼6.13
Add New Post /wp-admin/post-new.php1,742 ▲21627.67 ▲4.48949.08 ▲241.9143.10 ▼7.94
Media Library /wp-admin/upload.php1,483 ▲837.25 ▲3.07136.96 ▲40.7241.03 ▲0.50
Emails /wp-admin/users.php?page=wpum-emails1,2927.38142.1544.89
Getting started with WP User Manager /wp-admin/index.php?page=wpum-getting-started1,4528.88203.1968.75
Custom Fields /wp-admin/users.php?page=wpum-custom-fields1,2039.32162.3924.47
Addons /wp-admin/users.php?page=wpum-addons1,6846.3396.1080.73
Roles /wp-admin/users.php?page=wpum-roles1,4018.02134.7527.35
Settings /wp-admin/users.php?page=wpum-settings1,6588.04160.4245.05
Registration Forms /wp-admin/users.php?page=wpum-registration-forms1,2119.32165.9524.76
Directories /wp-admin/edit.php?post_type=wpum_directory1,3236.55108.5724.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 11 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • v202_upgrade
    • widget_wpum_recently_registered_users
    • theysaidso_admin_options
    • widget_wpum_password_recovery
    • widget_recent-comments
    • widget_wpum_registration_form_widget
    • widget_wpum_login_form_widget
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-user-manager/vendor-dist/wp-user-manager/wp-optionskit/includes/views/settings-page.php
    • > /wp-content/plugins/wp-user-manager/vendor-dist/symfony/translation/Resources/bin/translation-status.php
    • > /wp-content/plugins/wp-user-manager/templates/emails/footer-none.php
    • > /wp-content/plugins/wp-user-manager/vendor-dist/masterminds/html5/bin/entities.php
    • > /wp-content/plugins/wp-user-manager/vendor-dist/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 768× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Stripe\\ApiResource' not found in wp-content/plugins/wp-user-manager/vendor-dist/stripe/stripe-php/lib/SingletonApiResource.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-user-manager/vendor-dist/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
    • > PHP Fatal error
      Trait 'WPUM\\Carbon\\Traits\\Mixin' not found in wp-content/plugins/wp-user-manager/vendor-dist/nesbot/carbon/src/Carbon/Traits/Macro.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-user-manager/vendor-dist/composer/installers/src/Composer/Installers/MicroweberInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-user-manager/vendor-dist/composer/installers/src/Composer/Installers/ZikulaInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-user-manager/vendor-dist/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wp-user-manager/vendor-dist/htmlburger/carbon-fields/core/Field/Color_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Stripe\\ApiResource' not found in wp-content/plugins/wp-user-manager/vendor-dist/stripe/stripe-php/lib/PaymentMethod.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\Dompdf\\FrameDecorator\\Block' not found in wp-content/plugins/wp-user-manager/vendor-dist/dompdf/dompdf/src/FrameDecorator/TableCell.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WPUM\\FontLib\\TrueType\\File' not found in wp-content/plugins/wp-user-manager/vendor-dist/phenx/php-font-lib/src/FontLib/EOT/File.php:16

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/users.php?page=wpum-custom-fields
    • > Console-api (warning) in wp-content/plugins/wp-user-manager/dist/static/js/vendor.js?ver=2.9.8+32:454397
    Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props
    • > GET request to /wp-admin/users.php?page=wpum-custom-fields
    • > Console-api (warning) in wp-content/plugins/wp-user-manager/dist/static/js/vendor.js?ver=2.9.8+32:454589
    Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: membership, user registration, community, user profile, members

wp-user-manager/wp-user-manager.php 92% from 13 tests

The entry point to "WP User Manager - User Profile Builder & Membership" version 2.9.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please fix the following items
  • Do not distribute dangerous files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wp-user-manager/vendor-dist/stripe/stripe-php/data/ca-certificates.crt
    • .bat - Batch File in Windows
      • wp-content/plugins/wp-user-manager/vendor-dist/nesbot/carbon/bin/carbon.bat
130,990 lines of code in 1,535 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,2187,59666,48491,007
JSON100014,835
JavaScript1902,2584,44210,127
Vuejs Component312384143,565
CSS476412033,231
PO File151,3601,9723,049
XSD392482,803
Sass1524412,258
SVG20177
XML12022
HTML20112
DOS Batch1004

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 140)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.34
▷ Minimum class complexity1.00
▷ Maximum class complexity811.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity140.00
Code structure
Namespaces138
Interfaces68
Traits39
Classes989
▷ Abstract classes585.86%
▷ Concrete classes93194.14%
▷ Final classes424.51%
Methods6,811
▷ Static methods78411.51%
▷ Public methods5,54181.35%
▷ Protected methods91113.38%
▷ Private methods3595.27%
Functions609
▷ Named functions36660.10%
▷ Anonymous functions24339.90%
Constants1,380
▷ Global constants211.52%
▷ Class constants1,35998.48%
▷ Public constants1,35199.41%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/stripe-connect.png3.59KB1.80KB▼ 49.67%
vendor-dist/dompdf/dompdf/lib/res/broken_image.png0.60KB0.47KB▼ 22.33%