How closemarketing/formscrm works
Main Components
a. WordPress Core Integration Layer:
• Plugin initialization (formscrm.php)
• Admin interface (includes/admin/)
• Assets management (includes/assets/)
b. Forms Integration Layer:
• Supported form plugins:
• GravityForms
• Contact Form 7
• WooCommerce
• WPForms PRO
• Located in includes/formscrm-library/
c. CRM Integration Layer:
• Free CRM connectors:
• Holded
• Clientify
• AcumbaMail
• MailerLite Classic
• Brevo
• Located in includes/crm-library/
d. Helper Components:
• Utility functions (helpers-functions.php)
• CRM library helpers (helpers-library-crm.php)
[WordPress Site]
• [FormsCRM Plugin Core]
• [Admin Interface]
• [Configuration & Settings]
• [Forms Integration Layer]
• [GravityForms Connector]
• [Contact Form 7 Connector]
• [WooCommerce Connector]
• [WPForms Connector]
• [CRM Integration Layer]
• [Holded Connector]
• [Clientify Connector]
• [AcumbaMail Connector]
• [MailerLite Connector]
• [Brevo Connector]
• [External Services]
• [CRM Systems]
• [Email Marketing Platforms]
Key Interactions to Highlight
a. Form Submission Flow:
• Form submission → Form Connector → CRM Library → External CRM
• Error handling and logging paths
b. Configuration Flow:
• Admin Interface → Settings Storage → CRM Authentication
c. Data Mapping:
• How form fields map to CRM fields
• Feed configuration process
Special Features to Note
• Multiple feed support
• Async lead creation in GravityForms
• Dynamic value composition
• Cookie integration for Clientify
• GDPR compliance (direct API connection)
Testing Components
A section showing the testing infrastructure:
• Unit tests (tests/unit/)
• Integration tests (tests/brevo.php, tests/clientify.php)