Fardar Tracking by BitLab for WooCommerce WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/chavindu/fardar-tracking-bitlab/releases/download/v2.2.0/fardar-tracking-bitlab-2.2.0.zipA secure, AJAX-powered WordPress plugin that enables FDE Domestic courier tracking via shortcode and direct URL. Integrates seamlessly with WooCommerce Shipment Tracking plugin with enterprise-level security measures and full High-Performance Order Storage (HPOS) compatibility.
📋 Description
Fardar Tracking by BitLab for WooCommerce provides secure, AJAX-powered shipment tracking using the FDE Domestic courier service. This plugin offers a clean, user-friendly interface for customers to track their shipments directly on your WordPress website with enterprise-level security measures.
✨ Features
- AJAX-Powered Tracking: Fast, responsive tracking without page reloads
- WooCommerce HPOS Compatible: Declares compatibility with High-Performance Order Storage (
custom_order_tables) and Cart/Checkout Blocks - Enhanced Security: Spoof-proof rate limiting, unslashed input sanitization, and KSES HTML protection
- WooCommerce Integration: Seamless integration with WooCommerce Shipment Tracking
- Bootstrap UI: Modern, responsive design using Bootstrap 5.3.3
- Direct URL Support: Share tracking links directly with customers
- Admin Settings: Easy configuration through WordPress admin panel
- GPL Licensed: Open source and follows WordPress.org standards
🔒 Security Features
- Rate Limiting: Server-validated IP rate limiting (10 requests per minute per IP) to prevent abuse and header spoofing
- Input Validation: Strict alphanumeric validation for tracking numbers (
/^[A-Za-z0-9]{3,20}$/) - Nonce Verification: All AJAX requests are protected with WordPress nonces
- Secure API Handling: Timeout protection, redirection limits, and SSL verification for external requests
- Content Sanitization: Strict KSES whitelist filtering for response markup
- Proper Escaping: All outputs are properly escaped to prevent injection attacks
- Clean Uninstallation: Dedicated
uninstall.phplifecycle script for database cleanup
🚀 Installation
Method 1: Manual Installation
- Download the plugin files
- Upload the
fardar-tracking-bitlabfolder to your/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
Method 2: WordPress.org (Future)
- Go to Plugins > Add New in your WordPress admin
- Search for "Fardar Tracking by BitLab"
- Click "Install Now" and then "Activate"
⚙️ Configuration
- Go to Settings > Fardar Tracking in your WordPress admin
- Headless Setup: If running a headless frontend (e.g. Next.js / Astro on
https://www.drivemods.lk), enter your frontend tracking URL (e.g.https://www.drivemods.lk/track-order) in the Headless / Custom Tracking URL field. - Monolith Setup: Select a WordPress page from the WordPress Tracking Page dropdown.
- Save your settings.
📖 Usage
Shortcode Method
Add the shortcode to any page, post, or block:
[bitlab_fardar_tracking]
Direct URL Method
Create direct tracking links using the format:
https://yourdomain.com/track-order?tracking_number=IND123456
(Also supports ?trackingno=IND123456 for backwards compatibility)
WooCommerce Integration
The plugin automatically registers "Fardar" as a tracking provider in the WooCommerce Shipment Tracking plugin.
🎨 Customization
The plugin uses Bootstrap 5.3.3 for styling. You can customize the appearance by:
- Adding custom CSS to your theme
- Overriding Bootstrap classes
- Modifying the plugin's CSS file at
assets/css/bootstrap.min.css
🔧 Requirements
- WordPress: 5.8 or higher (Tested up to 6.7)
- PHP: 7.4 or higher
- WooCommerce: 6.0+ (Tested up to 9.6, HPOS compatible)
- WooCommerce Shipment Tracking: (optional, for enhanced integration)
📱 Screenshots
- Admin Settings Page: Configure tracking page and view security features documentation
- AJAX Tracking Form: Clean Bootstrap-based UI for tracking input
- Direct Tracking Page: Example of tracking results display
- WooCommerce Integration: Seamless integration with WooCommerce Shipment Tracking
🔒 Security Implementation
The plugin implements multiple security layers:
Rate Limiting
- Uses WordPress transients to track requests per IP
- Limits to 10 requests per minute per IP address
- Automatically cleans up expired rate limit data
- Immune to
X-Forwarded-For/Client-IPheader spoofing
Input Validation
- Strict regex validation for tracking numbers (
/^[A-Za-z0-9]{3,20}$/) - Server-side and client-side validation
- Superglobals unslashed and sanitized using
sanitize_text_field( wp_unslash( ... ) )
AJAX Security
- Nonce verification for all AJAX requests
- Proper error handling and user feedback
- Timeout protection (15 seconds) for external API calls
Content Sanitization
- Whitelist approach for allowed HTML tags via
wp_kses() - Strips unauthorized tags and JavaScript event handlers automatically
- Safe rendering of courier status tables
External API Security
- SSL verification enabled
- Proper user agent identification
- Timeout protection
- Error handling for failed requests
🤝 Support
For support and questions:
- Website: bitlab.lk
- Email: Contact through the website
- Documentation: Check the plugin's admin settings page for usage instructions
📝 Changelog
Version 2.1.0
- WooCommerce HPOS Support: Full compatibility declaration for High-Performance Order Storage (
custom_order_tables) and Cart/Checkout Blocks - Hardened Rate Limiting: Fixed IP spoofing vulnerability in rate limit checks
- Shortcode Optimization: Prevented false rate-limiting on page load
- HTML Sanitization: Upgraded
wp_ksesconfiguration for robust courier table formatting - Dedicated Uninstaller: Added
uninstall.phpfor clean option and transient removal - UI Enhancements: Added accessible inline SVG icons for error states
Version 2.0.0
- Complete security overhaul with AJAX implementation
- Rate limiting (10 requests per minute per IP)
- Enhanced input validation and sanitization
- Nonce verification for all requests
- Secure external API handling with timeout protection
- Content sanitization and XSS protection
- Improved error handling and user feedback
- Bootstrap 5.3.3 integration
- WordPress 5.0+ compatibility
- PHP 7.4+ requirement for enhanced security
- Internationalization support with text domain loading
- Proper plugin hooks (activation, deactivation, uninstall)
- Conditional script loading for better performance
Version 1.1.1
- WooCommerce Shipment Tracking integration
- Bootstrap styling added to frontend form
- Enhanced admin instructions and security
- Dynamic tracking page URL based on admin selection
Version 1.1.0
- Added WooCommerce Shipment Tracking integration
- Dynamic tracking page URL based on admin selection
- Improved admin instructions and security
- Bootstrap styling added to frontend form
- Stable release for WordPress.org submission
Version 1.0.0
- Initial release with shortcode and tracking functionality
📄 License
This plugin is licensed under the GPL v2 or later.
Copyright (C) 2024 BitLab (Pvt) Ltd
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
👨💻 Development
File Structure
fardar-tracking-bitlab/
├── assets/
│ ├── css/
│ │ └── bootstrap.min.css
│ └── js/
│ └── tracking.js
├── languages/
├── fardar-tracking-bitlab.php
├── uninstall.php
├── readme.txt
├── README.md
└── .gitignore
WordPress.org Compliance
This plugin follows WordPress.org plugin guidelines:
- ✅ Proper plugin headers (WP 5.8-6.7+, WC 6.0-9.6+)
- ✅ WooCommerce HPOS compatibility declared
- ✅ Security best practices (unslashed inputs, nonce checks, capability checks)
- ✅ Input validation and sanitization
- ✅ Proper escaping of outputs
- ✅ Rate limiting
- ✅ GPL compatible license
- ✅ Proper file structure &
uninstall.php - ✅ Internationalization support
- ✅ Activation/deactivation hooks
🙏 Credits
- Developed by: BitLab (Pvt) Ltd
- Bootstrap: Bootstrap 5.3.3
- FDE Domestic: fdedomestic.com
Built with ❤️ by BitLab (Pvt) Ltd
For more information, visit bitlab.lk
Releases
4 releases. Each count is every asset in that release; expand a row for the breakdown.