Amit Shaw

Engineering

The backend side of my work. Client cases are real problems from 2022–2026, with example code for the approach (not the client’s original code). The lab and AI builds are new work I’m doing now, and each one says honestly where it stands.

  • Client work Real project, 2022–2026
  • Live demo Running now, try it
  • Building now Code in progress
  • Learning On the roadmap

Client cases

Backend problems from real projects at Bantech Solutions. Each one says whether it was my own fix or one I worked through with a senior developer. Open a project name to see the site it came from.

01

Client workWith a senior developer

Cleaning a hacked site when the backup is infected too

Melt Enterprises and a 2025 clean-up on PCI Centers

Problem
Malicious code on a site where core, plugins and the database had not been updated, and the backup was infected as well, so a restore was not an option.
Fix
Took a full copy, replaced core with a fresh download, reinstalled every plugin from the official source, removed PHP files from uploads, searched the database for injected scripts and unknown admins, then reset passwords and security keys.
  • Security
  • MySQL
  • WP-CLI
  • Malware removal
The approach in code
# Compare core and plugins with the official copies
wp core verify-checksums
wp plugin verify-checksums --all

# PHP has no business in uploads
find wp-content/uploads -type f -name "*.php"

# Admins nobody recognises
wp user list --role=administrator --fields=ID,user_login,user_registered

# Injected scripts in the database
wp db query "SELECT ID, post_title FROM wp_posts
  WHERE post_content LIKE '%<script%' OR post_content LIKE '%eval(%'"

# New security keys log everyone out
wp config shuffle-salts

Example of the approach, not the client’s original code

02

Client workWith a senior developer

A migration with no server access

BohNet Health

Problem
The old host would not give cPanel, FTP or a migration plugin. All we had was a database export, the wp-content folder and a README.
Fix
Fresh WordPress install, imported the database, copied wp-content, and changed the site URLs with a serialisation-safe search-replace instead of a plain find-and-replace. Then removed the host’s temporary admin user.
  • Migration
  • MySQL
  • Serialized data
  • WP-CLI
The approach in code
wp db import old-site.sql

# A plain SQL replace breaks serialized arrays (the string lengths change).
# WP-CLI unserializes, replaces and re-serializes, so widgets and options survive.
wp search-replace 'http://old-host.example' 'https://www.example.org' \
  --all-tables --precise --dry-run
wp search-replace 'http://old-host.example' 'https://www.example.org' \
  --all-tables --precise

wp user delete host-temp-admin --reassign=1
wp rewrite flush && wp cache flush

Example of the approach, not the client’s original code

03

Client workMy fix

Backslashes and merged paragraphs in member profiles

VR Bar

Problem
Apostrophes came back with a backslash in front, and paragraphs typed with Enter were joined into one block after saving.
Fix
Two causes in one text box: the data was slashed and never unslashed, and the wrong sanitiser was stripping line breaks. Unslash before saving, use a sanitiser that keeps line breaks, add paragraphs back on output.
  • PHP
  • Sanitisation
  • User meta
  • Escaping
The approach in code
// Saving: WordPress adds slashes to $_POST, so remove them first.
// sanitize_textarea_field() keeps line breaks; sanitize_text_field() does not.
$bio = sanitize_textarea_field( wp_unslash( $_POST['bio'] ?? '' ) );
update_user_meta( $user_id, 'member_bio', $bio );

// Showing: turn the line breaks back into paragraphs, then escape.
echo wp_kses_post( wpautop( get_user_meta( $user_id, 'member_bio', true ) ) );

Example of the approach, not the client’s original code

04

Client workWith a senior developer

Practice areas that lost their order after logout

VR Bar

Problem
Members dragged their practice areas into their own order, but the public profile went back to alphabetical and even showed a different number of tags.
Fix
The order was saved; the public view just was not reading it. Made the public profile use the member’s saved order and checked both views show the same list.
  • User meta
  • PHP
  • Data integrity
