Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.19MB] [CPU: ▲15.58ms] Passed 4 tests
Server-side resources used by Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.46 ▲2.00 | 52.19 ▲12.35 |
Dashboard /wp-admin | 5.58 ▲2.28 | 64.61 ▲16.59 |
Posts /wp-admin/edit.php | 5.63 ▲2.26 | 77.64 ▲35.13 |
Add New Post /wp-admin/post-new.php | 8.20 ▲2.31 | 98.50 ▲14.96 |
Media Library /wp-admin/upload.php | 5.46 ▲2.23 | 54.24 ▲18.42 |
Export /wp-admin/admin.php?page=happyforms-export | 5.57 | 58.51 |
All Forms /wp-admin/edit.php?post_type=happyform | 5.77 | 60.17 |
Import /wp-admin/admin.php?page=happyforms-import | 5.43 | 48.30 |
Forms /wp-admin/admin.php?page=happyforms | 5.31 | 44.97 |
SubmissionsUpgrade /wp-admin/edit.php?post_type=happyforms-activity | 5.50 | 49.37 |
CouponsUpgrade /wp-admin/admin.php?page=happyforms-coupons | 5.43 | 50.01 |
IntegrationsUpgrade /wp-admin/admin.php?page=happyforms-integrations | 5.43 | 51.32 |
Server storage [IO: ▲1.27MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 277 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_happyforms_widget |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
happyforms-tracking |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 15.84 ▲1.47 | 1.82 ▲0.20 | 36.80 ▼7.02 |
Dashboard /wp-admin | 2,315 ▲141 | 7.48 ▲1.82 | 211.87 ▲116.58 | 45.29 ▼1.52 |
Posts /wp-admin/edit.php | 2,246 ▲143 | 6.32 ▲4.29 | 66.69 ▲31.30 | 39.07 ▲5.65 |
Add New Post /wp-admin/post-new.php | 6,445 ▲4,917 | 27.58 ▲4.36 | 863.57 ▲158.71 | 39.87 ▼14.62 |
Media Library /wp-admin/upload.php | 1,614 ▲211 | 8.39 ▲4.21 | 126.06 ▲26.86 | 46.59 ▲3.71 |
Export /wp-admin/admin.php?page=happyforms-export | 990 | 5.89 | 48.97 | 27.01 |
All Forms /wp-admin/edit.php?post_type=happyform | 1,877 | 6.84 | 78.78 | 48.56 |
Import /wp-admin/admin.php?page=happyforms-import | 961 | 5.93 | 50.66 | 28.65 |
Add New /wp-admin/customize.php?return=http%3A%2F%2Fwp.com%2Fwp-admin%2Fedit.php%3Fpost_type%3Dhappyform&happyforms=1&form_id=0#build | 2,346 | 12.90 | 223.53 | 32.83 |
Forms /wp-admin/admin.php?page=happyforms | 28 | 0.42 | 0.09 | 3.65 |
SubmissionsUpgrade /wp-admin/edit.php?post_type=happyforms-activity | 1,340 | 6.86 | 75.52 | 33.18 |
CouponsUpgrade /wp-admin/admin.php?page=happyforms-coupons | 1,274 | 7.01 | 78.85 | 33.19 |
SettingsUpgrade /wp-admin/admin.php?page=#settings | 28 | 0.42 | 0.10 | 3.46 |
IntegrationsUpgrade /wp-admin/admin.php?page=happyforms-integrations | 2,738 | 6.94 | 97.22 | 49.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% 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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/happyforms/core/templates/admin-shortcode.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/setup/group_end.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/setup/radio.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/setup/checkbox.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/style/heading.php
- > /wp-content/plugins/happyforms/core/templates/partials/happyforms-select.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/setup/textarea.php
- > /wp-content/plugins/happyforms/core/templates/customize-sidebar.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/setup/group_start.php
- > /wp-content/plugins/happyforms/core/templates/customize-controls/setup/buttongroup.php
- 293× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: control in wp-content/plugins/happyforms/core/templates/customize-controls/setup/alert-email-subject.php on line 1
- > PHP Notice
Undefined variable: control in wp-content/plugins/happyforms/core/templates/customize-controls/style/divider.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/happyforms/core/templates/customize-controls/setup/buttongroup.php on line 1
- > PHP Notice
Undefined variable: control in wp-content/plugins/happyforms/core/templates/customize-controls/setup/buttongroup.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/happyforms/core/templates/customize-form-steps.php:3
- > PHP Fatal error
Uncaught Error: Class 'HappyForms_Form_Part' not found in wp-content/plugins/happyforms/core/classes/parts/class-part-number.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function happyforms_get_form_controller() in wp-content/plugins/happyforms/inc/templates/admin-export.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/happyforms/core/templates/customize-controls/setup/radio.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/happyforms/inc/templates/customize-controls/number_dummy.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/happyforms/inc/templates/customize-controls/panel_dummy.php on line 2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/customize.php?return=http%3A%2F%2Fwp.com%2Fwp-admin%2Fedit.php%3Fpost_type%3Dhappyform&happyforms=1&form_id=0#build
- > Security (warning) in unknown
/?post_type=happyform&p=0&customize_changeset_uuid=ab420e6b-67ab-46c0-af14-1e90b15d9d1e&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.
- > GET request to /wp-admin/admin.php?page=happyforms
- > Network (severe)
wp-admin/admin.php?page=happyforms - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=#settings
- > Network (severe)
wp-admin/admin.php?page=#settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in happyforms/assets to your readme.txt
- Tags: Too many tags (46 tag instead of maximum 10); only the first 5 tags are used in your directory listing
happyforms/happyforms.php Passed 13 tests
The main PHP file in "Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms" ver. 1.25.9 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Form builder to get in touch with visitors, grow your email list and collect payments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected24,565 lines of code in 261 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 174 | 3,356 | 3,055 | 14,412 |
JavaScript | 41 | 1,526 | 345 | 5,566 |
CSS | 13 | 944 | 172 | 4,554 |
SVG | 33 | 0 | 0 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 66 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 622 | |
▷ Static methods | 25 | 4.02% |
▷ Public methods | 587 | 94.37% |
▷ Protected methods | 10 | 1.61% |
▷ Private methods | 25 | 4.02% |
Functions | 192 | |
▷ Named functions | 174 | 90.62% |
▷ Anonymous functions | 18 | 9.38% |
Constants | 19 | |
▷ Global constants | 5 | 26.32% |
▷ Class constants | 14 | 73.68% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin