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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▲1.40ms] Passed 4 tests
This is a short check of server-side resources used by HTML Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 41.16 ▼0.16 |
Dashboard /wp-admin | 3.72 ▲0.42 | 46.30 ▼1.58 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 49.52 ▲8.18 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 112.77 ▲21.23 |
Media Library /wp-admin/upload.php | 3.58 ▲0.36 | 36.91 ▼0.83 |
Add New /wp-admin/admin.php?page=html-forms-add-form | 3.55 | 30.94 |
Settings /wp-admin/admin.php?page=html-forms-settings | 3.56 | 33.94 |
All Forms /wp-admin/admin.php?page=html-forms | 3.60 | 35.75 |
Premium /wp-admin/admin.php?page=html-forms-premium | 3.55 | 31.58 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_hf_submissions |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
hf_settings |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
hf_version |
Browser metrics Passed 4 tests
HTML Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.67 ▼0.71 | 1.71 ▼0.17 | 43.07 ▲0.55 |
Dashboard /wp-admin | 2,257 ▲72 | 4.85 ▼0.96 | 103.73 ▼0.04 | 38.00 ▼2.88 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 2.06 ▲0.05 | 40.56 ▲0.25 | 34.76 ▼0.98 |
Add New Post /wp-admin/post-new.php | 6,382 ▲4,854 | 27.86 ▲9.53 | 893.78 ▲274.49 | 64.23 ▲13.33 |
Media Library /wp-admin/upload.php | 1,437 ▲46 | 4.17 ▼0.04 | 94.82 ▼5.97 | 40.83 ▼0.01 |
Add New /wp-admin/admin.php?page=html-forms-add-form | 877 | 2.38 | 31.39 | 29.63 |
Settings /wp-admin/admin.php?page=html-forms-settings | 944 | 2.36 | 31.36 | 25.82 |
All Forms /wp-admin/admin.php?page=html-forms | 1,006 | 2.20 | 27.90 | 25.99 |
Premium /wp-admin/admin.php?page=html-forms-premium | 883 | 2.23 | 26.40 | 37.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 1 table
- wp_hf_submissions
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- hf_version
- hf_settings
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/html-forms/views/admin-sidebar.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/html-forms/migrations/1.1.6-move-save-submissions-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function HTML_Forms\\add_action() in wp-content/plugins/html-forms/html-forms.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/html-forms/views/tab-fields.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/html-forms/migrations/1.3.20-change-referer-url-column-type.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/html-forms/views/tab-settings.php:1
- > PHP Fatal error
Uncaught Error: Class 'HTML_Forms\\Actions\\Action' not found in wp-content/plugins/html-forms/src/actions/class-mailchimp.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/html-forms/views/tab-actions.php:2
- > PHP Fatal error
Uncaught Error: Class 'HTML_Forms\\Actions\\Action' not found in wp-content/plugins/html-forms/src/actions/class-email.php:8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/html-forms/migrations/1.3.20-change-referer-url-column-type.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function add_cap() on null in wp-content/plugins/html-forms/migrations/1.1.1-add-role-cap.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: htmlforms, contact form, form, forms, html form
html-forms/html-forms.php Passed 13 tests
The principal PHP file in "HTML Forms" v. 1.3.28 is loaded by WordPress automatically on each request
51 characters long description:
Not just another forms plugin. Simple and flexible.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,021 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 659 | 951 | 2,772 |
Markdown | 1 | 210 | 0 | 238 |
SVG | 1 | 0 | 0 | 6 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 20 | 14.18% |
▷ Public methods | 132 | 93.62% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 8 | 5.67% |
Functions | 30 | |
▷ Named functions | 21 | 70.00% |
▷ Anonymous functions | 9 | 30.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 1.58KB | 1.09KB | ▼ 30.63% |