77% dforms

Code Review | dForms

WordPress plugin dForms scored 77% from 54 tests.

About plugin

  • Plugin page: dforms
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Nov 26, 2012
  • Latest release: Nov 26, 2012
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: animexxx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 776 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼1.644.03 ▼48.38
Dashboard /wp-admin3.46 ▲0.0532.59 ▼1.30
Posts /wp-admin/edit.php3.68 ▲0.0436.87 ▼2.26
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.88 ▼1,187.54
Media Library /wp-admin/upload.php3.33 ▲0.0427.20 ▲3.36
dForm Manager /wp-admin/admin.php?page=dForm-x3.3127.39
Submissions /wp-admin/admin.php?page=submissions3.3225.46
Add new /wp-admin/admin.php?page=add-new-dForm3.3229.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,838 ▲11515.45 ▼0.086.14 ▼0.282.57 ▲0.39
Dashboard /wp-admin2,939 ▲896.62 ▲0.45122.23 ▼11.05195.40 ▲24.05
Posts /wp-admin/edit.php2,731 ▲743.68 ▲0.3273.44 ▲6.20144.13 ▼4.18
Add New Post /wp-admin/post-new.php1,662 ▲2318.91 ▼1.21448.24 ▲31.66160.35 ▲9.31
Media Library /wp-admin/upload.php1,740 ▲395.85 ▲0.34126.50 ▼11.43189.33 ▼11.21
dForm Manager /wp-admin/admin.php?page=dForm-x1,0863.2456.54104.94
Submissions /wp-admin/admin.php?page=submissions1,0082.97104.1096.29
Add new /wp-admin/admin.php?page=add-new-dForm2,0513.3057.57201.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP78645798
JavaScript15128371
CSS157120

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 code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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