The approach in code
$areas = (array) get_user_meta( $user_id, 'practice_areas', true );
$order = (array) get_user_meta( $user_id, 'practice_areas_order', true );

// Saved order first, then anything added since, with no duplicates
// and nothing that has been removed.
$ordered = array_values( array_unique( array_merge(
    array_intersect( $order, $areas ),
    $areas
) ) );

Example of the approach, not the client’s original code

05

Client workMy fix

Case-study filters that work, and remember where you were

EDTL

Problem
The filters failed because the 23 studies were not tagged properly, and after going back from a study the listing filtered itself to one university.
Fix
Tagged every study with taxonomy terms from the client’s spreadsheet (university and up to three themes), and kept the chosen filter in the page address so Back returns to the same view.
  • Custom taxonomies
  • WP_Query
  • tax_query
  • JavaScript
The approach in code
// The filter lives in the URL: /case-studies/?university=leeds&theme=assessment
$tax = array( 'relation' => 'AND' );
foreach ( array( 'university', 'theme' ) as $taxonomy ) {
    $term = sanitize_key( $_GET[ $taxonomy ] ?? '' );
    if ( $term ) {
        $tax[] = array( 'taxonomy' => $taxonomy, 'field' => 'slug', 'terms' => $term );
    }
}
$studies = new WP_Query( array(
    'post_type'      => 'case_study',
    'posts_per_page' => 12,
    'tax_query'      => count( $tax ) > 1 ? $tax : array(),
) );

Example of the approach, not the client’s original code

06

Client workWith a senior developer

Fake orders that captcha did not stop

Sticker Orchard

Problem
Fake orders and emails kept arriving even with a captcha on the checkout.
Fix
Traced it to bots posting to the checkout and forms directly, so the captcha was skipped. Added a hidden honeypot field, limited repeat attempts, and turned on the payment gateway’s fraud protection.
  • WooCommerce
  • Security
  • Rate limiting
  • Hooks
The approach in code
// A field people never see, but bots fill in
add_action( 'woocommerce_after_order_notes', function () {
    echo '<p class="hp" aria-hidden="true"><input type="text" name="company_url" tabindex="-1" autocomplete="off"></p>';
} );

add_action( 'woocommerce_after_checkout_validation', function ( $data, $errors ) {
    if ( ! empty( $_POST['company_url'] ) ) {
        $errors->add( 'spam', __( 'Sorry, the order could not be placed.' ) );
        return;
    }
    // At most 5 attempts per IP in 10 minutes
    $key   = 'co_try_' . md5( $_SERVER['REMOTE_ADDR'] ?? '' );
    $tries = (int) get_transient( $key );
    if ( $tries >= 5 ) {
        $errors->add( 'rate', __( 'Too many attempts. Please try again in 10 minutes.' ) );
    }
    set_transient( $key, $tries + 1, 10 * MINUTE_IN_SECONDS );
}, 10, 2 );

Example of the approach, not the client’s original code

07

Client workMy fix

A staff login that can only download orders

Sticker Orchard

Problem
The owner’s helper printed the orders and needed to see and download order files, nothing else.
Fix
A custom user role with only the capabilities needed to log in and view orders, and the rest of the admin hidden for that role.
  • User roles
  • Capabilities
  • WooCommerce
  • Least privilege
The approach in code
// Run once (on plugin activation), not on every page load
add_role( 'order_printer', 'Order printer', array(
    'read'             => true,
    'edit_shop_orders' => true, // the orders screen
    'read_shop_order'  => true,
) );

add_action( 'admin_menu', function () {
    if ( ! in_array( 'order_printer', wp_get_current_user()->roles, true ) ) {
        return;
    }
    foreach ( array( 'index.php', 'edit.php', 'upload.php', 'tools.php', 'profile.php' ) as $page ) {
        remove_menu_page( $page );
    }
}, 999 );

Example of the approach, not the client’s original code

08

Client workMy fix

Pausing orders without taking the shop offline

Sticker Orchard

