Follow for free plugins, new theme releases and theme news
Plugin Description
Image CDN is a bandwidth-saving WordPress plugin that delivers your images through Cloudflare’s global edge network. Unlike complex image optimization services, Image CDN focuses on one thing: making your existing WordPress images load faster worldwide while cutting bandwidth costs.
No transformations. No complexity. Just fast, affordable delivery.
How It Works
- WordPress generates images (as it normally does)
- Image CDN rewrites URLs to point to Cloudflare
- First request: Worker caches image in R2
- Future requests: Served directly from R2 (zero cost!)
Key Benefits
- Free Tier Compatible – Most sites pay $0/month
- One-Click Setup – Start with ImgPro Cloud instantly
- Works with WordPress – No fighting against WP image handling
- Works with ANY Plugin – Use your favorite optimization plugins
- Global Edge Delivery – Fast worldwide
- Zero Egress Fees – Cloudflare R2 advantage
What It Does
- Serves images through Cloudflare CDN
- Caches all WordPress image sizes
- Automatic responsive images (srcset)
- Smart fallback for cache misses
- Works with featured images, content images, galleries
What It Doesn’t Do
- Image transformations (use WordPress or plugins)
- Dynamic resizing (use WordPress image sizes)
- Quality optimization (use optimization plugins)
- Format conversion (use WebP plugins)
Why: WordPress already handles image optimization. Image CDN just makes delivery faster and cheaper.
Perfect For
- Blogs wanting faster image delivery
- Sites on slow hosting
- Global audiences
- Free tier Cloudflare users
- Developers who want simple solutions
Technical Details
Architecture
Two-Domain Setup:
* cdn.yourdomain.com → R2 Public Bucket (99% of traffic, zero worker cost)
* worker.yourdomain.com → Cloudflare Worker (1% of traffic, cache misses only)
Request Flow:
1. Browser requests image from CDN domain
2. If cached: Served directly from R2 (20-40ms)
3. If not cached: Fallback to worker domain
4. Worker fetches from WordPress, stores in R2, redirects to CDN
5. Future requests: Served from R2 (zero worker invocations)
Performance
- Cached requests: 20-40ms (R2 direct)
- Cache miss: 200-400ms (fetch + store + redirect)
- Cache hit rate: 99%+ after warmup
- Worker invocations: ~1% of total requests
Storage
Images are stored in R2 with path-based keys:
example.com/wp-content/uploads/2024/10/photo.jpg
example.com/wp-content/uploads/2024/10/photo-300x200.jpg
No hash generation, no transformation parameters – just simple caching.
Code Statistics
- Worker: 1 file, ~150 lines
- Plugin: 4 classes, ~1,900 lines
- Dependencies: Cloudflare R2 only
- Complexity: Very low
Open Source
- Full source code available
- Fork and modify as needed
- Deploy to your own Cloudflare account
- No vendor lock-in
- GPLv2 or later licensed
Documentation
- Plugin Repository: https://github.com/img-pro/bandwidth-saver
- Worker Repository: https://github.com/img-pro/bandwidth-saver-worker
Support
For support:
- WordPress.org Support Forum: https://wordpress.org/support/plugin/bandwidth-saver/
- Plugin Documentation: https://github.com/img-pro/bandwidth-saver
- Worker Documentation: https://github.com/img-pro/bandwidth-saver-worker
- Cloudflare Dashboard: Check worker metrics and logs
External Services
This plugin connects to Cloudflare’s infrastructure to deliver images globally:
Cloudflare R2 (Object Storage)
* Service: https://www.cloudflare.com/developer-platform/products/r2/
* Purpose: Stores cached images for global delivery
* Privacy Policy: https://www.cloudflare.com/privacypolicy/
* Terms of Service: https://www.cloudflare.com/terms/
* Required: You must create your own Cloudflare account and deploy the worker
* Data: Only publicly accessible images from your WordPress site are cached
Cloudflare Workers (Edge Compute)
* Service: https://www.cloudflare.com/developer-platform/products/workers/
* Purpose: Processes new images and cache misses
* You control: You deploy the worker code to your own Cloudflare account
* No data sharing: Images flow directly from your WordPress site to your Cloudflare account
Important: This plugin does not send any data to third parties. All images are cached in YOUR Cloudflare account under your control. The plugin author has no access to your images or data.
Privacy
This plugin:
* Does not collect any user data
* Does not use cookies
* Does not track anything
* Does not send data to plugin author or third parties
* Only caches publicly accessible images in your Cloudflare R2 bucket
* No analytics, no telemetry
Your images are stored in your own Cloudflare account. Review Cloudflare’s privacy policy for details on how they handle data.
Credits
Built for the WordPress community.
Powered by:
* Cloudflare R2 (object storage)
* Cloudflare Workers (edge compute)
* Cloudflare CDN (global delivery)
Screenshots
Welcome screen – Choose between ImgPro Cloud (one-click setup) or self-hosted Cloudflare
Active state – Plugin enabled with ImgPro Cloud, images delivered globally
Settings interface – Configure CDN domains, allowed domains, and excluded paths