WP Manifestindependent plugin directory
manifest / developer / tax-logic-engine-wp-

Enterprise Tax Logic Engine

An enterprise-grade WordPress logic engine demonstrating Object-Oriented PHP, data sanitization, and separation of concerns. Built for high-performance tax and currency calculations.

by Uttoorwar Meher Mani · github.com/uttoowar/tax-logic-engine-wp-

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/uttoowar/tax-logic-engine-wp-/archive/refs/heads/main.zip

📌 Engineering Overview

This project serves as a technical demonstration of Object-Oriented Programming (OOP) within the WordPress ecosystem. It focuses on the strict separation of business logic from the presentation layer (UI).

🎯 Key Engineering Standards

  • Strict Typing & Sanitization: Uses floatval() and esc_html() to prevent XSS and ensure data integrity.
  • Abstraction: Core calculations are handled via private class methods to prevent external tampering.
  • WordPress Coding Standards: Adheres to the "Plugin Header" requirements for proper WordPress initialization.

🛠️ Tech Stack

  • PHP: Version 7.4+ (Class-based structure)
  • WordPress API: Shortcode API
  • Environment: WordPress Core

🚀 How It Works

The engine uses a dedicated Class TaxLogicEngine to handle dynamic tax calculations for international e-commerce contexts.

Usage

Place the following shortcode on any page or post: [calculate_tax amount="500" rate="12"]

📂 File Structure

  • tax-logic-pro.php: Main plugin file containing the Class logic and security checks.
  • .gitignore: Standard WordPress exclusion rules.