10% user-registration-aide

Code Review | User Registration Aide

WordPress plugin User Registration Aide scored 10% from 54 tests.

About plugin

  • Plugin page: user-registration...
  • Plugin version: 1.5.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.3
  • WordPress version: 6.3.1
  • First release: Jul 31, 2012
  • Latest release: May 1, 2017
  • Number of updates: 163
  • Update frequency: every 10.6 days
  • Top authors: bnovotny (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

200+ active / 78,027 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/user-registration-aide/user-registration-aide.php+168
    Methods with the same name as their class will not be constructors in a future version of PHP; CSDS_USER_REG_AIDE has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼52.24ms] Passed 4 tests

This is a short check of server-side resources used by User Registration Aide
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.284.06 ▼36.47
Dashboard /wp-admin2.20 ▼1.116.84 ▼45.91
Posts /wp-admin/edit.php2.20 ▼1.166.67 ▼40.23
Add New Post /wp-admin/post-new.php2.20 ▼3.695.62 ▼86.36
Media Library /wp-admin/upload.php2.20 ▼1.034.95 ▼27.45
Custom Options /wp-admin/admin.php?page=custom-options2.205.49
Registration Form Options /wp-admin/admin.php?page=registration-form-options2.206.28
Registration Form Messages & CSS Options /wp-admin/admin.php?page=registration-form-css-options2.205.67
Edit New Fields /wp-admin/admin.php?page=edit-new-fields2.206.64
User Registration Aide /wp-admin/admin.php?page=user-registration-aide2.205.22

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 156 new files
Database: 1 new table, 9 new options
New tables
wp_ura_fields
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
csds_userRegAide_knownFields
widget_theysaidso_widget
widget_recent-posts
csds_userRegAide_Options
can_compress_scripts
csds_userRegAideFields

Browser metrics Passed 4 tests

A check of browser resources used by User Registration Aide
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲20113.48 ▼0.571.50 ▼0.3929.39 ▼19.77
Dashboard /wp-admin2,340 ▲1525.17 ▲0.05115.93 ▲13.4587.29 ▲40.62
Posts /wp-admin/edit.php2,146 ▲572.29 ▲0.2541.92 ▲1.6531.09 ▼2.79
Add New Post /wp-admin/post-new.php1,565 ▲3218.30 ▼4.93626.47 ▲39.3035.98 ▼16.55
Media Library /wp-admin/upload.php1,440 ▲524.42 ▲0.2597.80 ▼7.4938.85 ▼3.73
Custom Options /wp-admin/admin.php?page=custom-options1,2832.1130.1346.98
Registration Form Options /wp-admin/admin.php?page=registration-form-options1,2512.1228.4235.41
Registration Form Messages & CSS Options /wp-admin/admin.php?page=registration-form-css-options1,2462.0930.2036.47
Edit New Fields /wp-admin/admin.php?page=edit-new-fields1,2792.1028.9745.20
User Registration Aide /wp-admin/admin.php?page=user-registration-aide1,5491.9942.5042.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/user-registration-aide/user-registration-aide.php+168
    Methods with the same name as their class will not be constructors in a future version of PHP; CSDS_USER_REG_AIDE has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=user-registration-aide
    • > Deprecated in wp-content/plugins/user-registration-aide/user-registration-aide.php+168
    Methods with the same name as their class will not be constructors in a future version of PHP; CSDS_USER_REG_AIDE has a deprecated constructor
    • > GET request to /wp-admin/admin.php?page=registration-form-css-options
    • > Notice in wp-content/plugins/user-registration-aide/classes/ura-dash-msgs.php+249
    Undefined variable: tab

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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/user-registration-aide/css/user-reg-aide-style-old.php
    • > /wp-content/plugins/user-registration-aide/css/user-reg-aide-style.php
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/user-registration-aide/templates/ura-lost-password.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-registration-aide/templates/ura-account-locked-out.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'URA_MEMBERS_ACTIONS' not found in wp-content/plugins/user-registration-aide/templates/ura-email-confirm.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/user-registration-aide/themes/index.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/user-registration-aide/templates/ura-update-password.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-registration-aide/ura-functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-registration-aide/templates/ura-template-loader.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_screen_options_panel() in wp-content/plugins/user-registration-aide/controllers/ura-screen-options-controller.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_nav_menu() in wp-content/plugins/user-registration-aide/themes/sidebar.php:10
    • > 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/user-registration-aide/user-registration-aide.php on line 33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
Attributes that need to be fixed:
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can look at the official readme.txt

user-registration-aide/user-registration-aide.php 92% from 13 tests

The primary PHP file in "User Registration Aide" version 1.5.3.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 965 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected61,849 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PO File89,70313,31630,519
PHP972,9237,06322,383
CSS121,5333927,815
SVG103540
JavaScript17125153490
Markdown1500102

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 129)
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity40.35
▷ Minimum class complexity1.00
▷ Maximum class complexity203.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity129.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes81
▷ Abstract classes00.00%
▷ Concrete classes81100.00%
▷ Final classes00.00%
Methods478
▷ Static methods10.21%
▷ Public methods47799.79%
▷ Protected methods00.00%
▷ Private methods10.21%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.12MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/csds-dash_logo.png119.25KB11.67KB▼ 90.21%