78% cf-civicrm-formprocessor

Code Review | Integration of CiviCRM's Form Processor with Caldera Forms

WordPress plugin Integration of CiviCRM's Form Processor with Caldera Forms scored78%from 54 tests.

About plugin

  • Plugin page: cf-civicrm-formpr...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Dec 23, 2020
  • Latest release: Sep 19, 2023
  • Number of updates: 4
  • Update frequency: every 250.2 days
  • Top authors: jaapjansma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.71ms] Passed 4 tests

This is a short check of server-side resources used by Integration of CiviCRM's Form Processor with Caldera Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.40 ▼6.48
Dashboard /wp-admin3.34 ▲0.0352.01 ▲3.61
Posts /wp-admin/edit.php3.39 ▲0.0350.28 ▲0.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.94 ▼9.73
Media Library /wp-admin/upload.php3.27 ▲0.0334.79 ▲0.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Integration of CiviCRM's Form Processor with Caldera Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.521.77 ▲0.0344.70 ▼0.27
Dashboard /wp-admin2,206 ▲245.85 ▲0.96104.20 ▼25.8539.72 ▼3.94
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0138.49 ▼1.8634.38 ▼0.90
Add New Post /wp-admin/post-new.php1,542 ▲1418.30 ▲0.02601.55 ▼35.0551.22 ▲8.66
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.0597.11 ▼1.0240.74 ▼1.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cf-civicrm-formprocessor/includes/class-local-civicrm.php
    • > /wp-content/plugins/cf-civicrm-formprocessor/includes/class-formprocessor-loader.php
    • > /wp-content/plugins/cf-civicrm-formprocessor/cf-civicrm-formprocessor.php
    • > /wp-content/plugins/cf-civicrm-formprocessor/processors/formprocessor/class-formprocessor-processor.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Caldera_Forms_Processor_UI' not found in wp-content/plugins/cf-civicrm-formprocessor/templates/processor.php:1

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: civicrm, forms, form, contact form

cf-civicrm-formprocessor/cf-civicrm-formprocessor.php 85% from 13 tests

Analyzing the main PHP file in "Integration of CiviCRM's Form Processor with Caldera Forms" version 1.0.1
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

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
No dangerous file extensions were detected526 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP582193520
Markdown1306

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity29.33
▷ Minimum class complexity11.00
▷ Maximum class complexity52.00
Average method complexity7.07
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods1285.71%
▷ Protected methods17.14%
▷ Private methods17.14%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin