84% integration-for-elementor-forms-cookies

Code Review | Integration for Elementor forms - Cookies

WordPress plugin Integration for Elementor forms - Cookies scored84%from 54 tests.

About plugin

  • Plugin page: integration-for-e...
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 9, 2021
  • Latest release: Jul 23, 2023
  • Number of updates: 11
  • Update frequency: every 59.4 days
  • Top authors: webtica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,546 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.57ms] Passed 4 tests

An overview of server-side resources used by Integration for Elementor forms - Cookies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.51 ▼4.13
Dashboard /wp-admin3.31 ▼0.0344.03 ▼9.75
Posts /wp-admin/edit.php3.37 ▲0.0143.82 ▼2.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.75 ▼21.98
Media Library /wp-admin/upload.php3.24 ▲0.0136.27 ▲2.24

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Integration for Elementor forms - Cookies
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.34 ▼0.071.78 ▲0.2446.02 ▲6.27
Dashboard /wp-admin2,200 ▲205.59 ▼0.1485.88 ▲1.3137.38 ▼2.51
Posts /wp-admin/edit.php2,111 ▲112.00 ▼0.0234.20 ▼4.8834.13 ▼4.39
Add New Post /wp-admin/post-new.php1,539 ▲1323.07 ▼0.02678.34 ▼2.9952.55 ▲0.74
Media Library /wp-admin/upload.php1,408 ▲114.20 ▲0.0393.14 ▼1.6043.42 ▼1.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/integration-for-elementor-forms-cookies/includes/settings.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: forms, cookie, elementor pro, set, cookies...

integration-for-elementor-forms-cookies/cookies-elementor-integration.php 92% from 13 tests

The entry point to "Integration for Elementor forms - Cookies" version 1.2.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integration-for-elementor-forms-cookies.php" instead of "cookies-elementor-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin222 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

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.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions266.67%
▷ Anonymous functions133.33%
▷ 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