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:
- Go to Consent Management → Settings
- Set Display Delay to 2000ms (2 seconds)
- Allows page to render first
- Banner loads after content
- Go to Consent Management → Appearance
- Uncheck “Enable Animations”
- Banner displays instantly
- No transition effects
- Faster perceived performance
- Go to Consent Management → Settings
- Change Banner Size to “Compact”
- Reduces banner height
- Less DOM to render
- Improves CLS score
- Simple template fastest
- GDPR template more complex
- Use Simple if possible
- Advanced template slowest
- Go to Accessibility Scanner → Settings
- Max URLs to Scan – Set lower (e.g., 50 instead of 100)
- Deep Scan – Disable if not needed
- Scans complete faster
- Go to Settings → Scanning Schedule
- Uncheck “Enable Scheduled Scans”
- Run scans manually during low-traffic
- Prevents peak-hour slowdown
- If keeping scheduled scans enabled:
- Set Scan Time to 2:00 AM
- Runs when site has least traffic
- Minimal performance impact
- Go to Accessibility Scanner → Advanced
- Max Concurrent Fixers – Lower number
- Default: 5, Set to 2-3
- Less resource intensive
- Scans take longer but use less CPU
- Go to SLOS → Settings → Advanced
- Check “Enable Query Caching”
- Caches frequent queries
- Reduces database load
- Improves response time
- Go to SLOS → Settings → Advanced
- Click “Optimize Database”
- Runs on next admin page load
- Defragments tables
- Improves query speed
- Go to SLOS → Settings → Data Management
- Auto-Archive Records – Enable
- Archive After (days) – Set to 365
- Keeps database lean
- Maintains history in archive
- Go to SLOS → Settings → Logging
- Log Retention (days) – Set to 90
- Old logs automatically deleted
- Reduces database size
- Improves query performance
- Go to SLOS → Settings → Processing
- Batch Size – Set to 50
- Batch Delay – Set to 100ms
- Processes without overwhelming server
- Better stability on shared hosting
- Go to SLOS → Settings → Audit Logging
- Log Level – Set to “Important Events”
- Vs. “All Events” (verbose)
- Reduces log size
- Improves performance
- Go to SLOS → Settings → Data Management
- Check “Compress Old Data”
- Older records compressed
- Saves database space
- Minimal speed impact
- Check “Minify CSS”
- Check “Minify JavaScript”
- CSS from 45KB → 12KB
- JS from 78KB → 22KB
- Reduces bandwidth
- Go to Settings → Performance
- Check “Asset Caching”
- Sets browser cache headers
- Assets cached 30 days
- Faster repeat visits
- Go to Settings → Performance
- Check “Defer Non-Critical CSS”
- Moves non-essential CSS
- Improves First Contentful Paint
- Better performance metrics
- Consent banner JS deferred
- Doesn’t block page rendering
- Loads after DOM ready
- No render blocking
- WP Super Cache
- W3 Total Cache
- WP Rocket
- LiteSpeed Cache
- Go to Settings → Caching
- Check “Query Caching”
- Default: 1 hour TTL
- Adjust TTL as needed
- Redis: Recommended
- Memcached: Good alternative
- WP Rocket: Handles automatically
- Cache Everything – CDN caches HTML, CSS, JS
- Browser Cache TTL – Set to 1 month
- Page Rules:
- Minify – Enable CloudFlare minification
- Google PageSpeed Insights – pagespeed.web.dev
- GTmetrix – gtmetrix.com
- WebPageTest – webpagetest.org
- CLS (Cumulative Layout Shift) – Target: <0.1
- LCP (Largest Contentful Paint) – Target: <2.5s
- FID (First Input Delay) – Target: <100ms
- Banner adds <50ms to load time
- Scanner doesn’t block page rendering
- Zero blocking JavaScript
- Total overhead: <100KB assets
- ❌ 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
- ✓ Enable only needed modules
- ✓ Schedule scans for off-hours
- ✓ Disable debug in production
- ✓ Use appropriate template complexity
- ✓ Enable minification
- ✓ Optimize database quarterly
- ☐ 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
- Upgrade to VPS/Cloud hosting
- Reduce scan scope
- Run scans during off-hours
- Enable caching
- Optimize database
- Banner still slow
- Scans timing out
- Site performance worse
- Database growing rapidly
- Performance metrics
- Server specifications
- Plugin list
- SLOS settings
- Optimization steps taken
- Review Performance section in Settings
- Enable all applicable optimizations
- Monitor site speed with PageSpeed Insights
- Adjust based on results
- Re-check quarterly
- Settings Guide
- Troubleshooting Guide
2. Disable Animations
If animations slow things down:
3. Minimize Banner Size
4. Simplify Banner Template
Accessibility Scanner Performance
1. Reduce Scan Scope
2. Disable Auto-Scan
3. Scan During Off-Hours
4. Limit Fixer Concurrency
Database Optimization
1. Enable Query Caching
2. Optimize Database Tables
3. Archive Old Records
4. Purge Logs Periodically
Consent Data Optimization
1. Batch Process Requests
DSR and consent processing:
2. Limit Audit Log Detail
3. Compress Old Data
Frontend Asset Optimization
1. Minify & Combine CSS/JS
Enable from Settings → Performance:
2. Enable Asset Caching
3. Defer Non-Critical CSS
4. Defer JavaScript
Already enabled by default:
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:
Note: Exclude SLOS admin pages from cache
2. Database Query Caching
Built-in query cache:
3. Object Caching
If available:
4. Asset Caching
Browser cache headers:
`
CSS: 30 days
JavaScript: 30 days
Images: 60 days
`
CDN Optimization
Using CloudFlare or similar:
– SLOS admin: Don’t cache
– /wp-admin/: Don’t cache
– Other pages: Cache everything
Monitor Performance
Check Site Speed
Use free tools:
Key Metrics
Monitor:
Shahi Performance Targets
Common Performance Mistakes
DON’T:
DO:
Performance Checklist
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:
When to Contact Support
If after optimization:
Provide:
Next Steps
Related
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.