58% doppler-form

Code Review | Doppler Forms

WordPress plugin Doppler Forms scored 58% from 54 tests.

About plugin

  • Plugin page: doppler-form
  • Plugin version: 2.2.8
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.2
  • WordPress version: 5.9.2
  • First release: Jul 14, 2015
  • Latest release: Mar 22, 2022
  • Number of updates: 70
  • Update frequency: every 35.0 days
  • Top authors: fromdoppler (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active / 10,083 total downloads


Plugin footprint 48% 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.38MB] [CPU: ▼300.19ms] Passed 4 tests

Analyzing server-side resources used by Doppler Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4255.15 ▲4.07
Dashboard /wp-admin3.78 ▲0.3735.75 ▲2.62
Posts /wp-admin/edit.php4.07 ▲0.4239.09 ▲2.26
Add New Post /wp-admin/post-new.php7.31 ▲0.3497.19 ▼1,201.09
Media Library /wp-admin/upload.php3.72 ▲0.4226.86 ▼4.56

Server storage [IO: ▲2.52MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 137 new files
Database: 4 new tables, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Doppler Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,982 ▲24017.31 ▲1.5511.72 ▲5.353.17 ▲1.24
Dashboard /wp-admin2,949 ▲917.16 ▲0.95119.69 ▼15.30170.58 ▲8.36
Posts /wp-admin/edit.php2,752 ▲584.00 ▲0.7676.69 ▲15.31162.82 ▲21.20
Add New Post /wp-admin/post-new.php1,705 ▼1216.34 ▼4.73393.06 ▼33.23174.64 ▲16.12
Media Library /wp-admin/upload.php1,758 ▲636.07 ▲0.58128.32 ▼22.85200.73 ▲11.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/doppler-form/uninstall.php+8
    Undefined index: slug
  • Zombie tables detected upon uninstall: 4 tables
    • wp_dplr_form
    • wp_dplr_field
    • wp_dplr_field_settings
    • wp_dplr_form_settings
  • Zombie WordPress options detected upon uninstall: 2 options
    • widget_dplr_form_widget
    • dplr_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/doppler-form/test/test-curl.php
    • > /wp-content/plugins/doppler-form/test/test-script-post-subscriber.php
    • > /wp-content/plugins/doppler-form/public/partials/doppler-forms-public-display.php
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/doppler-form/includes/class-doppler-form-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/doppler-form/includes/models/Form_Model.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/doppler-form/admin/partials/api-connection.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/doppler-form/admin/partials/data-hub.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/doppler-form/admin/partials/forms-list.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DPLR_Base_Model' not found in wp-content/plugins/doppler-form/includes/models/Field_Model.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/doppler-form/admin/partials/doppler-forms-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/doppler-form/admin/partials/extensions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/doppler-form/admin/partials/lists-crud.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/doppler-form/admin/partials/forms-create.php:3

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


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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

doppler-form/doppler-form.php 92% from 13 tests

The main PHP file in "Doppler Forms" ver. 2.2.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,336 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PO File1180240428

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.61
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes28.70%
▷ Static methods2319.17%
▷ Public methods10587.50%
▷ Protected methods10.83%
▷ Private methods1411.67%
▷ Named functions583.33%
▷ Anonymous functions116.67%
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.32MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/screenshot-2-esp.png19.22KB6.96KB▼ 63.79%
admin/img/doppler.png4.58KB3.03KB▼ 33.97%
admin/img/screenshot-2.png20.22KB6.89KB▼ 65.91%
admin/img/bar.png48.69KB0.15KB▼ 99.69%