68% userswp

Code Review | UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WordPress

WordPress plugin UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: userswp
  • Plugin version: 1.2.3.24
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: Nov 8, 2023
  • Number of updates: 109
  • Update frequency: every 21.1 days
  • Top authors: stiofansisland (95.41%)wpdev10 (5.5%)

Code review

54 tests

User reviews

145 reviews

Install metrics

10,000+ active /624,764 total downloads

Benchmarks

Plugin footprint 65% 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.97MB] [CPU: ▲7.87ms] 75% from 4 tests

A check of server-side resources used by UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WordPress
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,467.71ms on /wp-admin/admin.php?page=uwp-addons)
PageMemory (MB)CPU Time (ms)
Home /4.71 ▲1.2458.76 ▲9.85
Dashboard /wp-admin4.19 ▲0.8854.66 ▲6.88
Posts /wp-admin/edit.php4.24 ▲0.8846.83 ▲0.32
Add New Post /wp-admin/post-new.php8.44 ▲2.55118.60 ▲19.25
Media Library /wp-admin/upload.php4.11 ▲0.8846.29 ▲14.44
UsersWP /wp-admin/admin.php?page=userswp5.3155.47
Status /wp-admin/admin.php?page=uwp_status5.241,403.69
Form Builder /wp-admin/admin.php?page=uwp_form_builder5.22122.79
Extensions /wp-admin/admin.php?page=uwp-addons5.621,467.71
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings4.8245.01
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings4.8941.45
Tools /wp-admin/admin.php?page=uwp_tools4.9147.32

Server storage [IO: ▲12.88MB] [DB: ▲0.10MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 800 new files
Database: 5 new tables, 38 new options
New tables
wp_uwp_form_extras
wp_uwp_form_fields
wp_uwp_usermeta
wp_uwp_user_sorting
wp_uwp_profile_tabs
New WordPress options
widget_uwp_login
uwp_db_version
uwp_default_data_installed
widget_uwp_profile_tabs
widget_uwp_user_title
can_compress_scripts
widget_uwp_forgot
widget_uwp_user_cover
widget_uwp_users
widget_uwp_user_post_counts
...

Browser metrics Passed 4 tests

UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WordPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲19314.14 ▼0.2119.64 ▲17.5243.27 ▼1.03
Dashboard /wp-admin2,255 ▲755.62 ▼0.0494.57 ▲5.0246.76 ▲8.35
Posts /wp-admin/edit.php2,158 ▲582.11 ▲0.1039.82 ▲3.0539.44 ▲5.07
Add New Post /wp-admin/post-new.php6,261 ▲4,73521.72 ▼1.31911.05 ▲214.8579.79 ▲27.16
Media Library /wp-admin/upload.php1,460 ▲634.18 ▼0.01101.10 ▼14.3744.39 ▼4.07
UsersWP /wp-admin/admin.php?page=userswp2,2422.9678.5436.90
Status /wp-admin/admin.php?page=uwp_status1,8622.6036.3734.10
Form Builder /wp-admin/admin.php?page=uwp_form_builder7,0525.86241.6057.88
Extensions /wp-admin/admin.php?page=uwp-addons1,7792.6735.6645.91
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings1,1272.1722.9133.54
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings1,1072.0829.8533.45
Tools /wp-admin/admin.php?page=uwp_tools1,1442.4232.6825.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_uwp_user_sorting
    • wp_uwp_profile_tabs
    • wp_uwp_form_fields
    • wp_uwp_form_extras
  • The uninstall procedure has failed, leaving 38 options in the database
    • widget_recent-comments
    • widget_uwp_profile_actions
    • widget_uwp_users_loop_actions
    • widget_uwp_change
    • widget_uwp_user_actions
    • widget_uwp_user_title
    • uwp_setup_wizard_notice
    • widget_uwp_profile
    • widget_uwp_profile_header
    • widget_uwp_forgot
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 22× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/userswp/templates/emails/plain/uwp-email-account_delete.php
    • > /wp-content/plugins/userswp/templates/emails/plain/uwp-email-registration_activate.php
    • > /wp-content/plugins/userswp/templates/emails/uwp-email-styles.php
    • > /wp-content/plugins/userswp/templates/emails/uwp-email-forgot_password.php
    • > /wp-content/plugins/userswp/templates/emails/uwp-email-registration_activate.php
    • > /wp-content/plugins/userswp/templates/emails/uwp-email-registration_success.php
    • > /wp-content/plugins/userswp/templates/emails/uwp-email-header.php
    • > /wp-content/plugins/userswp/vendor/ayecode/wp-ayecode-ui/includes/inc/bs5-js.php
    • > /wp-content/plugins/userswp/templates/emails/uwp-email-account_delete.php
    • > /wp-content/plugins/userswp/templates/emails/plain/uwp-email-account_update.php
  • 203× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/userswp/includes/class-account.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/userswp/vendor/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/userswp/templates/bootstrap/user-avatar.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/userswp/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/userswp/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/userswp/templates/bootstrap/profile-header.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function uwp_get_page_link() in wp-content/plugins/userswp/templates/bootstrap/search-form.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/userswp/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/userswp/templates/bootstrap/forgot.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/userswp/templates/bootstrap/user-cover.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: login form, user profile, membership, members, registration form...

userswp/userswp.php 92% from 13 tests

The primary PHP file in "UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WordPress" version 1.2.3.24 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin130,354 lines of code in 703 files:
LanguageFilesBlank linesComment linesLines of code
PHP2979,36412,39552,577
JavaScript446,8094,56238,251
Sass3305,4696,41728,480
SVG30124,842
PO File11,3151,5993,142
CSS231241922,479
JSON100416
Markdown3430166
YAML1001

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 142)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity29.98
▷ Minimum class complexity1.00
▷ Maximum class complexity883.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity142.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes202
▷ Abstract classes62.97%
▷ Concrete classes19697.03%
▷ Final classes10.51%
Methods1,155
▷ Static methods20317.58%
▷ Public methods1,05291.08%
▷ Protected methods605.19%
▷ Private methods433.72%
Functions258
▷ Named functions24594.96%
▷ Anonymous functions135.04%
Constants57
▷ Global constants4477.19%
▷ Class constants1322.81%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.15MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/flags.png74.75KB25.52KB▼ 65.86%
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/ayecode/wp-super-duper/icons/placeholder.png29.55KB29.15KB▼ 1.33%
assets/css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%