Title: Modules Insight
Author: Pedro Matias (FroPT)
Published: <strong>2025 年 4 月 14 日</strong>
Last modified: 2025 年 4 月 14 日

---

搜索插件

![](https://ps.w.org/modules-insight/assets/icon-256x256.png?rev=3272654)

# Modules Insight

 作者：[Pedro Matias (FroPT)](https://profiles.wordpress.org/fropt/)

[下载](https://downloads.wordpress.org/plugin/modules-insight.zip)

 * [详情](https://cn.wordpress.org/plugins/modules-insight/#description)
 * [评价](https://cn.wordpress.org/plugins/modules-insight/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/modules-insight/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/modules-insight/#developers)

 [支持](https://wordpress.org/support/plugin/modules-insight/)

## 描述

**Modules Insight** is a simple WordPress plugin that lists all installed plugins,
showing which are **active** and which are **inactive**. Ideal for developers and
site managers needing a quick status overview.

MI adds a widget to your **Dashboard** and provides a shortcode `[plugin_list]` 
for displaying the plugin status list. It also allows **Administrators** to download
the list as a `.json` report directly from the widget or shortcode output.

MI is completely read-only and does **not** make any changes to your site’s plugin
activation status.

### ✨ Key Features

 * 📋 Lists all installed plugins (active, inactive, network active)
 * ✅ Includes plugin name and version.
 * 📊 Displays a summary count of plugins
 * 📁 Allows **Administrators** to export plugin data as a `.json` report
 * 🖥 Adds a convenient Dashboard Widget
 * `[plugin_list]` Shortcode support for display anywhere
    - Upcoming: Plugin description on generated page
 * 🛡 100% read-only — safe for production use

### 💡 Use Cases

 * 🧾 Client reports on installed plugins
 * 🚧 Pre-deployment or pre-update plugin checks
 * 🔒 Identifying potentially unused plugins for cleanup
 * 👥 Sharing plugin status easily with your team or support

### Credits

Made with ❤️ by Pedro Matias for WordPress developers and admins.

## 屏幕截图

 * [[
 * The Modules Insight dashboard widget showing active/inactive plugins.
 * [[
 * The “Download List as JSON” button available to administrators and structure 
   of the exported JSON file.
 * [[
 * Example of a page generated using ths shorcode and the collapsed description 
   view using `<details>`.
 * [[
 * Example of “print” page using shortcode and automatic expanded description view
   using `<details>`.

## 安装

 1. Upload the `modules-insight` folder to the `/wp-content/plugins/` directory, or
    install the plugin through the WordPress plugin screen directly (Plugins > Add 
    New).
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Check your **Dashboard** for the “Modules Insight – Plugin List” widget.
 4. Alternatively, use the shortcode `[plugin_list]` on any page or post to display
    the list.
 5. Administrators will see a “Download List as JSON” button within the widget/shortcode
    output.

## 常见问题

### Does this plugin make any changes to my site?

No. MI is read-only. It does not activate, deactivate, install, or delete any plugins.

### Who can see the plugin list and download the JSON file?

By default, the list and download button are visible only to users with the `activate_plugins`
capability (typically Administrators). You can adjust capability checks in the code
if needed for other roles, but be mindful of security implications.

### What format is the export file?

The plugin exports data as a `.json` file, timestamped with the date of export (
according to your site’s timezone).

### Can I use this on a live/production site?

Yes! MI is completely safe to use on live sites as it performs no write operations.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Modules Insight」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pedro Matias (FroPT) ](https://profiles.wordpress.org/fropt/)
 *   [ Pedro Matias ](https://profiles.wordpress.org/pedro-matias/)

[帮助将「Modules Insight」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/modules-insight)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/modules-insight/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/modules-insight/)，或通过[RSS](https://plugins.trac.wordpress.org/log/modules-insight/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/modules-insight/)。

## 更新日志

#### 2.1.2

 * Fix: Use `current_time()` instead of `date()` for JSON filename timestamp to 
   respect WordPress timezone settings (Fixes PHPCS error).

#### 2.1.1

 * Feature: Wrap plugin descriptions in `<details>`/`<summary>` tags for a cleaner
   default view.
 * Fix: Add required `translators:` comments for internationalization functions 
   with placeholders (Fixes Plugin Check error).
 * Fix: Ensure `<details>` and `<summary>` tags are allowed in `wp_kses` for the
   dashboard widget.
 * Refine: Improve multisite plugin detection slightly.
 * Refine: Use case-insensitive sorting for plugin lists.

#### 2.1.0

 * Refactor: Introduce helper function `get_plugin_insight_data()` to centralize
   data retrieval.
 * Security: Regenerate plugin data on download instead of passing via POST.
 * Security: Add capability checks (`activate_plugins`) for viewing list and downloading
   JSON.
 * Security: Remove `nopriv` action hook for downloads.
 * Feature: Add more plugin details (version, description, author, URIs) to data
   structure.
 * Feature: Handle network-activated plugins on multisite installs.
 * Improvement: Use `wp_json_encode()` for standard JSON output.
 * Improvement: Use output buffering and proper escaping (`esc_*`, `wp_kses_post`)
   throughout HTML generation.
 * Improvement: Make widget title translatable.
 * Fix: Address various Plugin Check escaping errors.

#### 2.0.2

 * Initial version shared for review (contained shortcode, dashboard widget, basic
   JSON download via POST).

#### 1.0.0

 * (Internal/Previous Version) Initial concept release.

## 额外信息

 *  版本 **2.9.2**
 *  最后更新：**1 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/modules-insight/)
 * 标签
 * [Admin Tools](https://cn.wordpress.org/plugins/tags/admin-tools/)[developer-tools](https://cn.wordpress.org/plugins/tags/developer-tools/)
   [plugin management](https://cn.wordpress.org/plugins/tags/plugin-management/)
   [plugin status](https://cn.wordpress.org/plugins/tags/plugin-status/)
 *  [高级视图](https://cn.wordpress.org/plugins/modules-insight/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/modules-insight/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/modules-insight/reviews/)

## 贡献者

 *   [ Pedro Matias (FroPT) ](https://profiles.wordpress.org/fropt/)
 *   [ Pedro Matias ](https://profiles.wordpress.org/pedro-matias/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/modules-insight/)