该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

BEA – Media Analytics

描述

If you want to see which media is used and where? This plugin is for you!

By installing this plugin you will index where your media are used, display further informations about how they are used and also warn you about deleting used ones.
Therefore, you will easily delete unused medias.

A table is created for indexing where media are used. This is done when saving contents but could also by activating the plugin or be forced with the wp-cli commands.

Features

For now the supported contents for indexation are post types by focusing on :

  • Post content ( gallery, image, links )
  • Post thumbnail
  • Advanced Custom Fields PRO‘s fields :
    • “content fields” :
      • File
      • Gallery
      • Image
      • Post object
      • Page link
      • Relationship
      • Textarea
      • Wysiwyg
    • “structuring fields” which can reuse the above “content fields”
    • ACF Options
  • Image Map Pro

Third party support

This plugin has third party support with following plugins :

  • Content Sync Fusion : the usage counter will now consider synced sites to reveal how many times a media has been used across all synchronized sites.

More features to come

As you can see, some issues are feature requests :
– More fields support (excerpt, post meta, etc)
– More type of support (widget, etc)
– More support (elementor, visual composer, polylang, -wpml-, etc)
– Media expiration
– Media replacement
– More file’s mime types

Next Roadmap

  • 39 : Improve display
  • 33 : Ensure a lot of file’s mime types support

Who ?

Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.

This plugin is only maintained, which means we do not guarantee some free support. Consider reporting an issue and be patient.

To facilitate the process of submitting an issue and quicker answer, we only use Github, so don’t use WP.Org support, it will not be considered.

屏幕截图

  • In the single edit view, a bloc has been added to display the number of usages, where and what type.
  • In the media library modal view, when a media is selected, a bloc has been added to display the number of usages.
  • On the media admin library view, an admin column has been added to display the number of usages.
  • On media delete, if it has usages (based on indexed contents), a warning will prompt to confirm the media deletion.

安装

At plugin activation, a single event will be added in order to index your contents. It generally takes 10-15 min to do so.

At plugin deactivation, all data stored by this plugin will be deleted to ensure not to weighing the DB and also for further safe reactivation.

Requirements

  • WordPress 4.6+
  • Tested up to 4.9.3.
  • PHP 5.6+

WordPress

  • Download and install using the built-in WordPress plugin installer.
  • Site activate in the “Plugins” area of the admin.
  • Nothing more, this plugin is ready to use !

常见问题

Can I use BEA – Media Analytics into a single site ?

Yes.

This plugin simply plug on the media’s admin area and index all the supported contents for further info display.

Can I use BEA – Media Analytics into a multisite ?

Yes.

For the indexation of all the supported contents, the blog id is used. So on the media’s admin area of each site, the data is not mixed between sites.

评价

2023 年 2 月 3 日
Just from the screenshots and description I would give 4 stars already! But sadly does not work in WP 6.1.1, plugin dies with a fatal PHP error. The plugin description page here on WP.org mentions explicitly: To facilitate the process of submitting an issue and quicker answer, we only use Github, so don’t use WP.Org support, it will not be considered. So if you too would like this plugin to get WP 6.x support, go over to their Github project page, specifically the issue #88 entitled “WP 6.0” and express your interest there (comment, upvote). If enough interest is shown they possibly consider updating it. There are also some advanced features in the issue queue, e.g. show specifically which Gutenberg block type (video, image banner, etc) utilizes a media object. Sounds promising. Have a look!
2018 年 3 月 15 日 1 回复
Cette extension est réellement très simple d’utilisation et surtout, elle est très utile pour faire le ménage dans votre bibliothèque de médias, surtout si vous tenez un site collaboratif ou publiquement ouvert à soumission (annuaires, petites annonces, offres d’emploi …etc…). Bravo & merci
阅读所有2条评价

贡献者及开发者

“BEA – Media Analytics” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「BEA – Media Analytics」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“BEA – Media Analytics”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.1.1 – 05 Apr 2018

  • Fix admin notice display on plugin activation.

2.1.0 – 04 Apr 2018

  • Handle Group, Clone and Repeater ACF fields.
  • Add ACF’s Textarea and Wysiwyg support.
  • Add WP CLI command to list and delete unused media.
  • Finally lower PHP requirements to 5.6.
  • Fix wp-cli command registering.
  • Improve speed of wp-cli.
  • Add wp-cli progress bar for indexation command.
  • Add Component Field support.
  • Add Image Map Pro support.
  • Add ACF Options support.
  • Add admin notices on plugin activation.
  • Add admin notices on plugin update.
  • Force reindexation with cron on plugin update.

2.0.2 – 04 Feb 2018

  • Go to WP.Org

2.0.3 – 02 Feb 2018

  • Rename plugin from “BEA – Find Media” into “BEA – Media Analytics”
  • Improve readme
  • English screenshots

1.0.1 – 12 Dec 2017

  • On activation, handle force indexation.
  • Update languages with CSF strings
  • Improve readme and add project templates.
  • Add Content Sync Fusion support.

1.0.0 – 7 Dec 2017

  • First version of the plugin.
  • Add screenshots.
  • Add usages to REST Api and WP Json.
  • Add wp-cli.
  • Add plugin’s .pot.
  • Add French translation (po/mo).
  • Add composer.json !
  • Display usages to media archive / single.
  • Prompt warnings for media delete.
  • Create plugin with table and indexation.
  • Init plugin.