前言介紹
- 這款 WordPress 外掛「Site Stats Dashboard」是 2025-03-04 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-03-06,距離現在已有 58 天。
- 外掛最低要求 WordPress 5.2 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
szatek |
外掛標籤
posts | stats | visits | comments | dashboard |
內容簡介
總結:Site Stats Dashboard 是一個簡單的 WordPress 外掛,可以在管理面板中顯示您網站的統計數據,包括已發布的文章數量、已批准的評論數量和總訪問計數。
問題與回答:
1. Site Stats Dashboard 提供了哪些統計信息?
- 已發布的文章數量
- 已批准的評論數量
- 總訪問計數(每個前端頁面加載都被計算)
2. Site Stats Dashboard 使用哪些技術來提供統計數據並呈現管理儀表板?
- 使用 WordPress REST API 提供統計數據
- 使用 React 通過 wp.element package 渲染管理儀表板
3. 如何使用 Site Stats Dashboard 外掛?
- 在啟用後,點擊 WordPress 管理面板中的“Site Stats”菜單項目查看統計信息
4. Site Stats Dashboard 提供了哪個自定義的 REST API 端點?返回哪些統計信息?
- REST API 端點:http://your-site-url/wp-json/ssds/v1/stats
- 返回 JSON 響應,包含 post_count、comment_count 和 visit_count 關鍵字
5. 每次前端頁面加載時,Site Stats Dashboard 會做什麼?
- 跟蹤每次前端頁面加載以增加訪問計數,這意味著訪問計數在每次頁面加載時增加,而不僅僅是對唯一訪客。
6. Site Stats Dashboard 的授權是什麼?
- 本外掛授權為 GPLv2 或更新版本
7. 如何訪問 Site Stats Dashboard 的 REST API 端點?
- 需要擁有 manage_options 權限的使用者(通常為管理員)才可以訪問REST API端點
8. 使用 Site Stats Dashboard 的管理儀表板或 REST API 端點時,應該注意什麼?
- 確保您已登錄為管理員(或具有 manage_options 能力的用戶)
原文外掛簡介
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.
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Site Stats Dashboard」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Admin Menu Editor 》Admin Menu Editor 可讓您手動編輯儀表板菜單。您可以重新排序菜單,顯示/隱藏特定項目,修改權限等等。, 功能, , 更改菜單標題、URL、圖標、CSS 類等。, 通...。
White Label CMS 》White Label CMS 外掛針對開發者設計,提供客戶更具個性化且易於使用的內容管理系統。, 詳細瞭解 2.0 版本外掛變更,請參閱 Video User Manuals 網站。, 功能...。
Remove Dashboard Access 》, 僅限管理員、管理員和編輯、管理員和編輯和作者,或者按特定能力限制儀表板訪問權限。, 選擇自己的重定向 URL, 選擇性允許用戶訪問個人資料, 選擇性顯示登...。
Display PHP Version 》一個非常輕量且簡單的外掛,可以在「一覽」管理儀表板小工具中顯示目前安裝的 PHP 版本。, 在最新的版本中,你可以在懸停在 PHP 版本文字上時,查看當前的 My...。
Widget Disable 》這個簡單的外掛程式允許您在當前的 WordPress 網站中禁用任何側邊欄和儀表板小工具。它提供了一個簡單的用戶界面,可以提供給具有edit_theme_options權限(通...。
Hide Admin Bar from Non-Admins 》安裝、啟用,即可完成。, 本外掛可隱藏 WordPress 工具列(管理員列)對於沒有「管理者」角色的訪客及使用者。這是一個相當簡單的外掛,不需要進行設定。, , ...。
Erident Custom Login and Dashboard 》注意:Erident自訂登入與儀表板現已更名為Ultimate Dashboard。請安裝Ultimate Dashboard。, 如果您是Erident外掛的現有使用者,您可以透過WordPress管理儀表...。
Dashboard Notepad 》這個儀表板小工具提供了一個簡單的記事本。透過小工具設定,您可以選擇哪些角色可以編輯記事、哪些角色只能閱讀它們。版本 1.30 還新增了對自訂角色的支援,...。
Automattic For Agencies Client 》以下是本文章的摘要:, 新的 Automattic for Agencies 代理計劃整合了 Woo、WordPress.com、Jetpack 和 Pressable 等最佳功能,集合於一倇。學習更多關於 Auto...。
Custom Dashboard Widgets 》自訂儀表板小工具, 隱藏所有預設的儀表板小工具,並新增一個自訂的小工具,顯示常用儀表板連結和頁面,以完整管理您的網站和儀表板。, 功能, , 易於使用,外...。
Announce from the Dashboard 》這個外掛用於按照使用者角色顯示公告。, 如果想要更改外掛程式權限,請參考以下程式碼。, 例如,添加過濾器:, function afd_custom_change_capability( $cap...。
Advanced CSS Editor 》Advanced CSS Editor 是一個輕量級的外掛,它讓你可以在即時編輯器中為不同設備(桌面、平板、手機)撰寫不同的 CSS 代碼,並且可以即時查看結果。, 因此,只...。
Dashboard Widgets Suite 》插件名稱:Dashboard Widgets Suite(控制面板小工具套裝), , 該外掛提供 1 個插件與 9 個小工具,可簡化您的工作流程並提高工作效率。該套裝小工具包括以下...。
Customize Admin 》這個外掛讓你能夠自訂 WordPress 登入頁面和儀表板的外觀。你可以上傳自訂圖片作為登入畫面,並指定標誌所連結的網址。預設情況下,你會重定向到你網站的主頁...。
Admin Bar & Dashboard Access Control 》這是一個簡單的外掛,可根據用戶角色禁用管理工具列並防止訪問 WordPress 控制台。, 就是這麼簡單 😀, 你會喜歡的外掛:, , ProfilePress:一個簡單且功能強...。