Remove Unused JavaScript Code

How to optimize swansplumbing.com.au

WordPress SiteScore: 82/100Analyzed January 2026

Remove Unused JavaScript Code

High Impact+12 points estimated

Why It Matters

313 KiB of unused JavaScript is blocking page interactivity and delaying Time to Interactive by over 3 seconds.

How to Fix

Use WP Asset CleanUp plugin to disable unused scripts per page. Defer Google Analytics and GTM loading until after page load. Remove or replace the heavy Facebook Pixel implementation with a lighter alternative like PixelYourSite that loads asynchronously.

0Needs Improvement

What This Score Means

A score of 82 falls in the "Needs Improvement" range (50-89). While it is better than poor (0-49), you should aim for 90+ to provide an optimal user experience and maximize SEO benefits.

This site is slower than approximately 35% of similar sites. The main issues affecting performance are image optimization, JavaScript execution time, and layout stability.

Addressing these issues could improve your conversion rate by 15-20% and boost your search engine rankings.

Core Web Vitals Analysis

LCP

Largest Contentful Paint

3.2s
Needs Improvement

Good: < 2.5s

Measures how long it takes for the main content to appear on screen

INP

Interaction to Next Paint

124ms
Good

Good: < 200ms

Measures how quickly the page responds to user interactions

CLS

Cumulative Layout Shift

0.00
Good

Good: < 0.1

Measures visual stability - how much content shifts during page load

AI Performance Analysis

This WordPress site has decent performance with a score of 82/100, but there's significant room for improvement. The biggest issue is excessive unused JavaScript (313 KiB of waste) from Google Analytics and other scripts, combined with a slow Time to Interactive of 6.9 seconds that's hurting user experience. The site is also loading 21 KiB of unused CSS and has poor caching policies for Facebook tracking scripts. Cleaning up unused code, implementing better caching strategies, and deferring non-critical JavaScript could easily push this site into the 90+ performance range and dramatically improve loading speeds.

Other Optimization Recommendations

Optimize CSS Delivery and Usage

High Impact+10 points estimated

Why It Matters:

21 KiB of unused CSS and render-blocking stylesheets delay First Contentful Paint by 806ms.

How to Fix:

Install Autoptimize or WP Rocket to inline critical CSS and defer non-critical styles. Use PurgeCSS or UnCSS to remove the 91% of unused CSS rules from your minified stylesheet. Split CSS to load only what's needed above-the-fold first.

Implement Better Resource Caching

Medium Impact+8 points estimated

Why It Matters:

Poor cache lifetimes for 144 KiB of resources force unnecessary re-downloads on repeat visits.

How to Fix:

Configure longer cache headers for Facebook Pixel and Google Analytics through your CDN or caching plugin. Set cache-control headers to at least 31536000 seconds (1 year) for static resources. Use WP Fastest Cache or W3 Total Cache to implement proper browser caching rules.

Want to Analyze YOUR Website?

Get AI-powered performance insights with actionable fixes in 30 seconds

More WordPress Speed Tests

WordPress Performance Resources

Frequently Asked Questions

Keep Your Site Fast After Optimization

Once your site is optimized, maintain that speed. Use DeployHQ for zero-downtime, automated deployments—so performance fixes and updates go live safely every time, without breaking your site.

Explore DeployHQ →Trusted by engineering teams shipping high-performance sites