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

Smart Contact Form Logger

WordPress plugin to log Contact Form 7 submissions

by JAYANT · github.com/jayantchoudhari25/smart-contact-form-logger

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/jayantchoudhari25/smart-contact-form-logger/archive/refs/heads/main.zip

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