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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.02 ▲3.56 | 76.46 ▲29.97 |
Dashboard /wp-admin | 8.31 ▲5.01 | 145.36 ▲95.73 |
Posts /wp-admin/edit.php | 8.31 ▲4.95 | 88.54 ▲37.59 |
Add New Post /wp-admin/post-new.php | 11.01 ▲5.13 | 113.17 ▲5.58 |
Media Library /wp-admin/upload.php | 8.25 ▲5.02 | 72.34 ▲34.38 |
Help /wp-admin/admin.php?page=wpuf-support | 8.30 | 382.83 |
Subscriptions /wp-admin/edit.php?post_type=wpuf_subscription | 8.25 | 70.36 |
Settings /wp-admin/admin.php?page=wpuf-settings | 8.58 | 77.20 |
Transactions /wp-admin/admin.php?page=wpuf_transaction | 8.28 | 71.87 |
Tools /wp-admin/admin.php?page=wpuf_tools | 8.30 | 65.29 |
Premium /wp-admin/admin.php?page=wpuf_premium | 8.21 | 65.00 |
Registration Forms /wp-admin/admin.php?page=wpuf-profile-forms | 8.26 | 64.31 |
Modules /wp-admin/admin.php?page=wpuf-modules | 8.30 | 68.04 |
Coupons /wp-admin/admin.php?page=wpuf_coupon | 8.16 | 68.19 |
Whats New /wp-admin/admin.php?page=whats-new-wpuf | 8.62 | 71.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,274 ▲539 | 14.76 ▲0.39 | 26.76 ▲24.48 | 41.92 ▼6.43 |
Dashboard /wp-admin | 2,466 ▲275 | 4.98 ▼0.10 | 103.56 ▲0.89 | 77.36 ▲31.48 |
Posts /wp-admin/edit.php | 2,229 ▲140 | 2.32 ▲0.27 | 39.59 ▼1.79 | 36.17 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,982 ▲463 | 20.73 ▼2.43 | 743.49 ▲92.87 | 43.21 ▼13.66 |
Media Library /wp-admin/upload.php | 1,515 ▲127 | 4.32 ▲0.06 | 99.40 ▲3.58 | 75.62 ▲29.59 |
Help /wp-admin/admin.php?page=wpuf-support | 1,844 | 1.87 | 30.00 | 37.87 |
Subscriptions /wp-admin/edit.php?post_type=wpuf_subscription | 1,217 | 2.28 | 40.16 | 33.81 |
Settings /wp-admin/admin.php?page=wpuf-settings | 5,799 | 10.14 | 206.05 | 101.51 |
Transactions /wp-admin/admin.php?page=wpuf_transaction | 1,258 | 1.85 | 30.14 | 30.55 |
Tools /wp-admin/admin.php?page=wpuf_tools | 1,190 | 3.65 | 50.06 | 28.35 |
Premium /wp-admin/admin.php?page=wpuf_premium | 1,345 | 2.04 | 30.38 | 92.86 |
Registration Forms /wp-admin/admin.php?page=wpuf-profile-forms | 1,694 | 3.34 | 42.14 | 94.85 |
Modules /wp-admin/admin.php?page=wpuf-modules | 2,285 | 3.54 | 46.73 | 109.26 |
Coupons /wp-admin/admin.php?page=wpuf_coupon | 919 | 1.80 | 28.68 | 26.44 |
Whats New /wp-admin/admin.php?page=whats-new-wpuf | 6,520 | 1.92 | 31.90 | 68.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
- > PHP Fatal error
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:
- Screenshots: Please a description for screenshot #19 in wp-user-frontend/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 107 | 8,302 | 5,885 | 39,353 |
PHP | 202 | 6,825 | 8,193 | 35,435 |
CSS | 26 | 363 | 133 | 11,055 |
PO File | 5 | 4,689 | 5,594 | 9,981 |
LESS | 20 | 939 | 136 | 5,184 |
SVG | 42 | 0 | 0 | 2,850 |
Sass | 2 | 140 | 9 | 660 |
JSON | 2 | 0 | 0 | 254 |
Markdown | 1 | 67 | 0 | 215 |
YAML | 1 | 7 | 0 | 32 |
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 code | 0.39 |
Average class complexity | 27.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 289.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 127 | |
▷ Abstract classes | 2 | 1.57% |
▷ Concrete classes | 125 | 98.43% |
▷ Final classes | 1 | 0.80% |
Methods | 1,067 | |
▷ Static methods | 107 | 10.03% |
▷ Public methods | 1,012 | 94.85% |
▷ Protected methods | 8 | 0.75% |
▷ Private methods | 47 | 4.40% |
Functions | 171 | |
▷ Named functions | 160 | 93.57% |
▷ Anonymous functions | 11 | 6.43% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/whats-new/category.png | 44.68KB | 15.68KB | ▼ 64.90% |
assets/images/add.png | 3.37KB | 0.66KB | ▼ 80.54% |
assets/images/welcome/frontend-posting.png | 1.56KB | 1.52KB | ▼ 2.57% |
assets/images/modules/wpuf-mailchimp.png | 48.93KB | 24.60KB | ▼ 49.72% |
assets/images/modules/campaign_monitor.png | 21.85KB | 9.39KB | ▼ 57.01% |