Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.55MB] [CPU: ▲10.01ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.56 | 45.87 ▲7.36 |
Dashboard /wp-admin | 4.86 ▲1.52 | 55.89 ▼1.28 |
Posts /wp-admin/edit.php | 4.98 ▲1.62 | 66.36 ▲15.22 |
Add New Post /wp-admin/post-new.php | 7.46 ▲1.58 | 116.30 ▲20.31 |
Media Library /wp-admin/upload.php | 4.78 ▲1.55 | 54.24 ▲18.75 |
Statistics /wp-admin/edit.php?post_type=form&page=statistics | 4.80 | 51.62 |
Settings /wp-admin/edit.php?post_type=form&page=wplf-settings | 4.85 | 44.40 |
All Forms /wp-admin/edit.php?post_type=form | 4.84 | 45.55 |
Form Entries /wp-admin/edit.php?post_type=form&page=form-entries | 4.81 | 42.31 |
Add New /wp-admin/post-new.php?post_type=form | 4.84 | 51.79 |
Server storage [IO: ▲5.93MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 252 new files
Database: 7 new tables, 8 new options
New tables |
---|
wp_liveforms_addons_active |
wp_liveforms_replies |
wp_liveforms_addons_form_details |
wp_liveforms_conreqs |
wp_liveforms_payments |
wp_liveforms_stats |
wp_liveforms_addons |
New WordPress options |
---|
widget_theysaidso_widget |
__wpdm_enc_key |
widget_recent-comments |
can_compress_scripts |
__wplf_api_key |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲233 | 13.67 ▼0.78 | 6.38 ▲4.51 | 42.36 ▼1.85 |
Dashboard /wp-admin | 2,286 ▲98 | 4.86 ▼0.96 | 108.22 ▲2.34 | 42.42 ▼2.13 |
Posts /wp-admin/edit.php | 2,176 ▲90 | 2.00 ▼0.00 | 46.46 ▲10.31 | 36.07 ▲1.84 |
Add New Post /wp-admin/post-new.php | 6,392 ▲4,859 | 27.61 ▲4.41 | 929.21 ▲238.37 | 38.96 ▼24.00 |
Media Library /wp-admin/upload.php | 1,468 ▲86 | 4.25 ▲0.04 | 102.11 ▲4.24 | 42.59 ▼5.80 |
Statistics /wp-admin/edit.php?post_type=form&page=statistics | 1,137 | 2.49 | 53.44 | 35.39 |
Settings /wp-admin/edit.php?post_type=form&page=wplf-settings | 1,115 | 2.45 | 32.10 | 75.77 |
All Forms /wp-admin/edit.php?post_type=form | 1,188 | 2.40 | 39.89 | 29.36 |
Form Entries /wp-admin/edit.php?post_type=form&page=form-entries | 958 | 2.50 | 28.76 | 28.35 |
Add New /wp-admin/post-new.php?post_type=form | 1,711 | 3.19 | 56.50 | 98.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_liveforms_replies
- wp_liveforms_payments
- wp_liveforms_addons_form_details
- wp_liveforms_addons_active
- wp_liveforms_conreqs
- wp_liveforms_stats
- wp_liveforms_addons
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- __wpdm_enc_key
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- __wplf_api_key
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=form&page=form-entries
- > Notice in wp-content/plugins/liveforms/views/admin/form-entries.php+211
Undefined index: form_id
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
Almost there! Just fix the following items
- 50× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/liveforms/views/showreqs_ajax.php
- > /wp-content/plugins/liveforms/views/submitted.view.php
- > /wp-content/plugins/liveforms/views/form-builder.php
- > /wp-content/plugins/liveforms/libs/Form/Form.php
- > /wp-content/plugins/liveforms/views/builder/cond-logic-template.php
- > /wp-content/plugins/liveforms/views/showform.ajax.view.php
- > /wp-content/plugins/liveforms/views/form-ui/default.php
- > /wp-content/plugins/liveforms/views/builder/sidebar-backup.php
- > /wp-content/plugins/liveforms/views/builder/settings/support-form.php
- > /wp-content/plugins/liveforms/views/admin/form-entries.php
- 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/likert.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/paratext.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/hidden.class.php:2
- > PHP Warning
Use of undefined constant LF_BASE_DIR - assumed 'LF_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/liveforms/libs/__/Session.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/date.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/recaptcha.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/text.class.php:5
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/checkbox.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/select.class.php:2
- > PHP Warning
reset() expects parameter 1 to be array, null given in wp-content/plugins/liveforms/views/form/entries.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: contact form builder, contact form, support form, contact forms, form builder plugin...
liveforms/liveforms.php Passed 13 tests
The principal PHP file in "WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms" v. 4.7.1 is loaded by WordPress automatically on each request
41 characters long description:
Drag and Drop Form Builder Form WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected45,162 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 1,959 | 1,131 | 14,089 |
CSS | 18 | 1,909 | 1,327 | 13,508 |
SVG | 7 | 2 | 13 | 9,586 |
JavaScript | 25 | 447 | 853 | 6,824 |
HTML | 4 | 110 | 73 | 678 |
PO File | 1 | 204 | 255 | 476 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 2 | 2.86% |
▷ Concrete classes | 68 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 462 | |
▷ Static methods | 78 | 16.88% |
▷ Public methods | 456 | 98.70% |
▷ Protected methods | 2 | 0.43% |
▷ Private methods | 4 | 0.87% |
Functions | 34 | |
▷ Named functions | 32 | 94.12% |
▷ Anonymous functions | 2 | 5.88% |
Constants | 8 | |
▷ Global constants | 8 | 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
35 PNG files occupy 0.51MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/jqui/theme/images/slider_handles.png | 1.90KB | 1.31KB | ▼ 30.90% |
assets/intl-tel-input/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/jqui/theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
assets/images/creditcards.png | 24.14KB | 6.69KB | ▼ 72.30% |
assets/previews/donation.png | 28.75KB | 11.83KB | ▼ 58.86% |