Optimize Testimonial Avatar Images

How to optimize staging.deployhq.com

Ruby on Rails SiteScore: 72/100Analyzed February 2026

Optimize Testimonial Avatar Images

Medium Impact+8 points estimated

Why It Matters

Customer avatar images are loading at 400x400px but displaying at only 33x33px, wasting 60KB of bandwidth.

How to Fix

Use Rails Active Storage variants to serve appropriately sized images. Create responsive image variants: avatar.variant(resize_to_limit: [66, 66]) for 2x displays. Convert images to WebP format using the image_processing gem. Add explicit width and height attributes to prevent layout shift.

0Needs Improvement

What This Score Means

A score of 72 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

16.0s
Poor

Good: < 2.5s

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

INP

Interaction to Next Paint

132ms
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 Ruby on Rails site has poor performance with a score of 72/100, struggling significantly with page loading speed. The biggest problem is an extremely slow Largest Contentful Paint of 16 seconds, caused by multiple critical issues including page redirects that waste nearly 19 seconds, oversized images that could be reduced by 60KB, and 291KB of unused JavaScript from Google Analytics and Tag Manager. The site also suffers from unminified CSS and JavaScript files, poor caching strategies, and missing image dimensions that hurt layout stability. Fixing the redirect chain, optimizing images with proper sizing and modern formats, and removing unused JavaScript could dramatically improve the score by 30+ points and provide a much faster, more reliable user experience.

Other Optimization Recommendations

Fix Critical Redirect Performance Issue

High Impact+25 points estimated

Why It Matters:

Page redirects are adding nearly 19 seconds to load time, severely impacting LCP performance.

How to Fix:

Update your Rails routes.rb to serve content directly at the canonical URL without redirects. Check your web server configuration (nginx/Apache) to ensure proper routing. Update any internal links to point directly to the final destination URLs.

Add LCP Image Priority Hint

High Impact+15 points estimated

Why It Matters:

The hero background image is your LCP element but lacks priority optimization, delaying critical rendering.

How to Fix:

Add fetchpriority='high' attribute to the hero image element in your Rails view template. In your ERB file, update the img tag to: <%= image_tag 'hero-glow.jpg', fetchpriority: 'high', class: 'lp-hero__bg-img' %>. Consider preloading this critical image in the <head> section.

Want to Analyze YOUR Website?

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

More Ruby on Rails Speed Tests

Ruby on Rails 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