Session Overview

Sam requested a full audit and migration of the Code Snippets plugin into WPCode Premium on aguiarinjurylawyers.com. The site was running two snippet plugins simultaneously: Code Snippets (standard, v3.9.5) with 11 active and 52 inactive snippets, and WPCode Premium (v2.3.5) with 19 active and 12 draft snippets. The goal was to consolidate everything into WPCode Premium, clean up junk snippets, and deactivate/uninstall Code Snippets.

After the migration was complete, Sam requested a comprehensive QA of 12-15 pages to verify nothing broke: no leaky CSS, no mobile optimization issues, no invisible text.

What Was Accomplished

Phase 1: Migration Planning

Full overlap analysis identified 3 snippets that existed in both plugins (Intaker Chat, CallRail Tracking, Navigation Dropdown Hover CSS). In all three cases, the WPCode version was equal or better. 10 active Code Snippets needed migration to WPCode (no WPCode equivalent existed). 6 inactive snippets were worth keeping as reference drafts. Approximately 45 inactive snippets were identified as junk (one-time scripts, temp utilities, superseded versions).

Phase 2: Migration Execution

All work was done via SSH (paramiko) and WP-CLI on the Cloudways server.

  1. Full backups created: /tmp/backup_code_snippets_20260412_185108.sql (206KB SQL dump of wp_snippets table) and /tmp/wpcode_backup_20260412_185108 (WP export XML of all WPCode posts)
  2. Rollback script saved: /tmp/rollback_migration.sh
  3. 10 active Code Snippets migrated to WPCode Premium via wp_insert_post with proper post type, meta keys, and taxonomy terms
  4. 6 reference snippets archived to WPCode as drafts
  5. 45 junk Code Snippets deleted
  6. 3 junk WPCode drafts deleted (duplicate #43426, empty #11546, legacy #12598)
  7. Code Snippets plugin deactivated

Phase 3: Post-Migration QA

12 pages tested via server-side HTML analysis (curl + grep via SSH). Chrome browser visual QA was attempted but blocked by persistent tab instability in the Chrome extension (tabs die immediately on navigation).

All 10 migrated snippets verified functioning: