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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.71 ▲1.24 | 58.76 ▲9.85 |
Dashboard /wp-admin | 4.19 ▲0.88 | 54.66 ▲6.88 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 46.83 ▲0.32 |
Add New Post /wp-admin/post-new.php | 8.44 ▲2.55 | 118.60 ▲19.25 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 46.29 ▲14.44 |
UsersWP /wp-admin/admin.php?page=userswp | 5.31 | 55.47 |
Status /wp-admin/admin.php?page=uwp_status | 5.24 | 1,403.69 |
Form Builder /wp-admin/admin.php?page=uwp_form_builder | 5.22 | 122.79 |
Extensions /wp-admin/admin.php?page=uwp-addons | 5.62 | 1,467.71 |
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings | 4.82 | 45.01 |
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings | 4.89 | 41.45 |
Tools /wp-admin/admin.php?page=uwp_tools | 4.91 | 47.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲193 | 14.14 ▼0.21 | 19.64 ▲17.52 | 43.27 ▼1.03 |
Dashboard /wp-admin | 2,255 ▲75 | 5.62 ▼0.04 | 94.57 ▲5.02 | 46.76 ▲8.35 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.11 ▲0.10 | 39.82 ▲3.05 | 39.44 ▲5.07 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,735 | 21.72 ▼1.31 | 911.05 ▲214.85 | 79.79 ▲27.16 |
Media Library /wp-admin/upload.php | 1,460 ▲63 | 4.18 ▼0.01 | 101.10 ▼14.37 | 44.39 ▼4.07 |
UsersWP /wp-admin/admin.php?page=userswp | 2,242 | 2.96 | 78.54 | 36.90 |
Status /wp-admin/admin.php?page=uwp_status | 1,862 | 2.60 | 36.37 | 34.10 |
Form Builder /wp-admin/admin.php?page=uwp_form_builder | 7,052 | 5.86 | 241.60 | 57.88 |
Extensions /wp-admin/admin.php?page=uwp-addons | 1,779 | 2.67 | 35.66 | 45.91 |
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings | 1,127 | 2.17 | 22.91 | 33.54 |
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings | 1,107 | 2.08 | 29.85 | 33.45 |
Tools /wp-admin/admin.php?page=uwp_tools | 1,144 | 2.42 | 32.68 | 25.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 297 | 9,364 | 12,395 | 52,577 |
JavaScript | 44 | 6,809 | 4,562 | 38,251 |
Sass | 330 | 5,469 | 6,417 | 28,480 |
SVG | 3 | 0 | 12 | 4,842 |
PO File | 1 | 1,315 | 1,599 | 3,142 |
CSS | 23 | 124 | 192 | 2,479 |
JSON | 1 | 0 | 0 | 416 |
Markdown | 3 | 43 | 0 | 166 |
YAML | 1 | 0 | 0 | 1 |
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 code | 0.50 |
Average class complexity | 29.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 883.00 |
Average method complexity | 6.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 142.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 6 | 2.97% |
▷ Concrete classes | 196 | 97.03% |
▷ Final classes | 1 | 0.51% |
Methods | 1,155 | |
▷ Static methods | 203 | 17.58% |
▷ Public methods | 1,052 | 91.08% |
▷ Protected methods | 60 | 5.19% |
▷ Private methods | 43 | 3.72% |
Functions | 258 | |
▷ Named functions | 245 | 94.96% |
▷ Anonymous functions | 13 | 5.04% |
Constants | 57 | |
▷ Global constants | 44 | 77.19% |
▷ Class constants | 13 | 22.81% |
▷ Public constants | 13 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/flags.png | 74.75KB | 25.52KB | ▼ 65.86% |
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/ayecode/wp-super-duper/icons/placeholder.png | 29.55KB | 29.15KB | ▼ 1.33% |
assets/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |