Benchmarks
Plugin footprint Passed 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: ▼0.40MB] [CPU: ▼309.87ms] Passed 4 tests
This is a short check of server-side resources used by dForms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼1.64 | 4.03 ▼48.38 |
Dashboard /wp-admin | 3.46 ▲0.05 | 32.59 ▼1.30 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.87 ▼2.26 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 92.88 ▼1,187.54 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 27.20 ▲3.36 |
dForm Manager /wp-admin/admin.php?page=dForm-x | 3.31 | 27.39 |
Submissions /wp-admin/admin.php?page=submissions | 3.32 | 25.46 |
Add new /wp-admin/admin.php?page=add-new-dForm | 3.32 | 29.28 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for dForms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲115 | 15.45 ▼0.08 | 6.14 ▼0.28 | 2.57 ▲0.39 |
Dashboard /wp-admin | 2,939 ▲89 | 6.62 ▲0.45 | 122.23 ▼11.05 | 195.40 ▲24.05 |
Posts /wp-admin/edit.php | 2,731 ▲74 | 3.68 ▲0.32 | 73.44 ▲6.20 | 144.13 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,662 ▲23 | 18.91 ▼1.21 | 448.24 ▲31.66 | 160.35 ▲9.31 |
Media Library /wp-admin/upload.php | 1,740 ▲39 | 5.85 ▲0.34 | 126.50 ▼11.43 | 189.33 ▼11.21 |
dForm Manager /wp-admin/admin.php?page=dForm-x | 1,086 | 3.24 | 56.54 | 104.94 |
Submissions /wp-admin/admin.php?page=submissions | 1,008 | 2.97 | 104.10 | 96.29 |
Add new /wp-admin/admin.php?page=add-new-dForm | 2,051 | 3.30 | 57.57 | 201.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dforms/view_form.php
- > /wp-content/plugins/dforms/manager_submisstions.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: del_id in wp-content/plugins/dforms/manager_form.php on line 21
- > 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 add_action() in wp-content/plugins/dforms/save_form.php:3
- > 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 is_admin() in wp-content/plugins/dforms/dForms.php:15
- > PHP Notice
Undefined index: clone_id in wp-content/plugins/dforms/manager_form.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post() in wp-content/plugins/dforms/themefiles/single-dForm.php:3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-new-dForm
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "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=5.9.2:43:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-new-dForm
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 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
2 plugin tags: forms, form
dforms/dForms.php 92% from 13 tests
Analyzing the main PHP file in "dForms" version 1.0
The following require your attention:
- Main file name: Name the main plugin file the same 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
No dangerous file extensions were detected1,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
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin