Benchmarks
Plugin footprint 63% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲10.16MB] [CPU: ▲78.23ms] 25% from 4 tests
This is a short check of server-side resources used by Contact Form by WPForms - Drag & Drop Form Builder for WordPress
Please have a look at the following items
- RAM: Try to keep total memory usage under 10MB (currently 14.19MB on /wp-admin/admin.php?page=wpforms-smtp)
- CPU: Total CPU usage should be kept under 500.00ms (currently 577.83ms on /wp-admin/admin.php?page=wpforms-templates)
- Extra RAM: The extra memory usage should kept under 5MB (currently 10.16MB on /wp-admin/admin.php?page=wpforms-smtp)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 12.59 ▲9.12 | 96.45 ▲52.37 |
Dashboard /wp-admin | 13.88 ▲10.53 | 134.34 ▲75.75 |
Posts /wp-admin/edit.php | 13.90 ▲10.54 | 143.23 ▲94.30 |
Add New Post /wp-admin/post-new.php | 16.43 ▲10.54 | 190.24 ▲90.48 |
Media Library /wp-admin/upload.php | 13.69 ▲10.46 | 148.04 ▲114.64 |
All Forms /wp-admin/admin.php?page=wpforms-overview | 14.63 | 388.13 |
Community /wp-admin/admin.php?page=wpforms-community | 14.26 | 205.91 |
Settings /wp-admin/admin.php?page=wpforms-settings | 14.61 | 116.60 |
Addons /wp-admin/admin.php?page=wpforms-addons | 14.22 | 129.31 |
Payments NEW! /wp-admin/admin.php?page=wpforms-payments | 14.61 | 141.14 |
Entries /wp-admin/admin.php?page=wpforms-entries | 14.20 | 117.84 |
About Us /wp-admin/admin.php?page=wpforms-about | 14.18 | 113.68 |
Form Templates /wp-admin/admin.php?page=wpforms-templates | 21.74 | 577.83 |
Tools /wp-admin/admin.php?page=wpforms-tools | 14.75 | 124.90 |
SMTP /wp-admin/admin.php?page=wpforms-smtp | 14.19 | 113.50 |
Server storage [IO: ▲22.19MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,501 new files
Database: 7 new tables, 18 new options
New tables |
---|
wp_wpforms_payment_meta |
wp_wpforms_payments |
wp_actionscheduler_actions |
wp_wpforms_tasks_meta |
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
New WordPress options |
---|
wpforms_version_lite |
widget_recent-posts |
wpforms_activated |
widget_wpforms-widget |
action_scheduler_lock_async-request-runner |
schema-ActionScheduler_LoggerSchema |
widget_recent-comments |
wpforms_versions_lite |
action_scheduler_hybrid_store_demarkation |
wpforms_admin_notices |
... |
Browser metrics 75% from 4 tests
An overview of browser requirements for Contact Form by WPForms - Drag & Drop Form Builder for WordPress
Please improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 51,777 on /wp-admin/admin.php?page=wpforms-templates)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,028 ▲281 | 13.96 ▼0.38 | 1.66 ▼0.04 | 40.24 ▼3.36 |
Dashboard /wp-admin | 2,385 ▲208 | 5.30 ▼0.23 | 107.70 ▲21.45 | 79.65 ▲43.22 |
Posts /wp-admin/edit.php | 2,234 ▲137 | 2.05 ▲0.02 | 41.10 ▲0.47 | 35.64 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,770 ▲244 | 22.27 ▼1.26 | 551.86 ▼93.22 | 37.77 ▼12.35 |
Media Library /wp-admin/upload.php | 1,519 ▲119 | 4.20 ▼0.09 | 99.81 ▲3.74 | 46.84 ▲6.63 |
All Forms /wp-admin/admin.php?page=wpforms-overview | 1,573 | 3.64 | 53.85 | 82.55 |
Community /wp-admin/admin.php?page=wpforms-community | 1,421 | 3.42 | 50.52 | 68.74 |
Settings /wp-admin/admin.php?page=wpforms-settings | 1,721 | 3.73 | 56.42 | 103.73 |
Addons /wp-admin/admin.php?page=wpforms-addons | 2,747 | 3.75 | 52.93 | 129.83 |
Payments NEW! /wp-admin/admin.php?page=wpforms-payments | 1,504 | 3.50 | 52.11 | 75.01 |
Entries /wp-admin/admin.php?page=wpforms-entries | 2,097 | 3.54 | 53.44 | 81.50 |
About Us /wp-admin/admin.php?page=wpforms-about | 2,175 | 3.37 | 49.16 | 94.71 |
Form Templates /wp-admin/admin.php?page=wpforms-templates | 51,777 | 3.06 | 174.15 | 708.40 |
Tools /wp-admin/admin.php?page=wpforms-tools | 1,498 | 3.64 | 62.54 | 76.39 |
SMTP /wp-admin/admin.php?page=wpforms-smtp | 1,438 | 3.64 | 49.47 | 89.54 |
Uninstaller [IO: ▲1.11MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_wpforms_payment_meta
- wp_actionscheduler_actions
- wp_wpforms_tasks_meta
- wp_wpforms_payments
- wp_actionscheduler_claims
- This plugin did not uninstall successfully, leaving 19 options in the database
- schema-ActionScheduler_StoreSchema
- wpforms_challenge
- schema-ActionScheduler_LoggerSchema
- widget_theysaidso_widget
- wpforms_versions_lite
- db_upgraded
- wpforms_version
- theysaidso_admin_options
- wpforms_activated
- wpforms_version_lite
- ...
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wpforms-lite/templates/emails/compact-field.php
- > /wp-content/plugins/wpforms-lite/templates/emails/classic-field.php
- 479× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Stripe\\ApiResource' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/stripe/stripe-php/lib/TaxRate.php:27
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/symfony/css-selector/XPath/Extension/PseudoClassExtension.php:25
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Stripe\\ApiResource' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/stripe/stripe-php/lib/Price.php:36
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Stripe\\StripeObject' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/stripe/stripe-php/lib/OAuthErrorObject.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/symfony/css-selector/XPath/Extension/HtmlExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpforms-lite/src/Integrations/Elementor/Widget.php:14
- > PHP Fatal error
Trait 'WPForms\\Integrations\\Stripe\\Admin\\Builder\\Traits\\ContentTrait' not found in wp-content/plugins/wpforms-lite/src/Integrations/Stripe/Admin/Builder/Settings.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Admin\\Tools\\Views\\View' not found in wp-content/plugins/wpforms-lite/src/Admin/Tools/Views/Importer.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPForms\\Vendor\\Stripe\\ApiResource' not found in wp-content/plugins/wpforms-lite/vendor_prefixed/stripe/stripe-php/lib/InvoiceItem.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (40 tag instead of maximum 10)
wpforms-lite/wpforms.php 85% from 13 tests
The main PHP script in "Contact Form by WPForms - Drag & Drop Form Builder for WordPress" version 1.8.5.2 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("assets/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpforms-lite.php" instead of "wpforms.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wpforms-lite/vendor_prefixed/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 910 | 20,283 | 56,901 | 101,875 |
CSS | 112 | 10,075 | 1,523 | 54,577 |
JavaScript | 142 | 7,235 | 11,930 | 24,211 |
SVG | 109 | 0 | 0 | 2,966 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 335.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 138 | |
Interfaces | 25 | |
Traits | 14 | |
Classes | 715 | |
▷ Abstract classes | 51 | 7.13% |
▷ Concrete classes | 664 | 92.87% |
▷ Final classes | 7 | 1.05% |
Methods | 4,644 | |
▷ Static methods | 471 | 10.14% |
▷ Public methods | 3,339 | 71.90% |
▷ Protected methods | 431 | 9.28% |
▷ Private methods | 874 | 18.82% |
Functions | 371 | |
▷ Named functions | 273 | 73.58% |
▷ Anonymous functions | 98 | 26.42% |
Constants | 1,374 | |
▷ Global constants | 15 | 1.09% |
▷ Class constants | 1,359 | 98.91% |
▷ Public constants | 1,359 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
140 compressed PNG files occupy 2.67MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sullie-alt.png | 18.75KB | 19.35KB | 0.00% |
assets/images/addon-icon-signatures.png | 7.45KB | 7.76KB | 0.00% |
assets/images/addon-icon-activecampaign.png | 2.72KB | 2.59KB | ▼ 4.67% |
assets/images/lite-settings-access/thumbnail-user-role-editor.png | 10.30KB | 6.98KB | ▼ 32.21% |
assets/images/builder-default-arrow.png | 2.32KB | 2.49KB | 0.00% |