=== Noble Vitals ===
Contributors: sirpaulsplugins
Tags: core web vitals, lcp, image optimization, sitemap, performance, largest contentful paint, image sitemap
Requires at least: 5.5
Tested up to: 7.0
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight, high-performance WordPress plugin focused on optimizing LCP images and generating native image sitemaps.

== Description ==

Noble Vitals is a lightweight, performance-optimized plugin designed to improve your Core Web Vitals, specifically LCP (Largest Contentful Paint), and generate native image sitemaps.

= ⚡ LCP Image Optimization =
Automatically optimizes your content images to improve LCP scores:
* Adds `fetchpriority="high"` to your LCP image(s)
* Sets `loading="eager"` for LCP images
* Keeps lazy loading for all other images (configurable)
* Uses WordPress's `wp_content_img_tag` filter for safe DOM manipulation
* Only runs on singular posts/pages and main query

= 🗺️ Native Image Sitemap =
Generates an image sitemap using WordPress's built-in Sitemaps API:
* No custom XML generation - uses core WordPress functionality
* Includes featured images from your posts and pages
* Configurable which post types to include
* Adds proper Google image sitemap namespace
* Optimized database queries for maximum performance

== Installation ==

1. Upload the `noble-vitals` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to 'Noble Vitals WP' in your admin menu to configure settings.

== Frequently Asked Questions ==

= Does this plugin use regex to modify images? =
No! We use WordPress's native `wp_content_img_tag` filter introduced in WordPress 5.5, which is the safe and recommended way to modify content images.

= Can I optimize more than one image? =
Yes! You can configure how many images to optimize in the plugin settings.

= Is the image sitemap using WordPress's native API? =
Absolutely! We extend `WP_Sitemaps_Provider` and integrate directly with WordPress's built-in sitemap system.

== Screenshots ==

1. Plugin settings page
2. LCP optimization in action
3. Image sitemap preview

== Changelog ==

= 1.0.0 =
* Initial release
* LCP image optimization
* Native image sitemap generation

== Upgrade Notice ==

= 1.0.0 =
First release of Noble Vitals.
