WP Manifestindependent plugin directory
manifest / forms / smart-contact-form-logger

Smart Contact Form Logger

WordPress plugin to log Contact Form 7 submissions

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/jayantchoudhari25/smart-contact-form-logger/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Smart Contact Form Logger is a custom WordPress plugin that captures and logs Contact Form 7 submissions into a dedicated database table and provides a secure admin interface to view, search, paginate, and manage submissions.

This plugin is designed to work independently of email delivery, making it ideal for auditing, debugging, and record-keeping purposes.


🚀 Features

  • Logs Contact Form 7 submissions automatically
  • Stores data in a custom database table (no post misuse)
  • Secure WordPress admin dashboard
  • Search submissions by form content
  • Pagination for large datasets
  • Bulk delete with nonce protection
  • Captures metadata:
    • IP address
    • Page URL
    • User agent
    • Submission timestamp
  • Fully compatible with localhost (no SMTP required)

🧱 Architecture Overview


🔧 Technologies Used

  • PHP (Procedural, WordPress standards)
  • WordPress Plugin API
  • Contact Form 7 Hooks
  • MySQL (via $wpdb)
  • HTML (Admin UI)

🔐 Security Practices

  • Capability checks (manage_options)
  • Data sanitization & escaping
  • Prepared database statements
  • CSRF protection using nonces
  • Direct file access prevention (ABSPATH)

📦 Installation

  1. Clone or download this repository
  2. Upload smart-contact-form-logger to /wp-content/plugins/
  3. Activate the plugin from WordPress Admin
  4. Install and activate Contact Form 7
  5. Submit a form and view logs under Form Logs

🧪 Tested Environment

  • WordPress 6+
  • PHP 8.x
  • Contact Form 7
  • Localhost (XAMPP)

📌 Use Cases

  • Backup of contact form submissions
  • Debugging email delivery issues
  • Compliance and audit logging
  • Lead tracking without email dependency

👤 Author

Jayant Choudhari
GitHub: https://github.com/jayantchoudhari25