Benchmarks
Plugin footprint 64% 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: ▲6.30MB] [CPU: ▲39.79ms] 50% from 4 tests
This is a short check of server-side resources used by WS Form LITE - Drag & Drop Contact Form Builder for WordPress
Please have a look at the following items
- RAM: Total memory usage should be kept under 10MB (currently 14.19MB on /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&wsf_panel_open=ws_form)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.30MB on /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&wsf_panel_open=ws_form)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.47 ▲6.00 | 85.08 ▲47.34 |
Dashboard /wp-admin | 9.74 ▲6.40 | 84.04 ▲24.81 |
Posts /wp-admin/edit.php | 9.80 ▲6.43 | 89.70 ▲41.73 |
Add New Post /wp-admin/post-new.php | 13.61 ▲7.72 | 326.24 ▲228.32 |
Media Library /wp-admin/upload.php | 9.60 ▲6.36 | 79.38 ▲45.28 |
Add New /wp-admin/admin.php?page=ws-form-add | 9.53 | 64.68 |
Settings /wp-admin/admin.php?page=ws-form-settings | 9.82 | 72.74 |
Upgrade to PRO /wp-admin/admin.php?page=ws-form-upgrade | 9.58 | 69.19 |
Forms /wp-admin/admin.php?page=ws-form | 9.53 | 66.12 |
Welcome to WS Form /wp-admin/options.php?page=ws-form-welcome | 9.68 | 66.69 |
WS Form /wp-admin/options.php?page=ws-form-edit | 9.58 | 65.30 |
Submissions /wp-admin/admin.php?page=ws-form-submit | 9.54 | 65.23 |
Add-Ons /wp-admin/admin.php?page=ws-form-add-ons | 9.58 | 68.33 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&wsf_panel_open=ws_form | 14.19 | 205.70 |
Server storage [IO: ▲16.22MB] [DB: ▲0.27MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 374 new files
Database: 11 new tables, 7 new options
New tables |
---|
wp_wsf_section |
wp_wsf_field |
wp_wsf_form_meta |
wp_wsf_submit |
wp_wsf_form |
wp_wsf_field_meta |
wp_wsf_group |
wp_wsf_group_meta |
wp_wsf_submit_meta |
wp_wsf_section_meta |
... |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_ws_form_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WS Form LITE - Drag & Drop Contact Form Builder for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 14.76 ▲0.49 | 1.68 ▼0.19 | 42.03 ▲1.95 |
Dashboard /wp-admin | 2,309 ▲134 | 5.78 ▲0.05 | 84.96 ▼23.37 | 42.17 ▲2.39 |
Posts /wp-admin/edit.php | 2,190 ▲90 | 2.02 ▲0.02 | 42.69 ▲3.01 | 34.39 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,679 ▲143 | 23.64 ▲5.28 | 648.20 ▲9.35 | 36.60 ▼23.79 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.22 ▲0.04 | 97.49 ▼4.29 | 42.03 ▼2.65 |
Add New /wp-admin/admin.php?page=ws-form-add | 1,632 | 6.59 | 68.83 | 48.28 |
Settings /wp-admin/admin.php?page=ws-form-settings | 1,502 | 3.31 | 39.93 | 28.97 |
Upgrade to PRO /wp-admin/admin.php?page=ws-form-upgrade | 869 | 1.95 | 25.88 | 22.62 |
Forms /wp-admin/admin.php?page=ws-form | 1,641 | 5.88 | 65.01 | 29.88 |
Welcome to WS Form /wp-admin/options.php?page=ws-form-welcome | 1,641 | 5.80 | 61.13 | 32.95 |
WS Form /wp-admin/options.php?page=ws-form-edit | 1,641 | 6.44 | 59.16 | 31.55 |
Submissions /wp-admin/admin.php?page=ws-form-submit | 1,634 | 6.59 | 56.23 | 29.39 |
Add-Ons /wp-admin/admin.php?page=ws-form-add-ons | 3,144 | 1.76 | 32.16 | 134.40 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&wsf_panel_open=ws_form | 10,269 | 24.64 | 701.00 | 144.78 |
Uninstaller [IO: ▲0.22MB] [DB: ▲0.27MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 11 tables
- wp_wsf_form
- wp_wsf_submit
- wp_wsf_group_meta
- wp_wsf_form_stat
- wp_wsf_field
- wp_wsf_submit_meta
- wp_wsf_section_meta
- wp_wsf_field_meta
- wp_wsf_section
- wp_wsf_group
- ...
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_ws_form_widget
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ws-form/includes/third-party/beaver-builder/modules/ws-form/includes/frontend.php
- 78× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_Data_Source' not found in wp-content/plugins/ws-form/includes/data-sources/class-ws-form-data-source-user.php:4
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_Data_Source' not found in wp-content/plugins/ws-form/includes/data-sources/class-ws-form-data-source-pods.php:4
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_Data_Source' not found in wp-content/plugins/ws-form/includes/data-sources/class-ws-form-data-source-preset.php:4
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_CSS' not found in wp-content/plugins/ws-form/includes/core/css/class-ws-form-css-layout.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/ws-form/public/preview-fallback.php:2
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_API' not found in wp-content/plugins/ws-form/api/class-ws-form-api-submit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ws-form/includes/third-party/beaver-builder/classes/class-fl-ws-form-loader.php:14
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_API' not found in wp-content/plugins/ws-form/api/class-ws-form-api-field.php:3
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_Data_Source' not found in wp-content/plugins/ws-form/includes/data-sources/class-ws-form-data-source-woocommerce.php:4
- > PHP Fatal error
Uncaught Error: Class 'WS_Form_Config' not found in wp-content/plugins/ws-form/includes/frameworks/class-ws-form-framework-ws-form.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&wsf_panel_open=ws_form
- > Security (warning) in unknown
/?customize_changeset_uuid=1ee9213f-fbfc-4705-9446-efe5ccf00e50&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
ws-form/ws-form.php Passed 13 tests
The main PHP script in "WS Form LITE - Drag & Drop Contact Form Builder for WordPress" version 1.9.172 is automatically included on every request by WordPress
28 characters long description:
Build Better WordPress Forms
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
Everything looks great! No dangerous files found in this plugin163,616 lines of code in 337 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 32,283 | 59,460 | 82,518 |
PHP | 115 | 19,555 | 9,931 | 40,864 |
JavaScript | 39 | 11,227 | 5,608 | 26,519 |
CSS | 32 | 1,742 | 55 | 12,442 |
JSON | 134 | 159 | 0 | 1,167 |
JSX | 1 | 35 | 18 | 71 |
HTML | 1 | 17 | 0 | 22 |
Twig | 1 | 0 | 0 | 9 |
SVG | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 221)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 77.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 951.00 |
Average method complexity | 6.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 221.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 90 | |
▷ Abstract classes | 2 | 2.22% |
▷ Concrete classes | 88 | 97.78% |
▷ Final classes | 1 | 1.14% |
Methods | 1,101 | |
▷ Static methods | 361 | 32.79% |
▷ Public methods | 1,088 | 98.82% |
▷ Protected methods | 2 | 0.18% |
▷ Private methods | 11 | 1.00% |
Functions | 220 | |
▷ Named functions | 41 | 18.64% |
▷ Anonymous functions | 179 | 81.36% |
Constants | 102 | |
▷ Global constants | 78 | 76.47% |
▷ Class constants | 24 | 23.53% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/jquery/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
public/images/external/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
public/images/external/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
admin/jquery/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
public/images/external/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |