Title: Site Stats Dashboard
Author: szatek
Published: <strong>5 ਮਾਰਚ 2025</strong>
Last modified: 6 ਮਾਰਚ 2025

---

ਪਲੱਗਇਨਾਂ ਖੋਜੋ

![](https://s.w.org/plugins/geopattern-icon/site-stats-dashboard.svg)

# Site Stats Dashboard

 [szatek](https://profiles.wordpress.org/szatek/) ਵੱਲੋਂ

[ਡਾਊਨਲੋਡ ਕਰੋ](https://downloads.wordpress.org/plugin/site-stats-dashboard.1.0.zip)

 * [ਵੇਰਵਾ](https://pan.wordpress.org/plugins/site-stats-dashboard/#description)
 * [ਸਮੀਖਿਆਵਾਂ](https://pan.wordpress.org/plugins/site-stats-dashboard/#reviews)
 *  [ਸਥਾਪਤੀਕਰਨ](https://pan.wordpress.org/plugins/site-stats-dashboard/#installation)
 * [ਵਿਕਾਸ](https://pan.wordpress.org/plugins/site-stats-dashboard/#developers)

 [ਸਹਿਯੋਗ](https://wordpress.org/support/plugin/site-stats-dashboard/)

## ਵੇਰਵਾ

Site Stats Dashboard is a simple WordPress plugin that displays your website’s statistics
in the admin panel. It shows:

 * The number of published posts.
 * The number of approved comments.
 * The total visit count (each front-end page load is counted).

The plugin uses the WordPress REST API to provide the statistics and renders the
admin dashboard using React via the `wp.element` package.

### Features

 * **Admin Dashboard:** A dedicated admin page accessible from the WordPress dashboard
   under the “Site Stats” menu.
 * **Live Statistics:** Displays post count, comment count, and visit count.
 * **REST API Integration:** Provides a custom REST API endpoint (`ssds/v1/stats`)
   that returns the site statistics.
 * **React-Based UI:** Uses React (via the built-in `wp.element` library) for the
   admin dashboard interface.
 * **Visit Tracking:** Tracks every front-end page load to increment the visit counter.

### Usage

 * **Admin Panel:** Once activated, click on the “Site Stats” menu item in the WordPress
   admin sidebar to see the statistics.
 * **REST API:**
    The plugin registers a REST API endpoint at: http://your-site-
   url/wp-json/ssds/v1/stats

This endpoint returns a JSON response with the keys `post_count`, `comment_count`,
and `visit_count`.

**Note:** Access to the REST API endpoint is restricted to users with the `manage_options`
capability (typically administrators).

 * **Visit Tracking:**
    Every time a front-end page is loaded (excluding admin pages
   and AJAX requests), the plugin increments the visit counter. This means the visit
   count increases on every page load, not only for unique visitors.

### License

This plugin is licensed under the [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html).

### Additional Notes

 * The admin dashboard interface is built using React without a build process (JSX
   is not used). If you later decide to use JSX or more advanced React features,
   you’ll need to integrate a build system (e.g., webpack with Babel).
 * Ensure you are logged in as an administrator (or a user with the `manage_options`
   capability) when accessing the plugin dashboard or the REST API endpoint.

## ਸਥਾਪਤੀਕਰਨ

 1. **Download and Upload:**
 2.  * Download the plugin files and unzip the archive.
     * Upload the entire `site-stats-dashboard` folder to the `/wp-content/plugins/`
       directory on your WordPress site.
 3. **Activate the Plugin:**
 4.  * Go to the **Plugins** page in your WordPress admin panel.
     * Find **Site Stats Dashboard** in the list and click **Activate**.
 5. **Access the Dashboard:**
 6.  * In the admin panel, navigate to **Site Stats** (located in the left-hand menu)
       to view the statistics dashboard.

## ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ

### Does the plugin track unique visitors?

No, the current implementation simply increments the counter on each page load. 
It does not differentiate between unique and repeat visitors.

### What statistics does the plugin display?

It displays:
 – The total number of published posts (only the default “post” post
type). – The total number of approved comments. – The total number of page visits(
incremented on every front-end load).

### Can I extend this plugin?

Yes, the plugin is designed as a starting point. You can modify or extend it to 
track additional statistics or refine the visit tracking logic (e.g., counting only
unique visitors).

## ਸਮੀਖਿਆਵਾਂ

There are no reviews for this plugin.

## ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ

“Site Stats Dashboard” is open source software. The following people have contributed
to this plugin.

ਯੋਗਦਾਨੀ

 *   [ szatek ](https://profiles.wordpress.org/szatek/)

[“Site Stats Dashboard” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।](https://translate.wordpress.org/projects/wp-plugins/site-stats-dashboard)

### ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?

[Browse the code](https://plugins.trac.wordpress.org/browser/site-stats-dashboard/),
check out the [SVN repository](https://plugins.svn.wordpress.org/site-stats-dashboard/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/site-stats-dashboard/)
by [RSS](https://plugins.trac.wordpress.org/log/site-stats-dashboard/?limit=100&mode=stop_on_copy&format=rss).

## ਤਬਦੀਲੀ-ਚਿੱਠਾ

### 1.0

 * Initial release:
 * Admin page to display site statistics.
 * REST API endpoint for fetching stats.
 * React-based admin interface.
 * Front-end visit tracking.

## ਮੈਟਾ

 *  Version **1.0**
 *  Last updated **1 ਸਾਲ ਪਹਿਲਾਂ**
 *  Active installations **10 ਤੋਂ ਘੱਟ**
 *  WordPress version ** 5.2 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Tested up to **6.7.5**
 *  PHP version ** 7.2 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/site-stats-dashboard/)
 * Tags
 * [comments](https://pan.wordpress.org/plugins/tags/comments/)[dashboard](https://pan.wordpress.org/plugins/tags/dashboard/)
   [posts](https://pan.wordpress.org/plugins/tags/posts/)[stats](https://pan.wordpress.org/plugins/tags/stats/)
   [visits](https://pan.wordpress.org/plugins/tags/visits/)
 *  [Advanced View](https://pan.wordpress.org/plugins/site-stats-dashboard/advanced/)

## ਦਰਜਾਬੰਦੀ

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/site-stats-dashboard/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/site-stats-dashboard/reviews/)

## ਯੋਗਦਾਨੀ

 *   [ szatek ](https://profiles.wordpress.org/szatek/)

## ਸਹਿਯੋਗ

ਕੁਝ ਕਹਿਣਾ ਹੈ? ਮਦਦ ਚਾਹੀਦੀ ਹੈ?

 [ਸਹਿਯੋਗ ਫੋਰਮ ਦੇਖੋ](https://wordpress.org/support/plugin/site-stats-dashboard/)