Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲6.40MB] [CPU: ▼262.32ms] 25% from 4 tests
Server-side resources used by Contact Form by WPForms - Drag & Drop Form Builder for WordPress
The following require your attention
- RAM: Total memory usage must be kept under 10MB (currently 10.40MB on /wp-admin/admin.php?page=wpforms-page)
- CPU: Total CPU usage must kept under 500.00ms (currently 1,056.58ms on /wp-admin/admin.php?page=wpforms-builder)
- Extra RAM: The extra memory usage must be under 5MB (currently 6.40MB on /wp-admin/admin.php?page=wpforms-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.97 ▲5.45 | 83.51 ▲31.83 |
Dashboard /wp-admin | 10.13 ▲6.73 | 75.32 ▲42.81 |
Posts /wp-admin/edit.php | 10.35 ▲6.71 | 79.34 ▲44.33 |
Add New Post /wp-admin/post-new.php | 13.66 ▲6.69 | 132.90 ▼1,162.16 |
Media Library /wp-admin/upload.php | 10.08 ▲6.79 | 64.48 ▲38.25 |
Entries /wp-admin/admin.php?page=wpforms-entries | 10.41 | 77.07 |
Welcome to WPForms /wp-admin/index.php?page=wpforms-getting-started | 10.39 | 74.88 |
Community /wp-admin/admin.php?page=wpforms-community | 10.40 | 70.57 |
Tools /wp-admin/admin.php?page=wpforms-tools | 10.88 | 72.57 |
SMTP /wp-admin/admin.php?page=wpforms-smtp | 10.41 | 67.12 |
Analytics /wp-admin/admin.php?page=wpforms-analytics | 10.41 | 71.94 |
About Us /wp-admin/admin.php?page=wpforms-about | 10.41 | 68.82 |
All Forms /wp-admin/admin.php?page=wpforms-overview | 10.48 | 73.63 |
Add New /wp-admin/admin.php?page=wpforms-builder | 12.26 | 1,056.58 |
Info /wp-admin/admin.php?page=wpforms-page | 10.40 | 67.26 |
Server storage [IO: ▲14.51MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 953 new files
Database: 5 new tables, 9 new options
New tables |
---|
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_actionscheduler_claims |
wp_wpforms_tasks_meta |
wp_actionscheduler_logs |
New WordPress options |
---|
wpforms_version_lite |
wpforms_activated |
schema-ActionScheduler_LoggerSchema |
action_scheduler_lock_async-request-runner |
wpforms_admin_notices |
widget_wpforms-widget |
schema-ActionScheduler_StoreSchema |
wpforms_version |
action_scheduler_hybrid_store_demarkation |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form by WPForms - Drag & Drop Form Builder for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,014 ▲260 | 16.54 ▲0.86 | 6.05 ▼1.50 | 2.04 ▼0.86 |
Dashboard /wp-admin | 3,100 ▲239 | 7.17 ▲0.87 | 122.46 ▼6.80 | 191.10 ▲35.32 |
Posts /wp-admin/edit.php | 2,810 ▲116 | 3.25 ▼0.00 | 63.61 ▲2.08 | 137.42 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,741 ▼11 | 21.25 ▼0.75 | 423.53 ▼27.26 | 158.81 ▲4.65 |
Media Library /wp-admin/upload.php | 1,813 ▲115 | 5.51 ▼0.01 | 156.17 ▲1.85 | 241.12 ▲48.69 |
Entries /wp-admin/admin.php?page=wpforms-entries | 2,739 | 4.55 | 84.35 | 306.57 |
Welcome to WPForms /wp-admin/index.php?page=wpforms-getting-started | 1,948 | 5.07 | 75.12 | 209.53 |
Community /wp-admin/admin.php?page=wpforms-community | 1,694 | 5.08 | 72.88 | 182.79 |
Tools /wp-admin/admin.php?page=wpforms-tools | 1,750 | 5.41 | 80.65 | 198.27 |
SMTP /wp-admin/admin.php?page=wpforms-smtp | 1,666 | 5.25 | 75.69 | 235.09 |
Analytics /wp-admin/admin.php?page=wpforms-analytics | 1,705 | 5.15 | 79.67 | 246.04 |
About Us /wp-admin/admin.php?page=wpforms-about | 2,684 | 5.12 | 76.70 | 211.30 |
All Forms /wp-admin/admin.php?page=wpforms-overview | 1,791 | 5.16 | 74.81 | 205.72 |
Add New /wp-admin/admin.php?page=wpforms-builder | 16,316 | 7.47 | 142.64 | 268.47 |
Info /wp-admin/admin.php?page=wpforms-page | 1,521 | 4.87 | 72.43 | 162.89 |
Uninstaller [IO: ▲0.25MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_actionscheduler_claims
- wp_wpforms_tasks_meta
- wp_actionscheduler_actions
- Zombie WordPress options were found after uninstall: 9 options
- schema-ActionScheduler_LoggerSchema
- wpforms_admin_notices
- widget_wpforms-widget
- action_scheduler_hybrid_store_demarkation
- wpforms_activated
- wpforms_version_lite
- schema-ActionScheduler_StoreSchema
- wpforms_version
- action_scheduler_lock_async-request-runner
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wpforms-lite/vendor/mk-j/php_xlsxwriter/example.php
- 372× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WPFORMS_PLUGIN_DIR - assumed 'WPFORMS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpforms-lite/includes/class-providers.php on line 28
- > PHP Notice
Constant SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_INTERACTIVE already defined in wp-content/plugins/wpforms-lite/libs/sodium_compat/lib/php72compat_const.php on line 66
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/wpforms-lite/vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/wpforms-lite/libs/sodium_compat/src/Core/Curve25519/H.php:12
- > PHP Notice
Constant SODIUM_CRYPTO_GENERICHASH_KEYBYTES_MAX already defined in wp-content/plugins/wpforms-lite/libs/sodium_compat/lib/php72compat_const.php on line 52
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519' not found in wp-content/plugins/wpforms-lite/libs/sodium_compat/namespaced/Core/Curve25519.php:4
- > PHP Notice
Constant SODIUM_CRYPTO_GENERICHASH_BYTES already defined in wp-content/plugins/wpforms-lite/libs/sodium_compat/lib/php72compat_const.php on line 47
- > PHP Fatal error
Uncaught Error: Call to undefined function wpforms() in wp-content/plugins/wpforms-lite/includes/deprecated.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/wpforms-lite/vendor/symfony/css-selector/Node/PseudoNode.php:24
- > PHP Notice
Constant SODIUM_CRYPTO_KDF_KEYBYTES already defined in wp-content/plugins/wpforms-lite/libs/sodium_compat/lib/php72compat_const.php on line 39
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (39 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wpforms-lite/wpforms.php 85% from 13 tests
The main file in "Contact Form by WPForms - Drag & Drop Form Builder for WordPress" v. 1.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpforms-lite.php" instead of "wpforms.php")
- Domain Path: Use only dashes and lowercase characters for the domain path ("assets/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin130,517 lines of code in 743 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 537 | 14,897 | 36,907 | 89,781 |
CSS | 71 | 4,475 | 863 | 23,769 |
JavaScript | 86 | 3,991 | 5,766 | 14,155 |
SVG | 46 | 0 | 0 | 2,726 |
JSON | 1 | 0 | 0 | 63 |
Markdown | 2 | 3 | 0 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 330.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 17 | |
Traits | 0 | |
Classes | 428 | |
▷ Abstract classes | 56 | 13.08% |
▷ Concrete classes | 372 | 86.92% |
▷ Final classes | 5 | 1.34% |
Methods | 3,127 | |
▷ Static methods | 684 | 21.87% |
▷ Public methods | 2,524 | 80.72% |
▷ Protected methods | 340 | 10.87% |
▷ Private methods | 263 | 8.41% |
Functions | 433 | |
▷ Named functions | 371 | 85.68% |
▷ Anonymous functions | 62 | 14.32% |
Constants | 440 | |
▷ Global constants | 15 | 3.41% |
▷ Class constants | 425 | 96.59% |
▷ Public constants | 425 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
121 compressed PNG files occupy 2.40MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/about/plugin-trustpulse.png | 2.31KB | 2.69KB | 0.00% |
assets/images/lite-settings-access/thumbnail-access-controls@2x.png | 15.05KB | 8.10KB | ▼ 46.18% |
assets/images/community/vip-circle@2x.png | 4.83KB | 4.05KB | ▼ 16.30% |
assets/images/community/wpbeginner@2x.png | 2.71KB | 2.70KB | 0.36% |
assets/images/sullie-alt.png | 18.75KB | 19.35KB | 0.00% |