67% dforms

Code Review | dForms

WordPress plugin dForms scored67%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: 6.3.1
  • 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 /875 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.408.69 ▼33.73
Dashboard /wp-admin3.35 ▲0.0444.54 ▼1.81
Posts /wp-admin/edit.php3.40 ▲0.0445.98 ▼3.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.32 ▼14.64
Media Library /wp-admin/upload.php3.27 ▲0.0436.79 ▲4.38
Add new /wp-admin/admin.php?page=add-new-dForm3.2530.35
Submissions /wp-admin/admin.php?page=submissions3.2631.79
dForm Manager /wp-admin/admin.php?page=dForm-x3.2429.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.21 ▼1.151.70 ▲0.0843.42 ▲3.08
Dashboard /wp-admin2,238 ▲534.99 ▼0.89112.12 ▲10.0940.61 ▼3.25
Posts /wp-admin/edit.php2,125 ▲362.40 ▲0.4235.95 ▼7.2531.68 ▲0.24
Add New Post /wp-admin/post-new.php1,420 ▼9418.02 ▲0.50623.91 ▼63.1960.32 ▼0.47
Media Library /wp-admin/upload.php1,420 ▲384.31 ▲0.00114.86 ▲7.0847.68 ▲3.87
Add new /wp-admin/admin.php?page=add-new-dForm1,4892.0327.5529.28
Submissions /wp-admin/admin.php?page=submissions8032.0026.2220.75
dForm Manager /wp-admin/admin.php?page=dForm-x8542.0728.7526.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

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

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 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

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