58% doppler-form

Code Review | Doppler Forms

WordPress plugin Doppler Forms scored 58% from 53 tests.

About plugin

  • Plugin page: doppler-form
  • Plugin version: 2.2.4
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.8.1
  • First release: Jul 14, 2015
  • Latest release: Jun 4, 2021
  • Number of updates: 64
  • Update frequency: every 35.9 days
  • Top authors: fromdoppler (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

800+ active / 8,585 total downloads


Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼265.24ms] Passed 4 tests

An overview of server-side resources used by Doppler Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0639.05 ▲7.40
Dashboard /wp-admin3.17 ▲0.1235.86 ▼5.19
Posts /wp-admin/edit.php3.23 ▲0.1248.28 ▲4.54
Add New Post /wp-admin/post-new.php5.48 ▲0.0590.72 ▼1,057.18
Media Library /wp-admin/upload.php3.05 ▲0.0534.18 ▼3.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 136 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
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,861 ▲27917.12 ▲1.5314.11 ▲6.9348.55 ▲0.28
Dashboard /wp-admin2,977 ▲1247.04 ▲1.12132.39 ▼4.62135.99 ▲33.19
Posts /wp-admin/edit.php2,787 ▲813.12 ▲0.4275.25 ▲14.31110.11 ▲16.56
Add New Post /wp-admin/post-new.php1,633 ▼21822.22 ▲4.34268.27 ▼113.08144.46 ▲38.17
Media Library /wp-admin/upload.php1,770 ▼25.48 ▲0.49128.36 ▼31.09136.24 ▲30.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/doppler-form/uninstall.php+8
    Undefined index: slug
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_dplr_form
    • wp_dplr_form_settings
    • wp_dplr_field
    • wp_dplr_field_settings
  • This plugin does not fully uninstall, leaving 2 options in the database
    • dplr_version
    • widget_dplr_form_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/doppler-form/public/partials/doppler-forms-public-display.php
    • > /wp-content/plugins/doppler-form/test/test-curl.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/doppler-form/admin/partials/forms-edit.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/doppler-form/admin/partials/forms-create.php:3
    • > 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 _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: Call to undefined function _e() in wp-content/plugins/doppler-form/admin/partials/lists-crud.php:7
    • > PHP Fatal error
      require_once(): Failed opening required './../../../../../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/doppler-form/test/test-script-post-subscriber.php on line 3
    • > 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/extensions.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
Please 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.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin7,766 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PO File1180240428

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.68
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes29.09%
▷ Static methods2319.66%
▷ Public methods10388.03%
▷ Protected methods10.85%
▷ Private methods1311.11%
▷ Named functions583.33%
▷ Anonymous functions116.67%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.32MB with 0.29MB 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/bar.png48.69KB0.15KB▼ 99.69%
admin/img/MS.png79.64KB1.28KB▼ 98.39%
admin/img/icon.png55.44KB0.31KB▼ 99.45%
admin/img/check.png63.32KB3.09KB▼ 95.12%