Troubleshooting Performance and Speed Issues

Performance issues can significantly impact your website’s user experience and search engine rankings. This guide will help you identify and resolve common speed-related problems in DigiFusion.

Identify Performance Bottlenecks

The first step in troubleshooting performance issues is identifying what’s causing the slowdown.

Test Your Site Speed

Use online tools to measure your current performance:

  • GTmetrix
  • Google PageSpeed Insights
  • Pingdom Website Speed Test
  • WebPageTest

These tools will provide specific recommendations and highlight problem areas.

Check Plugin Conflicts

Deactivate all plugins except essential ones, then test your site speed. If performance improves significantly, reactivate plugins one by one to identify the problematic plugin.

Navigate to Plugins → Installed Plugins and deactivate plugins that aren’t essential for your site’s core functionality.

Optimize DigiFusion Theme Settings

Disable Unused Builder Elements

If you’re not using certain builder types, ensure they’re not loading unnecessary assets.

Go to your builder posts at DigiFusion → Site Builder and delete or set to draft any builders you’re not actively using.

Optimize Dynamic CSS Generation

DigiFusion generates CSS dynamically based on your customizer settings. Large amounts of custom CSS can impact performance.

Navigate to Appearance → Customize and review your color schemes, typography, and layout settings. Remove any unused customizations.

Minimize Schema Markup

If you’re experiencing issues with schema markup, you can disable it temporarily.

Add this code to your child theme’s functions.php file:

add_filter( 'digifusion_enable_schema_markup', '__return_false' );

Resolve Asset Loading Issues

Optimize CSS and JavaScript

Large CSS and JavaScript files can slow down your site significantly.

Combine and Minify Assets

Install a caching plugin that offers CSS/JS minification:

  • WP Rocket
  • WP Fastest Cache
  • WP Super Cache

Configure the plugin to combine and minify CSS and JavaScript files.

Remove Unused CSS

Identify and remove unused CSS that might be loading on your pages. Some performance plugins offer this feature automatically.

Fix Font Loading Issues

If you’re using custom fonts, optimize their loading.

Navigate to Appearance → Customize → Typography and consider:

  • Reducing the number of font weights
  • Using system fonts instead of Google Fonts
  • Enabling font display: swap in your CSS

Database Optimization

Clean Up Post Revisions

Excessive post revisions can slow down your database queries.

Add this code to wp-config.php to limit revisions:

define( 'WP_POST_REVISIONS', 3 );

Install a database optimization plugin like WP-Optimize to clean existing revisions.

Optimize Builder Data

If you have many Site Builder elements, optimize their database storage.

Navigate to DigiFusion → Site Builder and delete any unused or draft builder elements that are no longer needed.

Fix Caching Issues

Clear All Caches

Clear caches at multiple levels:

  1. Plugin Cache: Clear cache in your caching plugin
  2. Browser Cache: Hard refresh your browser (Ctrl+F5 or Cmd+Shift+R)
  3. CDN Cache: Clear cache in your CDN service
  4. Server Cache: Contact your hosting provider if needed

Configure Caching Properly

Ensure your caching plugin is configured correctly:

Page Caching Settings

  • Enable page caching for all post types
  • Set appropriate cache expiration times
  • Exclude dynamic pages (checkout, cart, account pages)

Object Caching

If available, enable object caching to reduce database queries.

Resolve Image Optimization Issues

Compress Images

Large images are often the biggest performance culprits.

Install an image optimization plugin:

  • Smush
  • ShortPixel
  • Imagify

Configure the plugin to automatically compress new uploads and optimize existing images.

Implement Lazy Loading

Enable lazy loading for images to improve initial page load times.

Add this code to your child theme’s functions.php file:

add_filter( 'wp_lazy_loading_enabled', '__return_true' );

Fix Server-Related Issues

Check Hosting Performance

Contact your hosting provider to verify:

  • PHP version (use PHP 8.0 or higher)
  • Memory limits (recommend 256MB minimum)
  • Server response times
  • Resource usage limits

Optimize PHP Settings

Add these optimizations to your wp-config.php file:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Troubleshoot Elementor Performance

If you’re using Elementor with DigiFusion builders:

Optimize Elementor Settings

Navigate to Elementor → Settings → Advanced:

  • Enable “Improved Asset Loading”
  • Disable “Font Awesome” if not needed
  • Enable “Improved CSS Loading”

Reduce Elementor Widgets

Limit the number of widgets and sections in your Elementor builders. Complex layouts with many elements can impact performance.

Clear Elementor Cache

Go to Elementor → Tools → Regenerate CSS and clear all Elementor caches.

Debug Resource-Heavy Queries

Identify Slow Database Queries

Install the Query Monitor plugin to identify slow database queries.

Navigate to the admin bar → Query Monitor when logged in to see detailed query information.

Optimize Heavy Queries

If you find problematic queries related to:

  • Custom post types
  • Meta queries
  • Taxonomy queries

Consider adding database indexes or restructuring your content.

Fix Third-Party Integration Issues

WooCommerce Performance

If using WooCommerce with DigiFusion:

Navigate to WooCommerce → Status → Tools and run:

  • Clear transients
  • Clear template cache
  • Regenerate product lookup tables

Google Fonts Optimization

If using Google Fonts, optimize their loading:

Add this code to your child theme’s functions.php file:

add_filter( 'style_loader_tag', function( $html, $handle ) {
    if ( strpos( $handle, 'google-fonts' ) !== false ) {
        return str_replace( "rel='stylesheet'", "rel='preload' as='style' onload=\"this.onload=null;this.rel='stylesheet'\"", $html );
    }
    return $html;
}, 10, 2 );

Monitor Ongoing Performance

Set Up Performance Monitoring

Use tools like:

  • GTmetrix monitoring
  • Uptime Robot
  • Google Search Console Core Web Vitals

Regular Maintenance

Perform these tasks monthly:

  • Clear all caches
  • Update plugins and themes
  • Optimize database
  • Review and remove unused plugins
  • Check for 404 errors

By following these troubleshooting steps systematically, you should be able to identify and resolve most performance issues affecting your DigiFusion-powered website.