Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.54MB] [CPU: ▲7.03ms] Passed 4 tests
A check of server-side resources used by Profile Extra Fields by BestWebSoft
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.07 ▲1.60 | 48.61 ▲8.21 |
Dashboard /wp-admin | 4.89 ▲1.54 | 57.28 ▼2.55 |
Posts /wp-admin/edit.php | 4.94 ▲1.58 | 67.38 ▲22.16 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.54 | 107.92 ▲2.26 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 57.14 ▲20.19 |
Server storage [IO: ▲7.43MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 150 new files
Database: 7 new tables, 8 new options
New tables |
---|
wp_prflxtrflds_roles_and_fields |
wp_prflxtrflds_user_field_data |
wp_prflxtrflds_user_roles |
wp_prflxtrflds_field_values |
wp_prflxtrflds_fields_meta |
wp_prflxtrflds_fields_id |
wp_prflxtrflds_roles_id |
New WordPress options |
---|
prflxtrflds_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
bstwbsftwppdtplgns_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Profile Extra Fields by BestWebSoft
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.63 ▲0.27 | 1.47 ▼0.23 | 40.06 ▼3.42 |
Dashboard /wp-admin | 2,242 ▲62 | 5.65 ▲0.03 | 92.43 ▲7.95 | 44.50 ▲4.85 |
Posts /wp-admin/edit.php | 2,319 ▲219 | 2.22 ▲0.25 | 36.44 ▼3.75 | 37.11 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,886 ▲357 | 24.48 ▲1.37 | 709.86 ▲58.58 | 62.59 ▲5.29 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.21 ▲0.09 | 104.88 ▼4.51 | 48.03 ▲2.24 |
Settings /wp-admin/profile-extra-fields-settings.php | 26 | 0.42 | 0.15 | 13.44 |
BWS Panel /wp-admin/profile-extra-fields.php?page=prflxtrflds-bws-panel | 26 | 0.42 | 0.09 | 5.78 |
All Fields /wp-admin/profile-extra-fields.php | 26 | 0.42 | 0.06 | 6.64 |
Add New /wp-admin/profile-extra-field-add-new.php | 26 | 0.42 | 0.12 | 5.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_prflxtrflds_fields_meta
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/profile-extra-fields/includes/class-prflxtrflds-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/profile-extra-fields/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/profile-extra-fields/profile-extra-fields.php:5849
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-extra-fields/bws_menu/class-bws-settings.php:1453
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/profile-extra-fields/profile-extra-fields.php on line 1697
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/profile-extra-fields-settings.php
- > Network (severe)
wp-admin/profile-extra-fields-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/profile-extra-fields.php?page=prflxtrflds-bws-panel
- > Network (severe)
wp-admin/profile-extra-fields.php?page=prflxtrflds-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/profile-extra-fields.php
- > Network (severe)
wp-admin/profile-extra-fields.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/profile-extra-field-add-new.php
- > Network (severe)
wp-admin/profile-extra-field-add-new.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Viewing user data via shortcode.), #2 (Field Edit Page.), #3 (Format setting for the date, time or datetime type fields.), #4 (Available values setting for the Radio button, Drop down list or Checkbox type fields.), #5 (Pattern setting for the Phone number type field.), #6 (Plugin Homepage with the list of created Extra Fields.), #7 (Viewing user information on the plugin page.), #8 (Additional fields on the user's profile page.), #9 (Datetimepicker displaying for the date, time or datetime type fields.), #10 (Shortcode settings page.), #11 (Adding Profile Extra Fields shortcode to your page or post.), #12 (Optional fields.), #13 (Car Rental fields.), #14 (Car Rental plugin with additional fields.), #15 (Additional Car Rental fields on the user profile page.)
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
profile-extra-fields/profile-extra-fields.php Passed 13 tests
This is the main PHP file of "Profile Extra Fields by BestWebSoft" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
Add extra fields to default WordPress user profile. The easiest way to create and manage additional custom values.
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
Success! There were no dangerous files found in this plugin36,262 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 6,715 | 12,509 | 16,608 |
PHP | 9 | 768 | 877 | 9,557 |
CSS | 10 | 227 | 277 | 6,094 |
JavaScript | 10 | 270 | 233 | 3,834 |
SVG | 6 | 0 | 0 | 169 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 57.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 6.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.53% |
Functions | 104 | |
▷ Named functions | 99 | 95.19% |
▷ Anonymous functions | 5 | 4.81% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
76 PNG files occupy 4.69MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/icons/plugins/bike-rental.png | 6.86KB | 2.68KB | ▼ 60.89% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
screenshot-1.png | 346.77KB | 143.11KB | ▼ 58.73% |
bws_menu/images/close_banner.png | 0.44KB | 0.49KB | 0.00% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.15KB | 0.14KB | ▼ 6.62% |