Problem
The owner needed to stop orders for a week. Switching the site off had hurt before: Google showed “temporarily closed” for over a month.
Fix
Kept every page live and indexable, switched purchasing off for the week with a small code switch, and showed customers a clear notice with the reopening date.
  • WooCommerce hooks
  • SEO
  • Store logic
The approach in code
// One option controls it: the date the shop reopens
function shop_is_paused() {
    $until = get_option( 'shop_paused_until' ); // e.g. '2024-12-28'
    return $until && strtotime( $until ) > time();
}

add_filter( 'woocommerce_is_purchasable', function ( $ok ) {
    return shop_is_paused() ? false : $ok;
} );

add_action( 'woocommerce_before_main_content', function () {
    if ( shop_is_paused() ) {
        wc_print_notice( sprintf( 'We’re taking a short break. Orders open again on %s.',
            esc_html( date_i18n( 'j F', strtotime( get_option( 'shop_paused_until' ) ) ) ) ), 'notice' );
    }
} );

Example of the approach, not the client’s original code

09

Client workMy fix

A speed plugin that broke call tracking

PCI Centers

Problem
Leads were being tracked to the wrong phone number.
Fix
The call-tracking script was being processed by NitroPack, so it did not run properly. Excluded it from optimisation so it loads untouched, cleared the cache, and confirmed with the tracking team that calls were recorded against the right numbers.
  • Debugging
  • JavaScript
  • Caching
  • Analytics
10

Client workMy fix

Contact form leads that went missing

David Fleck

Problem
The client said no leads were arriving, though the form looked fine.
Fix
Pointed the form at our own address so we could test without waiting on the client, found where delivery failed, fixed the sending setup (sender domain, SPF, DKIM and DMARC), then switched it back. A Google Sheet copy of each entry means leads are never only in email.
  • Email deliverability
  • DNS
  • DMARC
  • Contact Form 7
The approach in code
# The form must send FROM the site's own domain, and the domain must allow it
example.com          TXT  "v=spf1 include:<mail-provider> ~all"
<selector>._domainkey TXT  "v=DKIM1; k=rsa; p=<public key>"
_dmarc.example.com   TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"

# Contact Form 7 → Mail → From:  Website <noreply@example.com>
#                        Reply-To: [your-email]

Example of the approach, not the client’s original code

11

Client workWith a senior developer

Rebuilding from Elementor to pure Gutenberg for speed

95 Express

Problem
After a year, mobile PageSpeed was still poor: Elementor loaded its own CSS, JavaScript and icon fonts on every page, inside deeply nested layouts.
Fix
We decided a rebuild would beat more caching plugins. Rebuilt every page with core blocks and block patterns, styles in theme.json, icons as inline SVG, and stopped WordPress loading assets the site did not use.
  • Core Web Vitals
  • Gutenberg
  • theme.json
  • wp_enqueue
The approach in code
// Load block CSS only for blocks that are on the page, and drop unused extras
add_filter( 'should_load_separate_core_block_assets', '__return_true' );

add_action( 'wp_enqueue_scripts', function () {
    wp_dequeue_style( 'classic-theme-styles' );
}, 100 );

remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );

Example of the approach, not the client’s original code

12

Client workMy fix

Ticket rules: prices by date, and a family ticket that is four tickets

Desi Celebrations

Problem
Three price phases with their own dates, and family bookings that had to check in person by person, not as one ticket.
Fix
Each phase got its own price and date range so the right one shows automatically. A family or group purchase creates one ticket per person, each with its own QR code. Tested with one family and 99 group tickets in one order.
  • WooCommerce
  • Business logic
  • Event Tickets
  • Testing

Ask me about any of these in an interview. I can walk you through how I found the cause and why I chose that fix.

Engineering lab

New builds from 2026–27, made to the standard product companies and VIP agencies ask for: tests, coding standards and CI. These are my own projects, not client work.

Building nowDec 2026

Lead Kit: Gutenberg blocks, REST API and WP-CLI

