67% ultimate-member

Code Review | Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin

WordPress plugin Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin scored67%from 54 tests.

About plugin

  • Plugin page: ultimate-member
  • Plugin version: 2.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Oct 11, 2023
  • Number of updates: 679
  • Update frequency: every 4.7 days
  • Top authors: ultimatemember (56.85%)nsinelnikov (26.8%)champsupertramp (16.64%)

Code review

54 tests

User reviews

1396 reviews

Install metrics

200,000+ active /9,160,377 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲7.67MB] [CPU: ▲44.10ms] 50% from 4 tests

Analyzing server-side resources used by Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin
Please have a look at the following items
  • RAM: The total memory usage must be kept under 10MB (currently 11.83MB on /wp-admin/admin.php?page=ultimatemember-extensions)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 7.67MB on /wp-admin/admin.php?page=ultimatemember-extensions)
PageMemory (MB)CPU Time (ms)
Home /8.59 ▲5.1383.74 ▲37.21
Dashboard /wp-admin11.79 ▲8.4499.48 ▲37.42
Posts /wp-admin/edit.php11.92 ▲8.56105.65 ▲55.23
Add New Post /wp-admin/post-new.php16.18 ▲10.30147.30 ▲46.53
Media Library /wp-admin/upload.php11.79 ▲8.56104.20 ▲62.82
Member Directories /wp-admin/edit.php?post_type=um_directory11.9297.44
Dashboard /wp-admin/admin.php?page=ultimatemember11.7997.82
Settings /wp-admin/admin.php?page=um_options12.3390.80
User Roles /wp-admin/admin.php?page=um_roles11.8288.85
Forms /wp-admin/edit.php?post_type=um_form12.32104.14
Extensions /wp-admin/admin.php?page=ultimatemember-extensions11.83100.76

Server storage [IO: ▲6.35MB] [DB: ▲0.07MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/ultimate-member/" and "wp-content/uploads/"
    • (new file) wp-content/languages/plugins/.empty
Filesystem: 549 new files
Database: 1 new table, 22 new options
New tables
wp_um_metadata
New WordPress options
um_last_version_upgrade
um_role_editor_meta
db_upgraded
um_is_installed
um_role_author_meta
widget_theysaidso_widget
um_core_directories
widget_recent-comments
um_first_activation_date
um_cache_fonticons
...

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,147 ▲36114.41 ▼0.1528.69 ▲26.6543.18 ▼0.44
Dashboard /wp-admin2,278 ▲1045.60 ▼0.0195.80 ▲7.0242.79 ▲2.37
Posts /wp-admin/edit.php2,472 ▲3724.25 ▲2.2772.94 ▲35.1132.00 ▼1.78
Add New Post /wp-admin/post-new.php6,701 ▲5,17320.66 ▼2.45978.61 ▲317.6439.15 ▼15.93
Media Library /wp-admin/upload.php1,486 ▲864.24 ▼0.01106.14 ▲0.2147.95 ▲1.19
Member Directories /wp-admin/edit.php?post_type=um_directory1,9954.2567.7333.57
Dashboard /wp-admin/admin.php?page=ultimatemember1,4614.4869.4944.19
Settings /wp-admin/admin.php?page=um_options1,3223.9346.9427.54
User Roles /wp-admin/admin.php?page=um_roles1,5223.8947.2628.04
Forms /wp-admin/edit.php?post_type=um_form3,3009.17188.1139.04
Extensions /wp-admin/admin.php?page=ultimatemember-extensions2,0363.8245.4683.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_um_metadata
  • This plugin does not fully uninstall, leaving 22 options in the database
    • um_role_contributor_meta
    • can_compress_scripts
    • um_version
    • um_role_administrator_meta
    • um_core_directories
    • db_upgraded
    • widget_recent-comments
    • um_last_version_upgrade
    • theysaidso_admin_options
    • um_role_subscriber_meta
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultimate-member/includes/admin/core/packages/1.3.39/init.php
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UM() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/content_restriction.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/styles.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_post_type() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/user_roles.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/menus.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/mc_lists.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/init.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UM() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0.10/styles.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0.10/init.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-member/includes/admin/core/packages/2.0-beta1/um_cpt.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

ultimate-member/ultimate-member.php Passed 13 tests

"Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin" version 2.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
The easiest way to create powerful online communities and beautiful user profiles with WordPress

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected84,743 lines of code in 497 files:
LanguageFilesBlank linesComment linesLines of code
PHP25412,15320,85847,805
JavaScript1675,0353,57019,426
CSS432,02949611,441
SVG24034,936
Sass510041,080
JSON40055

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 357)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity75.98
▷ Minimum class complexity1.00
▷ Maximum class complexity880.00
Average method complexity5.92
▷ Minimum method complexity1.00
▷ Maximum method complexity357.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes82
▷ Abstract classes00.00%
▷ Concrete classes82100.00%
▷ Final classes33.66%
Methods1,251
▷ Static methods302.40%
▷ Public methods1,21597.12%
▷ Protected methods120.96%
▷ Private methods241.92%
Functions301
▷ Named functions27089.70%
▷ Anonymous functions3110.30%
Constants25
▷ Global constants1456.00%
▷ Class constants1144.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/libs/jquery-ui/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/libs/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%
assets/img/extensions/jobboardwp.png17.33KB5.67KB▼ 67.30%
assets/img/extensions/google-recaptcha.png23.30KB11.42KB▼ 51.00%
includes/admin/assets/img/logo-header.png3.70KB1.82KB▼ 50.91%