Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.50MB] [CPU: ▲5.96ms] Passed 4 tests
An overview of server-side resources used by weForms - Easy Drag & Drop Contact Form Builder For WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.08 | 44.09 ▲2.74 |
Dashboard /wp-admin | 4.95 ▲1.64 | 52.80 ▼2.73 |
Posts /wp-admin/edit.php | 5.00 ▲1.64 | 59.12 ▲11.65 |
Add New Post /wp-admin/post-new.php | 8.07 ▲2.18 | 98.23 ▲12.16 |
Media Library /wp-admin/upload.php | 4.87 ▲1.64 | 46.49 ▲12.23 |
Server storage [IO: ▲6.37MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 367 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_weforms_entrymeta |
wp_weforms_entries |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
weforms_version |
weforms_settings |
widget_theysaidso_widget |
widget_weforms_widget |
weforms_installed |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for weForms - Easy Drag & Drop Contact Form Builder For WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲88 | 14.34 ▲0.06 | 1.72 ▼0.03 | 41.45 ▼3.65 |
Dashboard /wp-admin | 2,255 ▲78 | 5.66 ▲0.02 | 91.06 ▼8.93 | 38.27 ▼5.72 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 2.02 ▲0.06 | 40.56 ▲0.90 | 35.18 ▲1.93 |
Add New Post /wp-admin/post-new.php | 6,446 ▲4,920 | 27.44 ▲4.07 | 896.19 ▲239.73 | 39.28 ▼20.42 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.22 ▲0.04 | 95.03 ▼5.49 | 42.44 ▲1.03 |
Premium /wp-admin/admin.php?page=weforms#/premium | 2,492 | 12.03 | 370.15 | 152.09 |
Privacy /wp-admin/admin.php?page=weforms#/privacy | 1,207 | 5.22 | 77.43 | 28.87 |
Entries /wp-admin/admin.php?page=weforms#/entries | 1,203 | 5.25 | 62.08 | 26.82 |
Help /wp-admin/admin.php?page=weforms#/help | 1,323 | 4.96 | 56.47 | 28.19 |
Settings /wp-admin/admin.php?page=weforms#/settings | 1,618 | 5.13 | 71.96 | 32.34 |
All Forms /wp-admin/admin.php?page=weforms#/ | 2,348 | 5.93 | 94.29 | 40.33 |
Tools /wp-admin/admin.php?page=weforms#/tools | 1,449 | 5.14 | 70.51 | 29.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_weforms_entrymeta
- wp_weforms_entries
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- widget_theysaidso_widget
- weforms_settings
- weforms_installed
- widget_recent-comments
- theysaidso_admin_options
- widget_weforms_widget
- can_compress_scripts
- widget_recent-posts
- weforms_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/weforms/includes/admin/views/notification-integration.php
- > /wp-content/plugins/weforms/includes/admin/views/vue-index.php
- 87× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WeForms_Form_Template' not found in wp-content/plugins/weforms/includes/templates/class-template-tell-a-friend.php:5
- > PHP Fatal error
Uncaught Error: Class 'WeForms_Field_Contract' not found in wp-content/plugins/weforms/includes/fields/class-field-checkbox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/weforms/includes/functions.php:1300
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/weforms/includes/admin/views/weforms-settings-secure-database.php:1
- > PHP Fatal error
Uncaught Error: Class 'WeForms_Field_Contract' not found in wp-content/plugins/weforms/includes/fields/class-field-name.php:6
- > PHP Fatal error
Uncaught Error: Class 'WeForms_Field_Contract' not found in wp-content/plugins/weforms/includes/fields/class-field-hidden.php:6
- > PHP Fatal error
Uncaught Error: Class 'Weforms_REST_Controller' not found in wp-content/plugins/weforms/includes/api/class-weforms-entries-controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'WeForms_Form_Template' not found in wp-content/plugins/weforms/includes/templates/class-template-real-estate-listing.php:6
- > PHP Fatal error
Uncaught Error: Class 'Weforms_REST_Controller' not found in wp-content/plugins/weforms/includes/api/class-weforms-settings-controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Weforms_REST_Controller' not found in wp-content/plugins/weforms/includes/api/class-weforms-uploads-controller.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
weforms/weforms.php Passed 13 tests
The primary PHP file in "weForms - Easy Drag & Drop Contact Form Builder For WordPress" version 1.6.19 is used by WordPress to initiate all plugin functionality
42 characters long description:
The best contact form plugin for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected71,621 lines of code in 279 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 61 | 7,030 | 6,451 | 39,665 |
PHP | 129 | 4,264 | 5,782 | 21,626 |
CSS | 15 | 1,203 | 113 | 9,469 |
Sass | 2 | 140 | 9 | 660 |
XML | 7 | 0 | 0 | 118 |
SVG | 64 | 0 | 0 | 67 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 223.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 134 | |
▷ Abstract classes | 6 | 4.48% |
▷ Concrete classes | 128 | 95.52% |
▷ Final classes | 1 | 0.78% |
Methods | 743 | |
▷ Static methods | 25 | 3.36% |
▷ Public methods | 671 | 90.31% |
▷ Protected methods | 19 | 2.56% |
▷ Private methods | 53 | 7.13% |
Functions | 77 | |
▷ Named functions | 61 | 79.22% |
▷ Anonymous functions | 16 | 20.78% |
Constants | 21 | |
▷ Global constants | 10 | 47.62% |
▷ Class constants | 11 | 52.38% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
73 PNG files occupy 0.69MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-paypal.png | 13.88KB | 7.85KB | ▼ 43.45% |
assets/wpuf/css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/form-template/loan-application.png | 8.36KB | 4.57KB | ▼ 45.30% |
assets/images/icon-weforms.png | 1.03KB | 0.81KB | ▼ 21.78% |
assets/images/form-template/contact.png | 3.38KB | 3.20KB | ▼ 5.38% |