Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲3.16MB] [CPU: ▲31.30ms] Passed 4 tests
An overview of server-side resources used by User Registration - Custom Registration Form, Login Form And User Profile For WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.21 ▲2.75 | 72.20 ▲32.94 |
Dashboard /wp-admin | 6.61 ▲3.30 | 76.54 ▲29.52 |
Posts /wp-admin/edit.php | 6.66 ▲3.30 | 82.25 ▲35.16 |
Add New Post /wp-admin/post-new.php | 9.22 ▲3.33 | 113.22 ▲27.57 |
Media Library /wp-admin/upload.php | 6.52 ▲3.29 | 71.46 ▲39.88 |
Tools /wp-admin/admin.php?page=user-registration-status | 6.57 | 63.65 |
Add New /wp-admin/admin.php?page=add-new-registration | 9.85 | 426.72 |
Settings /wp-admin/admin.php?page=user-registration-settings | 7.12 | 72.31 |
All Forms /wp-admin/admin.php?page=user-registration | 6.71 | 78.68 |
Extensions /wp-admin/admin.php?page=user-registration-addons | 6.83 | 86.86 |
Server storage [IO: ▲9.90MB] [DB: ▲0.47MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 652 new files
Database: 1 new table, 20 new options
New tables |
---|
wp_user_registration_sessions |
New WordPress options |
---|
user_registration_activated |
db_upgraded |
user_registration_db_version |
can_compress_scripts |
widget_recent-posts |
user_registration_admin_notices |
user_registration_enable_auto_generated_password_email |
widget_recent-comments |
widget_theysaidso_widget |
user_registration_captcha_setting_invisible_recaptcha_v2 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for User Registration - Custom Registration Form, Login Form And User Profile For WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,121 ▲359 | 13.77 ▼0.60 | 7.85 ▲6.16 | 40.66 ▼5.57 |
Dashboard /wp-admin | 2,494 ▲314 | 5.33 ▼0.30 | 109.00 ▲17.88 | 89.09 ▲49.45 |
Posts /wp-admin/edit.php | 2,251 ▲148 | 2.45 ▲0.44 | 32.35 ▼1.63 | 31.49 ▼2.85 |
Add New Post /wp-admin/post-new.php | 6,493 ▲4,967 | 30.46 ▲7.68 | 1,025.33 ▲351.73 | 39.09 ▼20.59 |
Media Library /wp-admin/upload.php | 1,546 ▲149 | 4.55 ▲0.40 | 105.07 ▲4.31 | 42.86 ▲1.03 |
Tools /wp-admin/admin.php?page=user-registration-status | 1,028 | 3.25 | 87.51 | 29.61 |
Add New /wp-admin/admin.php?page=add-new-registration | 2,467 | 4.82 | 71.51 | 50.91 |
Settings /wp-admin/admin.php?page=user-registration-settings | 1,631 | 3.85 | 79.55 | 54.08 |
All Forms /wp-admin/admin.php?page=user-registration | 1,451 | 3.25 | 50.50 | 36.26 |
Extensions /wp-admin/admin.php?page=user-registration-addons | 2,244 | 3.22 | 44.71 | 51.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.47MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_user_registration_sessions
- Zombie WordPress options detected upon uninstall: 19 options
- user_registration_migration_version
- user_registration_default_form_page_id
- user_registration_db_version
- user_registration_captcha_setting_recaptcha_version
- user_registration_enable_auto_generated_password_email
- widget_theysaidso_widget
- user_registration_admin_notices
- theysaidso_admin_options
- can_compress_scripts
- ur_profile_picture_migrated
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
file_get_contents(wp-content/plugins/user-registration/composer.json): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/user-registration/tests/wp-tests-config.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/user-registration/includes/abstracts/abstract-ur-list-table.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/user-registration/tests/phpunit/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-registration/tests/phpunit/bootstrap.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/user-registration/tests/wp-tests-config.php on line 7
- > PHP Warning
require_once(wp-content/plugins/user-registration/tests/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/user-registration/tests/wp-config.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/user-registration/tests/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-registration/tests/wp-config.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-registration/includes/abstracts/abstract-ur-list-table.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/user-registration/tests/wp-tests-config.php on line 7
- > PHP Warning
require_once(wp-content/plugins/user-registration/tests/phpunit/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/user-registration/tests/phpunit/bootstrap.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-registration/includes/abstracts/abstract-ur-list-table.php on line 9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: registration, user registration, login form, user profile, registration form
user-registration/user-registration.php Passed 13 tests
The main PHP script in "User Registration - Custom Registration Form, Login Form And User Profile For WordPress" version 3.1.1 is automatically included on every request by WordPress
60 characters long description:
Drag and Drop user registration form and login form builder.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin91,390 lines of code in 543 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 210 | 8,360 | 4,367 | 50,727 |
PHP | 201 | 5,717 | 9,299 | 25,901 |
Sass | 39 | 1,536 | 171 | 8,941 |
CSS | 37 | 344 | 182 | 5,069 |
JSON | 2 | 0 | 0 | 422 |
SVG | 51 | 0 | 1 | 242 |
XML | 3 | 3 | 0 | 88 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 23.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 10 | 8.13% |
▷ Concrete classes | 113 | 91.87% |
▷ Final classes | 1 | 0.88% |
Methods | 918 | |
▷ Static methods | 268 | 29.19% |
▷ Public methods | 798 | 86.93% |
▷ Protected methods | 45 | 4.90% |
▷ Private methods | 75 | 8.17% |
Functions | 236 | |
▷ Named functions | 214 | 90.68% |
▷ Anonymous functions | 22 | 9.32% |
Constants | 52 | |
▷ Global constants | 36 | 69.23% |
▷ Class constants | 16 | 30.77% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
86 PNG files occupy 0.79MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/extensions-json/sections/images/stripe.png | 10.64KB | 10.64KB | 0.00% |
assets/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/extensions-json/sections/images/customize-my-account.png | 5.38KB | 2.54KB | ▼ 52.88% |
assets/images/login_form.png | 17.40KB | 5.98KB | ▼ 65.62% |