Shahi LegalFlowSuite

Performance Optimization Guide

Optimize for Speed

Shahi LegalFlowSuite is built for performance, but you can optimize further.

Banner Performance

1. Lazy Load Banner

The banner auto-loads deferred (non-blocking). Additional optimization:

  1. Go to Consent ManagementSettings
  2. Set Display Delay to 2000ms (2 seconds)
  3. Allows page to render first
  4. Banner loads after content
  5. 2. Disable Animations

    If animations slow things down:

  6. Go to Consent ManagementAppearance
  7. Uncheck “Enable Animations”
  8. Banner displays instantly
  9. No transition effects
  10. Faster perceived performance
  11. 3. Minimize Banner Size

  12. Go to Consent ManagementSettings
  13. Change Banner Size to “Compact”
  14. Reduces banner height
  15. Less DOM to render
  16. Improves CLS score
  17. 4. Simplify Banner Template

    • Simple template fastest
    • GDPR template more complex
    • Use Simple if possible
    • Advanced template slowest
    • Accessibility Scanner Performance

      1. Reduce Scan Scope

    • Go to Accessibility ScannerSettings
    • Max URLs to Scan – Set lower (e.g., 50 instead of 100)
    • Deep Scan – Disable if not needed
    • Scans complete faster
    • 2. Disable Auto-Scan

    • Go to SettingsScanning Schedule
    • Uncheck “Enable Scheduled Scans”
    • Run scans manually during low-traffic
    • Prevents peak-hour slowdown
    • 3. Scan During Off-Hours

    • If keeping scheduled scans enabled:
    • Set Scan Time to 2:00 AM
    • Runs when site has least traffic
    • Minimal performance impact
    • 4. Limit Fixer Concurrency

    • Go to Accessibility ScannerAdvanced
    • Max Concurrent Fixers – Lower number
    • Default: 5, Set to 2-3
    • Less resource intensive
    • Scans take longer but use less CPU
    • Database Optimization

      1. Enable Query Caching

    • Go to SLOSSettingsAdvanced
    • Check “Enable Query Caching”
    • Caches frequent queries
    • Reduces database load
    • Improves response time
    • 2. Optimize Database Tables

    • Go to SLOSSettingsAdvanced
    • Click “Optimize Database”
    • Runs on next admin page load
    • Defragments tables
    • Improves query speed
    • 3. Archive Old Records

    • Go to SLOSSettingsData Management
    • Auto-Archive Records – Enable
    • Archive After (days) – Set to 365
    • Keeps database lean
    • Maintains history in archive
    • 4. Purge Logs Periodically

    • Go to SLOSSettingsLogging
    • Log Retention (days) – Set to 90
    • Old logs automatically deleted
    • Reduces database size
    • Improves query performance
    • Consent Data Optimization

      1. Batch Process Requests

      DSR and consent processing:

    • Go to SLOSSettingsProcessing
    • Batch Size – Set to 50
    • Batch Delay – Set to 100ms
    • Processes without overwhelming server
    • Better stability on shared hosting
    • 2. Limit Audit Log Detail

    • Go to SLOSSettingsAudit Logging
    • Log Level – Set to “Important Events”
    • Vs. “All Events” (verbose)
    • Reduces log size
    • Improves performance
    • 3. Compress Old Data

    • Go to SLOSSettingsData Management
    • Check “Compress Old Data”
    • Older records compressed
    • Saves database space
    • Minimal speed impact
    • Frontend Asset Optimization

      1. Minify & Combine CSS/JS

      Enable from SettingsPerformance:

    • Check “Minify CSS”
    • Check “Minify JavaScript”
    • CSS from 45KB → 12KB
    • JS from 78KB → 22KB
    • Reduces bandwidth
    • 2. Enable Asset Caching

    • Go to SettingsPerformance
    • Check “Asset Caching”
    • Sets browser cache headers
    • Assets cached 30 days
    • Faster repeat visits
    • 3. Defer Non-Critical CSS

    • Go to SettingsPerformance
    • Check “Defer Non-Critical CSS”
    • Moves non-essential CSS
    • Improves First Contentful Paint
    • Better performance metrics
    • 4. Defer JavaScript

      Already enabled by default:

    • Consent banner JS deferred
    • Doesn’t block page rendering
    • Loads after DOM ready
    • No render blocking
    • Server Configuration

      Increase PHP Limits

      In wp-config.php:

      `php
      // Increase memory for scanning/generation
      define(‘WPMEMORYLIMIT’, ‘512M’);
      define(‘WPMAXMEMORY_LIMIT’, ‘1024M’);

      // Increase execution time for long operations
      settimelimit(600); // 10 minutes

      // Increase upload size for PDF exports
      iniset(‘uploadmax_filesize’, ‘100M’);
      iniset(‘postmax_size’, ‘100M’);
      `

      Optimize MySQL/MariaDB

      Ask your hosting provider to configure:

      `sql
      — Increase query cache
      querycachesize = 128M

      — Optimize join buffer
      joinbuffersize = 4M

      — Optimize sort buffer
      sortbuffersize = 4M
      `

      Enable OPcache

      If available (usually is):

      `php
      // Php.ini configuration
      opcache.enable=1
      opcache.memory_consumption=128
      opcache.internedstringsbuffer=8
      opcache.maxacceleratedfiles=4000
      `

      Caching Strategy

      1. Page Caching

      Compatible with:

    • WP Super Cache
    • W3 Total Cache
    • WP Rocket
    • LiteSpeed Cache
    • Note: Exclude SLOS admin pages from cache

      2. Database Query Caching

      Built-in query cache:

    • Go to SettingsCaching
    • Check “Query Caching”
    • Default: 1 hour TTL
    • Adjust TTL as needed
    • 3. Object Caching

      If available:

    • Redis: Recommended
    • Memcached: Good alternative
    • WP Rocket: Handles automatically
    • 4. Asset Caching

      Browser cache headers:
      `
      CSS: 30 days
      JavaScript: 30 days
      Images: 60 days
      `

      CDN Optimization

      Using CloudFlare or similar:

    • Cache Everything – CDN caches HTML, CSS, JS
    • Browser Cache TTL – Set to 1 month
    • Page Rules:
    • – SLOS admin: Don’t cache
      – /wp-admin/: Don’t cache
      – Other pages: Cache everything

    • Minify – Enable CloudFlare minification
    • Monitor Performance

      Check Site Speed

      Use free tools:

    • Google PageSpeed Insights – pagespeed.web.dev
    • GTmetrix – gtmetrix.com
    • WebPageTest – webpagetest.org
    • Key Metrics

      Monitor:

    • CLS (Cumulative Layout Shift) – Target: <0.1
    • LCP (Largest Contentful Paint) – Target: <2.5s
    • FID (First Input Delay) – Target: <100ms
    • Shahi Performance Targets

    • Banner adds <50ms to load time
    • Scanner doesn’t block page rendering
    • Zero blocking JavaScript
    • Total overhead: <100KB assets
    • Common Performance Mistakes

      DON’T:

    • ❌ Leave all modules enabled if not using them
    • ❌ Run accessibility scans during peak traffic
    • ❌ Keep debug logging enabled on production
    • ❌ Use Advanced template if Simple works
    • ❌ Skip asset minification
    • ❌ Ignore database optimization
    • DO:

    • ✓ Enable only needed modules
    • ✓ Schedule scans for off-hours
    • ✓ Disable debug in production
    • ✓ Use appropriate template complexity
    • ✓ Enable minification
    • ✓ Optimize database quarterly
    • Performance Checklist

    • ☐ Minify CSS/JavaScript enabled
    • ☐ Asset caching enabled
    • ☐ Query caching enabled
    • ☐ Debug logging disabled
    • ☐ Scheduled scans during off-hours
    • ☐ Banner animations enabled (unless slow)
    • ☐ Unnecessary modules disabled
    • ☐ Database optimized
    • ☐ PHP memory increased to 512M
    • ☐ Execution time increased to 600s
    • ☐ CloudFlare/CDN configured
    • Benchmarks

      Typical Performance

      | Operation | Time | Resource |
      |———–|——|———-|
      | Banner render | 50-100ms | <2MB | | Single page scan | 30-60s | 50-100MB | | Full site scan | 5-15 min | 100-500MB | | Document generation | 5-30s | 20-50MB | | DSR export | 10-60s | 50-200MB |

      On Shared Hosting

      May be 2-3x slower. Solutions:

    • Upgrade to VPS/Cloud hosting
    • Reduce scan scope
    • Run scans during off-hours
    • Enable caching
    • Optimize database
    • When to Contact Support

      If after optimization:

    • Banner still slow
    • Scans timing out
    • Site performance worse
    • Database growing rapidly
    • Provide:

    • Performance metrics
    • Server specifications
    • Plugin list
    • SLOS settings
    • Optimization steps taken
    • Next Steps

    • Review Performance section in Settings
    • Enable all applicable optimizations
    • Monitor site speed with PageSpeed Insights
    • Adjust based on results
    • Re-check quarterly
    • Related

    • Settings Guide
    • Troubleshooting Guide

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket