Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.96ms] Passed 4 tests
A check of server-side resources used by HDForms | Contact Form Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 37.96 ▼6.36 |
Dashboard /wp-admin | 3.46 ▲0.11 | 48.31 ▼16.50 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.09 ▼6.02 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 117.41 ▲21.52 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.21 ▲1.06 |
All Items /wp-admin/edit.php?post_type=hdf_form | 3.42 | 37.30 |
Add New /wp-admin/post-new.php?post_type=hdf_form | 3.42 | 41.54 |
About / Options /wp-admin/edit.php?post_type=hdf_form&page=hdf_options | 3.36 | 34.22 |
Server storage [IO: ▲2.37MB] [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: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
hdf_flood |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
HDForms | Contact Form Builder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲46 | 14.72 ▲0.44 | 1.73 ▼0.19 | 43.44 ▼0.30 |
Dashboard /wp-admin | 2,226 ▲46 | 5.63 ▼0.05 | 85.73 ▼10.17 | 38.44 ▼6.77 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.00 ▼0.00 | 38.56 ▼1.18 | 33.71 ▼3.02 |
Add New Post /wp-admin/post-new.php | 6,386 ▲4,857 | 27.86 ▲4.57 | 814.84 ▲136.50 | 58.62 ▲1.91 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.22 ▲0.04 | 97.63 ▼6.53 | 44.08 ▲1.10 |
All Items /wp-admin/edit.php?post_type=hdf_form | 1,100 | 2.03 | 34.43 | 31.39 |
Add New /wp-admin/post-new.php?post_type=hdf_form | 1,395 | 2.45 | 51.88 | 71.81 |
About / Options /wp-admin/edit.php?post_type=hdf_form&page=hdf_options | 957 | 2.00 | 23.87 | 48.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- hdf_flood
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hdforms/index.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/hdforms/includes/meta.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hdforms/includes/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_status() in wp-content/plugins/hdforms/includes/template.php:3
- > PHP Notice
Undefined variable: form in wp-content/plugins/hdforms/includes/template.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hdforms/includes/functions.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hdforms/includes/post-type.php:57
- > 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 93% 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 to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
hdforms/index.php 92% from 13 tests
The primary PHP file in "HDForms | Contact Form Builder" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hdforms.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected8,365 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 29 | 0 | 3,688 |
JavaScript | 5 | 257 | 197 | 3,678 |
PHP | 6 | 173 | 104 | 999 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin