=== Clicks Admin Toolkit ===
Contributors: sykologicist
Tags: admin, duplicate post, svg upload, security, woocommerce
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

297 toggleable WordPress admin modules for security, speed, SEO, SMTP, WooCommerce, and UX. One plugin. Zero overhead.

== Description ==

**Clicks Admin Toolkit packs 297 toggleable modules into a single modern dashboard — replacing 40 to 60 standalone plugins with zero performance overhead.**

Every module is 100% free with zero upsells, zero locked features, and zero nag banners.

= The Problem Solved =

Standard sites install dozens of single-purpose plugins for post cloning, SVG uploads, SMTP mail delivery, login throttling, SEO redirects, and WooCommerce tweaks — severely degrading wp-admin performance and creating dependency conflicts. Clicks Admin Toolkit replaces them all with one lightweight, cohesive suite stored in a single autoloaded database row.

= High-Performance Architecture =

* **Zero Overhead**: Inactive modules never load; zero hooks registered.
* **Single Database Row**: All 297 module states live in a single autoloaded option.
* **Native WordPress APIs**: Built strictly on Settings, Transients, WP_Filesystem, and REST APIs.
* **Modern SaaS Interface**: Linear and Stripe-inspired admin center with instant search (Ctrl+K), status filtering chips, and slide-down configuration drawers.

= 10 Dedicated Standalone Admin Centers =

1. **Bulk Products Spreadsheet Editor**: Excel-like spreadsheet table for bulk editing WooCommerce prices, stock, SKUs, and dimensions with batch save (`clicks-bulk-products`).
2. **Broken Link Checker & Inline Fixer**: Site-wide scanner detecting 404 links with 1-click inline URL replacements and redirect generation (`clicks-broken-links`).
3. **Safe Search & Replace Engine**: Database regex search and replace with safety dry-run live diff preview before committing changes (`clicks-search-replace`).
4. **Multi-Vendor Marketplace Center**: Vendor commission tiers, automated payout tracking, and vendor capability locks (`clicks-multi-vendor`).
5. **Bookings & Appointments Hub**: Interactive appointment calendar, staff assignment, and booking buffer management (`clicks-bookings`).
6. **Recurring Subscriptions Engine**: Subscription lifecycles, automated renewals, MRR metrics, and grace period settings (`clicks-subscriptions`).
7. **Affiliate Program & Commissions**: Affiliate tracking, referral URL generation, conversion logs, and payout ledger (`clicks-affiliates`).
8. **Digital & Physical Gift Cards**: Gift card code generator, balance lookup, customer email delivery, and checkout redemption (`clicks-gift-cards`).
9. **Visual Email Template Builder**: Drag-and-drop transactional email designer with live responsive previews and brand tokens (`clicks-email-builder`).
10. **Cost of Goods & Profit Analytics**: Product purchase costs, live net profit margins, and inventory asset valuation (`clicks-cost-profit`).

= 7 Executive Dashboard Widgets =

1. **File Monitor**: Scans core, themes, and plugins for file tampering.
2. **Login Radar**: Live monitoring of logins and blocked attempts.
3. **Deliverability**: Outbound mail deliverability score and alerts.
4. **Activity Stream**: Chronological stream of admin actions.
5. **Broken Links**: Summary of 404 links with 1-click recheck.
6. **Database Health**: Visual breakdown of overhead and transients.
7. **REST Limiter**: Live API traffic volume and bot monitor.

= 1-Click Starter Preset Packs =

* **Agency Starter**: Duplicate Post, SVG Uploads, Dark Mode, Custom Favicon, Admin Bar Cleaner.
* **Maximum Security**: Secret Login URL, Limit Login Attempts, Disable XML-RPC, 2FA, Restrict REST API.
* **Speed & Web Vitals**: Disable Emojis, Heartbeat Control, Script Defer, Query Cleaner, Native Lazy Loading.
* **Store Power Pack**: Cart Drawer, Sticky Buy Bar, Delivery Date Estimator, Order Bumps, Tiered Pricing, Variation Swatches.

= Complete Breakdown of All 12 Modular Suites (297 Tools) =

**1. Posts & Pages (10 Modules)**
Essential publishing tools including 1-Click Duplicate Post & Page, Drag & Drop Post Reordering, Enable Page Excerpts Box, Visual Editorial Publishing Calendar, Choose Editor by Post Type (Classic vs Block), Lightweight Social Share Buttons (zero cookies), Article Reading Time Estimator, Custom Editorial Workflow Statuses ("In Review", "Approved"), Custom Password-Protected Page Screen, and Duplicate Post Titles Alert.

**2. Media Library (15 Modules)**
Safe SVG Vector Image Uploads with XML sanitization, 1-Click Replace Media File, Media Library Categories & Tags, Restrict Media Library to User Uploads, Automatic Image Alt & Title Fallback, SEO-Friendly Image Filename Sanitizer, Automatic WebP Converter & Compression, Remove Camera & Location Data from Photos (EXIF), Automatic Image Watermarking, Media Folders Taxonomy Organizer, Media SEO Auto-Renamer, Page & Post Lock Guard, Fast On-Demand Thumbnail Regenerator, Single Post Reading Progress Indicator Bar, and Exact Duplicate Media & File Hash Finder.

**3. Appearance & Admin UI (13 Modules)**
Admin Menu Renamer & Organizer, Admin Top Bar Cleaner, Custom Admin Dashboard Favicon, Custom Admin Columns (ID, Thumbnail, Slug), Show Last Modified Date & Author Column, Sticky Table Column Headers, Full-Width Widescreen Admin Tables, White-Label Admin Footer Customizer, Clean Admin Dark Mode for wp-admin, Admin Color Scheme Customizer, Clean Collapsible Admin Sidebar Folders, Admin Quick Links Speed Dial Menu, and Admin Custom Font & Typography Enhancer.

**4. Dashboard & Notices (10 Modules)**
Admin Notification Declutter Drawer (collapses annoying nags into a neat bell tray), Hide Plugin Notices for Non-Admins, Disable Block Editor Fullscreen by Default, Hide Default Cluttered Dashboard Boxes, Custom Welcome & Announcement Widget, Disable WordPress.org Block Directory Search, Live Search Bar in Top Toolbar, Hide WordPress Update Banner for Non-Admins, Remove WordPress Logo from Top Bar, and Admin Floating Sticky Action Bar.

**5. Users & Roles (10 Modules)**
Track User Last Login Date & IP Address, Require Password Reset on Next Login, Stop New User Registration Admin Emails, Hide Frontend Admin Bar for Specific Roles, Block Non-Admins from Accessing /wp-admin/, 1-Click User Account Switcher, Format User Display Names Automatically, Log Out All Other Active Devices, Comprehensive Custom User Role & Capability Editor, and Restrict Admin Access by IP Address Allowlist.

**6. Login & Registration (11 Modules)**
Custom Secret Login URL (rename wp-login.php), Custom Login Page Branding & Logo Styler, Limit Login Attempts & IP Lockout, Enforce Login with Email Only or Username Only, Custom Role-Based Login Redirects, Custom Logout Redirect Destination, Hide "Lost your password?" & "Back to blog", Automatically Log Out Inactive Sessions, One-Time Magic Login Links via Email, Passwordless Login with One-Time Security PIN, and Password Strength Enforcer & Expiration Policy.

**7. Security & Hardening (21 Modules)**
Two-Factor Authentication (2FA via Authenticator Apps), Emergency 1-Time 2FA Recovery Codes, Block XML-RPC Attacks & Pingback Floods, Hide WordPress Version from Public Code, Prevent Theme & Plugin Code Editing in Dashboard, Invisible Anti-Spam Honeypot for Comments, Block Author Username Enumeration Scans, Restrict REST API to Logged-in Users, Cloudflare Turnstile Bot Protection, Content Security Policy (CSP) Header Generator, Strict HTTP Security Headers (HSTS, X-Frame-Options), Automatic File Integrity & Core Scanner, Real-Time Activity Audit Log & Forensic Trail, Granular REST API Endpoint Rate Limiting, Temporary Admin Access without Password, Site-Wide Maintenance Mode & Coming Soon Page, Master Password Protection for Entire Site, Hide Installed Plugins & Themes from Scanners, Disable Application Passwords, Block Suspicious Query Strings & SQLi, and Disposable Email Domain Blocker on Registration.

**8. Emails & SMTP (12 Modules)**
Built-in SMTP Mailer (Reliable Delivery via SSL/TLS), Outbound Email Logger & Body Preview, 1-Click Live SMTP Test Email Sender, Site-Wide "From Name" & Email Override, Clean Responsive HTML Email Template, Email Open & Click-Through Tracking, Send Asynchronous Background Emails via Action Scheduler, Backup Secondary Fallback SMTP Mailer, Email Notification Frequency Digest, Multi-Recipient CC/BCC Routing Rules, Block Disposable Email Addresses, and Automatic Inbound Email Bounce Webhook Handler.

**9. Performance & Speed (12 Modules)**
Disable WordPress Emojis & Inline Scripts, Heartbeat API Frequency Controller, Limit Post Revisions (Keep Database Lean), Modify Post Autosave Interval (Save Server Writes), Remove Unnecessary Tags (RSD, WLW, Shortlink), Disable Embeds & oEmbed JavaScript, Defer Non-Critical JavaScript Files, Instant Page Hover-Prefetch Engine, Remove Query Strings from Static Assets, DNS Prefetch & Preconnect Resource Hints, Native Image Lazy Loading, and Local Google Fonts Host & Preloader.

**10. SEO & Redirects (5 Modules)**
Open External Links in New Browser Tab, Broken Link Crawler & 1-Click Link Fixer, 301/302 Redirect Manager & 404 Tracker, Smart 404 Auto-Redirect to Closest Matching Post, and Send HTTP 503 Headers During Maintenance.

**11. Tools & Maintenance (19 Modules)**
Clean Maintenance & Coming Soon Screen, Master Password Protection for Entire Site, Server Environment & PHP Health Inspector, 1-Click Database Cleanup for Transients & Trash, Scheduled Automatic Database Maintenance (Cron), Complete Search & Replace Database Engine, Quick Link Speed Dial Tray, Admin Activity Log & Security Audit Trail, Export & Import Plugin Settings (JSON), System Error Log Live Viewer, Database Snapshot & 1-Click Table Backup, Orphaned Postmeta & Term Relationships Janitor, WP Cron Jobs Visual Inspector & Manager, Automatic Cache Purge Hook Integrator, PHP Error Log Downloader, Server Benchmark & Query Performance Inspector, Transients Database Janitor, Purge Auto-Drafts & Revisions, and Unused Media & Attachment Cleaner.

**12. WooCommerce E-Commerce Suite (159 Modules)**
The most complete native e-commerce toolkit for WooCommerce:
* **Catalog & Product Display**: Variation Swatches (Color, Image, Button), Product Video in Gallery, Interactive Size Charts & Measurement Guides, Product Image Hover Zoom, Fast 1-Click Quick View Lightbox, Recently Viewed Products Carousel, Custom Product Tabs Manager, Back-in-Stock Alerts, Pre-Orders & Expected Ship Dates, "Call for Price" Inquiry Button, and Wishlist & Save for Later Drawer.
* **Cart, Checkout & Conversions**: Slide-Out AJAX Mini Cart Drawer, Instant Live AJAX Autocomplete Search, Skip Cart / Direct Checkout Redirection, Custom "Add to Cart" Button Text, 1-Click "Empty Cart" Button, Sticky Mobile "Buy Now" Bottom Bar, Free Shipping Progress Bar, Custom Checkout Field Editor, High-Converting 1-Click Order Bumps, Predictive Street Address Autocomplete, Product Add-ons & Extra Options, Surcharge for Low Orders, Custom "Thank You" Page Redirect, and Min/Max Purchase Quantities.
* **Pricing, B2B & Wholesale**: Multi-Currency Switcher with GeoIP Auto-Detect, Tiered Volume Pricing & Bulk Discount Tables, Role-Based Wholesale Pricing, Dynamic Coupon Auto-Apply via URL, Free Gift with Purchase, Custom B2B Customer Registration Form, Wholesale Minimum Order Rules, B2B Tax Exemption & VAT Number Validation, and Customer Account Funds & Wallet.
* **Orders, Receipts & Invoicing**: Automatic PDF Invoices & Packing Slips, Order Barcodes & QR Scanner, Custom Order Status Manager with Colors, Shipment Tracking with 100+ Carrier Links, Cost of Goods (COGS) & Profit Margin Analytics, Quick Wholesale Bulk Order Form, Post-Purchase Satisfaction Surveys, and Customer Artwork / PDF File Uploads.
* **Advanced Dedicated Centers**: Complete Multi-Vendor Marketplace, Bookings & Appointment Calendar Manager, Recurring Subscriptions Lifecycle & MRR Analytics, Full Affiliate Program & Commission Tracking, Digital & Physical Gift Cards System, Product Auctions & Bidding Engine, and Drag-and-Drop Visual Transactional Email Designer.

= Enterprise-Grade Security =

* **Capability Verification**: All AJAX and settings actions enforce strict `manage_options` permissions.
* **Cryptographic Nonces**: CSRF protection on every single form and request.
* **Deep Sanitization**: Recursive sanitization, unslashing, and schema validation.
* **Prepared SQL**: All queries executed through `$wpdb->prepare()` with zero raw input interpolation.

= Who Is This Plugin For? =

* **Agencies & Freelancers**: Rapidly configure client sites with starter presets, whitelabeling, and notice drawers.
* **Store Owners**: Replace bulky WooCommerce extensions with native, high-converting features.
* **Publishers & Content Creators**: Streamline editorial workflows, eliminate admin bloat, and protect media assets.

= 100% Free & Open Source =

No premium tiers. No paid add-ons. No license keys. Clicks Admin Toolkit is 100% free under the GPLv2 license.

= Built by Clicks =

Clicks develops high-performance WordPress software powering thousands of websites worldwide. Visit [clicks.com.pk](https://clicks.com.pk) for documentation and support.

= External Services =

Optional external connections when specific modules are explicitly enabled by the administrator:
* **GeoIP Multi-Currency**: api.exchangerate-api.com and ip-api.com for live currency rates and country detection.
* **Google Address Autocomplete**: maps.googleapis.com for address autocomplete on checkout.
* **Cloudflare Turnstile**: challenges.cloudflare.com for invisible bot verification.

== Installation ==

= From WordPress Admin =
1. Navigate to **Plugins > Add New**.
2. Search for `Clicks Admin Toolkit`.
3. Click **Install Now** and then **Activate**.
4. Access the suite under **Clicks Toolkit** in your admin menu.

= Manual Installation =
1. Upload the `clicks-admin-toolkit` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Configure your desired modules under **Clicks Toolkit**.

== Frequently Asked Questions ==

= Does having 297 modules slow down my site? =
No! That is the fundamental architectural guarantee of Clicks Admin Toolkit. Only toggled modules register hooks or execute code. Disabled modules consume zero CPU cycles and zero memory.

= Is it compatible with WooCommerce? =
Yes! The suite includes 159 dedicated WooCommerce modules across 5 specialized sub-areas (Products & Display, Cart & Checkout, Orders & Receipts, Marketing & Coupons, Payments & Shipping). These modules automatically initialize only when WooCommerce is active.

= Can I export my configuration and import it on another site? =
Yes! Use the built-in Backup & Restore modal to export your entire configuration as a JSON string and import it onto any WordPress site running Clicks Admin Toolkit with one click.

= Does this plugin run arbitrary PHP code or use eval()? =
No. In strict compliance with WordPress.org security standards, this plugin never uses eval(), exec(), shell_exec(), move_uploaded_file(), or arbitrary code evaluation.

= Is PHP 8.x and WordPress 7.x supported? =
Yes! Fully tested and verified on PHP 7.4 through 8.3+ and WordPress 6.0 through 7.1+.

= What happens if I deactivate the plugin? =
All behaviors cleanly revert to WordPress defaults. No core files, tables, or database structures are damaged. Your configurations remain safely stored in `sasuite_settings` if you reactivate later.

= Is there a paid or Pro version? =
No. All 297 modules are 100% free and fully unlocked with zero restrictions, zero upsells, and zero advertisements.

== Screenshots ==

1. **Modern SaaS Administration Hub** — 297 modular tools organized across 12 categories with instant search (Ctrl+K), status filters, and toggle switches.
2. **10 Standalone Dedicated Centers** — Full-page management screens for Bulk Products, Broken Links, Safe Search & Replace, Bookings, Subscriptions, and Marketplace.
3. **Slide-Out Configuration Drawers** — Smooth accordion drawers with WordPress Media Library integration, color pickers, and live previews.
4. **Admin Notice Drawer & Bell Tray** — Floating notification bell that collapses third-party plugin banners into a clean slide-out tray.
5. **7 Executive Dashboard Widgets** — Real-time monitoring of file integrity, login activity, email deliverability, and database health.
6. **Built-in SMTP Mailer & Live Test Sender** — Complete outbound email configuration with SSL/TLS encryption and instant diagnostic test emails.

== Changelog ==

= 1.3.0 =
* Massive Architecture Expansion: Expanded toolkit to 297 modular tools across 12 core categories with zero third-party dependencies.
* Complete SaaS UI/UX Overhaul: Redesigned dashboard inspired by Linear, Stripe, and Tailwind UI with enclosed pill search, status filter chips, and micro-button bulk actions.
* Added 10 Dedicated Standalone Admin Centers:
  - Advanced Bulk Product Spreadsheet Editor (`clicks-bulk-products`)
  - Broken Links Manager & Inline URL Replacer (`clicks-broken-links`)
  - Safe Search & Replace Engine with Dry-Run Live Diff Modal (`clicks-search-replace`)
  - Multi-Vendor Marketplace Center & Commission Ledger (`clicks-multi-vendor`)
  - Bookings & Appointment Interactive Calendar Manager (`clicks-bookings`)
  - Recurring Subscription Lifecycle & MRR Analytics (`clicks-subscriptions`)
  - Affiliate Program & Commission Payout Suite (`clicks-affiliates`)
  - Digital & Physical Gift Cards Management (`clicks-gift-cards`)
  - Visual Drag-and-Drop Email Template Builder (`clicks-email-builder`)
  - Cost of Goods (COGS) & Net Margin Analytics (`clicks-cost-profit`)
* Complete WooCommerce Power Suite (159 modules): Auction & Bidding System, Enterprise Barcodes & Shelf Labels, GeoIP Multi-Currency Engine, 1-Click Checkout, Configurable Product Bundles, Composite Configurator, Ajax Faceted Filters, Catalog Mode, Quote Requests, Stripe Apple Pay / Google Pay Gateway, Deposits & Down Payments, EU VAT/OSS/IOSS compliance, 100+ Carrier Shipment Tracking, Customer Account Wallet, and Wishlist Drawer.
* Bulletproof Styling & Strict JS Engine: Neutralized WordPress core button specificity overrides, integrated cache-proof inline critical styling, and ensured 100% strict-mode JavaScript stability across all 29 event handlers.
* Verified 100% WordPress.org coding standard compliance with zero security flags.

= 1.2.0 =
* Major UX Overhaul & WooCommerce Power Suite: 186+ modular tools with modern high-speed dashboard and zero developer jargon.
* Added dynamic "Email Logs" admin screen under Clicks Toolkit with message body preview modal, raw headers inspection, delivery metrics, search filter, CSV export, and 1-click log purge.
* Added dynamic "Activity Log" admin screen under Clicks Toolkit for chronological audit trails of administrator logins, post publications, role modifications, and plugin actions.
* Redesigned Dashboard Navigation: Standardized category names using core WordPress terminology.
* Unified WooCommerce Suite: Single primary WooCommerce category with 5 nested sub-tabs for instant sub-filtering.
* Added 47 new enterprise e-commerce modules, expanding the toolkit to 186+ tools.
* Verified 100% WordPress.org coding standard compliance with zero security flags.

= 1.1.0 =
* Major expansion: Added 39 new production-grade modules, expanding the toolkit to 139+ tools.
* Added 7 Executive Dashboard Widgets on wp-admin: File Change Monitor, Login Radar, Outbound Mail Deliverability, Activity Stream, Broken Link Checker, Database Health Inspector, and REST Rate Limiter.
* Added 1-Click Starter Preset Packs: Agency Starter, Maximum Security Shield, Speed & Core Web Vitals, and High-Converting Store Pack.
* Added GeoIP Multi-Currency Switcher with live exchange rate sync and customizable currency flags.
* Added WooCommerce Conversions suite: Slide-Out Cart Drawer, Sticky Buy Now Bar, Free Shipping Progress Bar, Custom Order Statuses, and Quick Order Notes.
* Verified 100% WordPress.org coding standard compliance with zero security flags.

= 1.0.3 =
* Initial public release with 100+ free modular administration tools.
* 10 organized categories: Content, Admin UI, Dashboard, Login, Security, Performance, WooCommerce, Users, Email, Utilities.
* Zero-overhead conditional module loader — disabled modules are never loaded.
* Single autoloaded database row for all 100+ module configurations.
* Verified 100% WordPress.org coding standard compliance.

== Upgrade Notice ==

= 1.3.0 =
Major Enterprise Expansion & Modern SaaS Dashboard: 297 total modular tools across 12 categories, 10 dedicated standalone admin centers, 159 WooCommerce Power Suite modules, Auction System, Barcode Suite, Multi-Currency Engine, Multi-Vendor Marketplace, Subscriptions, Bookings, Affiliates, Gift Cards, and Visual Email Builder. Seamless upgrade with zero breaking changes.

= 1.2.0 =
Major WooCommerce expansion: 47 new e-commerce modules (186+ total), including Delivery Date Estimator, Tiered Pricing, PDF Invoices, Order Barcodes, Abandoned Cart Recovery, Order Bumps, WhatsApp Ordering, and XML Feeds. Seamless upgrade with no breaking changes.

= 1.1.0 =
Major feature upgrade: 39 new modules (139+ total), 7 executive dashboard widgets, 1-click starter presets, GeoIP multi-currency switcher, slide-out cart drawer, REST rate limiter, and scheduled DB cleanup. Seamless upgrade with no breaking changes.

= 1.0.3 =
Initial stable release. Install to access 100+ zero-overhead modular WordPress administration, security, speed, and WooCommerce tools — all completely free.
