Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.32MB] [CPU: ▼13.41ms] Passed 4 tests
This is a short check of server-side resources used by dForms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 8.69 ▼33.73 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.54 ▼1.81 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.98 ▼3.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.32 ▼14.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.79 ▲4.38 |
Add new /wp-admin/admin.php?page=add-new-dForm | 3.25 | 30.35 |
Submissions /wp-admin/admin.php?page=submissions | 3.26 | 31.79 |
dForm Manager /wp-admin/admin.php?page=dForm-x | 3.24 | 29.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for dForms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.21 ▼1.15 | 1.70 ▲0.08 | 43.42 ▲3.08 |
Dashboard /wp-admin | 2,238 ▲53 | 4.99 ▼0.89 | 112.12 ▲10.09 | 40.61 ▼3.25 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.40 ▲0.42 | 35.95 ▼7.25 | 31.68 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,420 ▼94 | 18.02 ▲0.50 | 623.91 ▼63.19 | 60.32 ▼0.47 |
Media Library /wp-admin/upload.php | 1,420 ▲38 | 4.31 ▲0.00 | 114.86 ▲7.08 | 47.68 ▲3.87 |
Add new /wp-admin/admin.php?page=add-new-dForm | 1,489 | 2.03 | 27.55 | 29.28 |
Submissions /wp-admin/admin.php?page=submissions | 803 | 2.00 | 26.22 | 20.75 |
dForm Manager /wp-admin/admin.php?page=dForm-x | 854 | 2.07 | 28.75 | 26.56 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=dForm-x
- > Notice in wp-content/plugins/dforms/manager_form.php+21
Undefined index: del_id
- > GET request to /wp-admin/admin.php?page=dForm-x
- > Notice in wp-content/plugins/dforms/manager_form.php+25
Undefined index: clone_id
- > GET request to /wp-admin/admin.php?page=dForm-x
- > Notice in wp-content/plugins/dforms/manager_form.php+41
Undefined index: clear_rs
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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dforms/manager_submisstions.php
- > /wp-content/plugins/dforms/view_form.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dforms/save_form.php:3
- > PHP Notice
Undefined index: clone_id in wp-content/plugins/dforms/manager_form.php on line 25
- > PHP Notice
Undefined index: del_id in wp-content/plugins/dforms/manager_form.php on line 21
- > PHP Notice
Undefined index: clear_rs in wp-content/plugins/dforms/manager_form.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post() in wp-content/plugins/dforms/themefiles/single-dForm.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/dforms/manager_form.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dforms/dForms.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dForm-x
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/dforms/js/dForm.js?ver=6.3.1:43:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dForm-x
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: forms, form
dforms/dForms.php 92% from 13 tests
"dForms" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dforms.php" instead of "dForms.php")
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
There were no executable files found in this plugin1,289 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 86 | 45 | 798 |
JavaScript | 1 | 51 | 28 | 371 |
CSS | 1 | 5 | 7 | 120 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 were not PNG files found in your plugin