68% wp-user-frontend

Code Review | WP User Frontend - Registration, User Profile, Membership, Content Restriction, User Directory, and Frontend Post Submission Plugin

WordPress plugin WP User Frontend - Registration, User Profile, Membership, Content Restriction, User Directory, and Frontend Post Submission Plugin scored 68% from 54 tests.

About plugin

  • Plugin page: wp-user-frontend
  • Plugin version: 3.6.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 10, 2011
  • Latest release: Sep 11, 2023
  • Number of updates: 224
  • Update frequency: every 20.7 days
  • Top authors: tareq1988 (75%)rabbii (13.84%)sohelamin (7.14%)rafsuntaskin (5.36%)

Code review

54 tests

User reviews

475 reviews

Install metrics

20,000+ active / 1,354,960 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲4.64MB] [CPU: ▲26.88ms] Passed 4 tests

An overview of server-side resources used by WP User Frontend - Registration, User Profile, Membership, Content Restriction, User Directory, and Frontend Post Submission Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.02 ▲3.5676.46 ▲29.97
Dashboard /wp-admin8.31 ▲5.01145.36 ▲95.73
Posts /wp-admin/edit.php8.31 ▲4.9588.54 ▲37.59
Add New Post /wp-admin/post-new.php11.01 ▲5.13113.17 ▲5.58
Media Library /wp-admin/upload.php8.25 ▲5.0272.34 ▲34.38
Help /wp-admin/admin.php?page=wpuf-support8.30382.83
Subscriptions /wp-admin/edit.php?post_type=wpuf_subscription8.2570.36
Settings /wp-admin/admin.php?page=wpuf-settings8.5877.20
Transactions /wp-admin/admin.php?page=wpuf_transaction8.2871.87
Tools /wp-admin/admin.php?page=wpuf_tools8.3065.29
Premium /wp-admin/admin.php?page=wpuf_premium8.2165.00
Registration Forms /wp-admin/admin.php?page=wpuf-profile-forms8.2664.31
Modules /wp-admin/admin.php?page=wpuf-modules8.3068.04
Coupons /wp-admin/admin.php?page=wpuf_coupon8.1668.19
Whats New /wp-admin/admin.php?page=whats-new-wpuf8.6271.98

Server storage [IO: ▲12.32MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 539 new files
Database: 2 new tables, 26 new options
New tables
wp_wpuf_transaction
wp_wpuf_subscribers
New WordPress options
theysaidso_admin_options
wpuf_privacy
wpuf_payment_tax
wpuf_address_options
widget_wpuf_login_widget
widget_recent-comments
wpuf_profile
wpuf_dashboard
widget_recent-posts
wpuf_content_restriction
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP User Frontend - Registration, User Profile, Membership, Content Restriction, User Directory, and Frontend Post Submission Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,274 ▲53914.76 ▲0.3926.76 ▲24.4841.92 ▼6.43
Dashboard /wp-admin2,466 ▲2754.98 ▼0.10103.56 ▲0.8977.36 ▲31.48
Posts /wp-admin/edit.php2,229 ▲1402.32 ▲0.2739.59 ▼1.7936.17 ▲0.68
Add New Post /wp-admin/post-new.php1,982 ▲46320.73 ▼2.43743.49 ▲92.8743.21 ▼13.66
Media Library /wp-admin/upload.php1,515 ▲1274.32 ▲0.0699.40 ▲3.5875.62 ▲29.59
Help /wp-admin/admin.php?page=wpuf-support1,8441.8730.0037.87
Subscriptions /wp-admin/edit.php?post_type=wpuf_subscription1,2172.2840.1633.81
Settings /wp-admin/admin.php?page=wpuf-settings5,79910.14206.05101.51
Transactions /wp-admin/admin.php?page=wpuf_transaction1,2581.8530.1430.55
Tools /wp-admin/admin.php?page=wpuf_tools1,1903.6550.0628.35
Premium /wp-admin/admin.php?page=wpuf_premium1,3452.0430.3892.86
Registration Forms /wp-admin/admin.php?page=wpuf-profile-forms1,6943.3442.1494.85
Modules /wp-admin/admin.php?page=wpuf-modules2,2853.5446.73109.26
Coupons /wp-admin/admin.php?page=wpuf_coupon9191.8028.6826.44
Whats New /wp-admin/admin.php?page=whats-new-wpuf6,5201.9231.9068.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_wpuf_transaction
    • wp_wpuf_subscribers
  • This plugin did not uninstall successfully, leaving 26 options in the database
    • wpuf_my_account
    • wpuf_mails
    • wpuf_content_restriction
    • wpuf_address_options
    • wpuf_whats_new
    • wpuf_payment_invoices
    • wpuf_dashboard
    • user_directory
    • wpuf_installed
    • wpuf_privacy
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 26× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/form-post_title/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/field-radio/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/field-text-meta/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/form-checkbox_field/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/form-radio_field/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/help-text/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/form-website_url/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/field-checkbox/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/form-textarea_field/template.php
    • > /wp-content/plugins/wp-user-frontend/admin/form-builder/assets/js/components/form-fields/template.php
  • 134× 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 wp_kses_post() in wp-content/plugins/wp-user-frontend/templates/dashboard/dashboard.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/wp-user-frontend/templates/wc-marketplace/edit-post.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_avatar() in wp-content/plugins/wp-user-frontend/templates/logged-in.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-user-frontend/admin/html/form-settings-post-edit.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WPUF_Post_Form_Template' not found in wp-content/plugins/wp-user-frontend/includes/free/post-form-templates/the_events_calendar.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPUF_Field_Contract' not found in wp-content/plugins/wp-user-frontend/includes/fields/class-field-pro.php:3
    • > PHP Warning
      Use of undefined constant WPUF_ROOT - assumed 'WPUF_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-user-frontend/templates/wc-marketplace/posts.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-user-frontend/templates/registration-form.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wp-user-frontend/includes/upgrades/upgrade-2.8.2.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-user-frontend/templates/dashboard/list.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

wp-user-frontend/wpuf.php 92% from 13 tests

The main file in "WP User Frontend - Registration, User Profile, Membership, Content Restriction, User Directory, and Frontend Post Submission Plugin" v. 3.6.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-user-frontend.php" instead of "wpuf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin105,019 lines of code in 408 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1078,3025,88539,353
PHP2026,8258,19335,435
CSS2636313311,055
PO File54,6895,5949,981
LESS209391365,184
SVG42002,850
Sass21409660
JSON200254
Markdown1670215
YAML17032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity27.23
▷ Minimum class complexity1.00
▷ Maximum class complexity289.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes127
▷ Abstract classes21.57%
▷ Concrete classes12598.43%
▷ Final classes10.80%
Methods1,067
▷ Static methods10710.03%
▷ Public methods1,01294.85%
▷ Protected methods80.75%
▷ Private methods474.40%
Functions171
▷ Named functions16093.57%
▷ Anonymous functions116.43%
Constants14
▷ Global constants964.29%
▷ Class constants535.71%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
87 PNG files occupy 2.28MB with 1.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/whats-new/category.png44.68KB15.68KB▼ 64.90%
assets/images/add.png3.37KB0.66KB▼ 80.54%
assets/images/welcome/frontend-posting.png1.56KB1.52KB▼ 2.57%
assets/images/modules/wpuf-mailchimp.png48.93KB24.60KB▼ 49.72%
assets/images/modules/campaign_monitor.png21.85KB9.39KB▼ 57.01%