=== Krupal Media Stats ===
Contributors: krupalpanchal
Tags: media, media library, stats, analytics, overview
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Shows a quick overview of your Media Library: the number of images, videos, audio and other files.

== Description ==

= Overview of your media =

Krupal Media Stats shows how many files your Media Library holds, grouped by type. The stats appear at the top of the Media Library screen, right below the "Add Media File" button, so you see them every time you manage your media.

The same stats are also added to Tools > Site Health > Info in a new "Krupal Media Stats" section. They are included when you use "Copy site info to clipboard", which makes them easy to share with your developer or support team.

The plugin has no settings. Activate it and the stats are ready.

= Features =

* Count of images, videos, audio files, and documents & other files.
* Total count of all files in the Media Library.
* Stats shown on the Media Library screen, in both list and grid view.
* New "Krupal Media Stats" section in Tools > Site Health > Info.
* Trashed files are not counted.
* Shown only to users who can upload files.
* Uses the WordPress admin look with built-in Dashicons. Its small stylesheet loads only on the Media Library screen.
* Lightweight: uses the WordPress core attachment count, with no custom database tables or options.

== Support ==

Krupal Media Stats is developed and supported by <a target="_blank" href="https://krupalpanchal.in/">Krupal Panchal</a>. If you find a bug or have a suggestion, feel free to get in touch.

== Installation ==

1. Upload `krupal-media-stats.zip` to the `/wp-content/plugins/` directory and extract it.
2. Activate the plugin through the `Plugins` menu in WordPress.
3. Go to `Media > Library` to see the stats.
4. Go to `Tools > Site Health > Info` and open the `Krupal Media Stats` section to see the same stats there.

== Frequently Asked Questions ==

= Where can I see the stats? =

On the `Media > Library` screen, below the "Add Media File" button, and in `Tools > Site Health > Info` under the `Krupal Media Stats` section.

= Which files count as "Documents & other files"? =

Any file that is not an image, video or audio file. For example PDF, Word, spreadsheet, text and ZIP files.

= Are trashed files counted? =

No. Only files that are not in the trash are counted.

= Does it count the resized copies of images? =

No. Each uploaded file counts once, as it appears in the Media Library. The thumbnails and other sizes WordPress makes from an image are not counted separately.

= Does it show the size of the media files? =

Not yet. File size stats are planned for a future version.

= Does it add any settings or database tables? =

No. The plugin has no settings and does not store anything in the database.

== Screenshots ==

1. Media Stats on the Media Library screen.
2. The Krupal Media Stats section in Tools > Site Health > Info.

== Changelog ==

= 1.0.1 =
*Release Date 24-10-2026*

* New - Added assets data(Banner and Icon) on Plugin page.

= 1.0.0 =
*Release Date 07-10-2026*

* New - Media file counts by type on the Media Library screen.
* New - "Krupal Media Stats" section in Tools > Site Health > Info.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