A WordPress plugin built the way product teams build them. Three blocks written in React with block.json (a dynamic lead form, an FAQ block that outputs FAQPage schema, and a static notice block). Leads go to a custom database table through a versioned REST API. Admins manage them on a WP_List_Table screen or with WP-CLI.

  • Public endpoint protected without a nonce, so it still works behind page cache: signed time token, honeypot, per-IP rate limit, strict validation
  • Admin endpoints behind a custom capability, with schema, pagination and X-WP-Total headers
  • WP-CLI: wp lead-kit list | export | purge --older-than | seed
  • Custom table with dbDelta and a schema version, GDPR export and erase, clean uninstall
  • PHPUnit integration tests, PHPCS with the WordPress and WordPress VIP rules, GitHub Actions CI

✓ 33 integration tests, all passing against WordPress 7.1 in my local run, and 0 PHPCS errors (WordPress + VIP rules). GitHub Actions runs PHPUnit and PHPCS on every push once the repo is public.

Lead form block on the front end
Demo build Lead form block on the front end
Leads screen: WP_List_Table with status views and bulk actions
Demo build Leads screen: WP_List_Table with status views and bulk actions
FAQ block in the editor, with the schema setting
Demo build FAQ block in the editor, with the schema setting
  • Gutenberg
  • React
  • block.json
  • REST API
  • WP-CLI
  • PHPUnit
  • PHPCS
  • CI

LearningJan 2027

Performance case study

A slow WooCommerce-style site on the lab, measured with Query Monitor, then fixed: N+1 queries, missing indexes, autoloaded options and transients. Before and after numbers on one page.

  • Query Monitor
  • MySQL indexes
  • Caching

LearningJan 2027

End-to-end tests for the block editor

Playwright tests that open the editor, insert the Lead Kit blocks, publish and submit the form, running in CI.

  • Playwright
  • E2E testing

LearningFeb 2027

Headless WordPress with Next.js

A Next.js front end over the WordPress REST API, deployed live. I already do this with Astro; this is the React version.

  • Next.js
  • Headless
  • REST API

AI projects

Building on 40 practice notebooks in AI / ML practice. The first two will run inside WordPress on the lab site, so you can try them.

LearningDec 2026

Ask the WordPress handbook (RAG)

A WordPress plugin that answers questions from the WordPress developer handbook (GPL content) and cites its sources. Pages are split into chunks, embedded with OpenAI and stored in MySQL. A daily cap keeps costs fixed, and an admin page shows eval results: test questions against known answers.

  • RAG
  • Embeddings
  • OpenAI API
  • Evals
  • PHP

LearningDec 2026

WordPress MCP demo

WordPress’s Abilities API and MCP Adapter on the lab site, so an AI assistant can read and work with the site through tools I define, with permissions kept tight. A short screen recording shows it working.

  • MCP
  • Abilities API
  • AI agents

LearningMar 2027

AI site-audit agent

A LangGraph agent with tools (crawler, PageSpeed API, WordPress REST) that audits SEO, accessibility and speed and returns structured fixes.

  • Python
  • LangGraph
  • Tool calling

Practice notebooks and AI skills →

Learning roadmap

What I’m learning next and when, based on what senior WordPress and AI engineering roles ask for. When something is done, its label changes and a link to the work appears.

  1. Dec 2026Gutenberg blocks in React, PHPUnit, PHPCS (WordPress + VIP), GitHub Actions: first project built (Lead Kit)Building now
  2. Dec 2026RAG in PHP with OpenAI embeddings, and evalsLearning
  3. Dec 2026WordPress Abilities API and MCP AdapterLearning
  4. Jan 2027Playwright end-to-end tests, MySQL query tuningLearning
  5. Feb 2027Next.js and headless WordPressLearning
  6. Feb 2027Python for backend work: FastAPI, Pydantic, pytestLearning
  7. Mar 2027Vector databases (pgvector or Qdrant), LangGraph agentsLearning
  8. Apr 2027Docker and deploying on AWSLearning

Hiring a WordPress or full-stack developer? Let’s talk.

Open to full-time roles · Remote (US or UK hours) or on-site in Kolkata.