83% gdpr-for-formidable-forms

Code Review | GDPR Framework Add-on for Formidable Forms

WordPress plugin GDPR Framework Add-on for Formidable Forms scored83%from 54 tests.

About plugin

  • Plugin page: gdpr-for-formidab...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2018
  • Latest release: Mar 30, 2023
  • Number of updates: 30
  • Update frequency: every 60.3 days
  • Top authors: data443 (70%)indrek_k (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,129 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.51ms] Passed 4 tests

Server-side resources used by GDPR Framework Add-on for Formidable Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.22 ▼6.13
Dashboard /wp-admin3.31 ▼0.0447.65 ▼14.80
Posts /wp-admin/edit.php3.36 ▲0.0046.49 ▼1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.98 ▼13.77
Media Library /wp-admin/upload.php3.23 ▲0.0031.48 ▼7.32

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for GDPR Framework Add-on for Formidable Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.42 ▲0.041.91 ▼0.1843.40 ▼5.30
Dashboard /wp-admin2,209 ▲185.89 ▼0.0794.62 ▼10.0442.34 ▲2.82
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0432.94 ▼3.6431.70 ▼6.03
Add New Post /wp-admin/post-new.php1,542 ▲2818.71 ▲1.23610.92 ▼21.6051.45 ▲0.75
Media Library /wp-admin/upload.php1,382 ▼64.21 ▲0.0497.04 ▼8.2345.19 ▼1.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gdpr-for-formidable-forms/views/admin/settings-tab.php:2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gdpr-for-formidable-forms/formidable-gdpr.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdpr-for-formidable-forms/formidable-gdpr.php on line 16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-for-formidable-forms/formidable-gdpr.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gdpr, compliance, security, formidable forms, privacy

gdpr-for-formidable-forms/formidable-gdpr.php 69% from 13 tests

The principal PHP file in "GDPR Framework Add-on for Formidable Forms" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.3" instead of "5.6")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gdpr-for-formidable-forms.php" instead of "formidable-gdpr.php")

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 plugin405 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48518405

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity33.50
▷ Minimum class complexity21.00
▷ Maximum class complexity46.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin