Make WordPress Core

Opened 9 years ago

Last modified 2 months ago

#30465 reopened feature request

Dashboard alert if a plugin was removed from WordPress plugins repo

Reported by: sergejmueller's profile sergej.mueller Owned by:
Milestone: 6.3 Priority: normal
Severity: normal Version:
Component: Security Keywords: dev-feedback needs-patch
Focuses: Cc:


If a plugin/theme has been removed for security reasons, WordPress users with an installed plugin must be informed. Ideally as dashboard notification (on update check?). Otherwise the user will never know that the plugin has a security leak.

Attachments (2)

30465.diff (3.5 KB) - added by valendesigns 8 years ago.
closed-plugin-message.png (79.7 KB) - added by joostdevalk 2 months ago.
Proposed plugin closed message for the plugins screen.

Download all attachments as: .zip

Change History (18)

#2 @helen
8 years ago

  • Version trunk deleted

#3 @valendesigns
8 years ago

The hardest part would be deciding on how to tell if the plugin was ever in the repository once it's been removed.

8 years ago

#4 @valendesigns
8 years ago

  • Keywords has-patch dev-feedback added

This patch requests data from the Plugins API about the active plugins and then save the ones that exist to the found array in the directory_plugins option. When a plugin is removed it will be added to the removed array, in directory_plugins option, so the nag can be displayed. However, it will only show when the plugin is active. Any feedback from the core devs would be much appreciated.


#5 follow-up: @dd32
8 years ago

Worth noting here, that we'd probably add a "removed for x" line to the plugins update-check API response here if we were to go ahead with this.

Realistically, plugins get disabled/removed for a variety of reasons, becoming unlisted in the plugin directory doesn't simply signify security issue / insecure.

#6 in reply to: ↑ 5 @azaozz
8 years ago

  • Milestone changed from Awaiting Review to Future Release

Replying to dd32:

Also that "removed for x reason" should be shown on the Plugins screen, similarly to "update available" notices. Then if it is a security reason, perhaps show on the Dashboard (index.php) and possibly send email to the admin.

Replying to valendesigns:

Looking at 30465.diff: most of this would be handled on the API side. We will only need to add some UI to display these notices. Also debug_backtrace() shouldn't be used in production (as the name suggests). It's very "heavy"/slow.

#7 @nacin
8 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

We need to get a lot better about how we handle plugin removals. Most of the time, it isn't for security. But users are still left in the cold simply because someone has decided to stop wanting to maintain it. I actually dislike this practice, and would rather see it be put into some kind of "abandoned and waiting to be adopted" mode. Perhaps preventing new downloads and notifying users, but not outright closing the page. Once you put it in the directory, you don't really have the option to make it seem like it never existed. Other app stores usually resolve this by allowing people to still access the app's page (and even install it on new devices) as long as you installed it via your account before it was removed.

When it is for security, well, we need to do better at this. But I'm not inclined to change anything in core without first establishing better .org procedures and policies. This is a much larger discussion and doesn't lend itself well to a bug report.

#8 @valendesigns
8 years ago

Well even if this patch is a wash and never makes it into the core, at the very least it's starting a conversation that needs to take place. The way we handle notifications for outdated plugins, or lack of notifications, needs to change. I agree there are many reasons for a plugin being removed and assuming that its a security reason is not the best approach, but there should be at minimum a set of returned messages for a handful of reasons explaining why the plugin no longer is in the directory i.e. security, user removed, abandoned, etc. that would go a long way to making the UX much better. As well, I would be more than happy to rewrite this patch to use the API and strip out all the extra code that tries to detect plugin removal if we could agree on how the future implementation should work.

@nacin How do we go about making changes to the procedures and policies that govern the Directory? Is this a good first step or do we need to discuss this somewhere else?

#9 @LindsayBSC
8 years ago

I came here to give a +1 on this as a feature. I know it was marked as "Won't Fix" but ran into a similar issue today on the IRC chat where someone had a plugin installed for 2 years and it was removed from the repo (we assumed because there was a security issue based on it's code) but they never knew it was removed. I understand people really should maintain their own code base HOWEVER since a system is in place for checking for updates from plugins installed from the repo, there could be a system that notifies the user that it no longer exists in the repo.

The way I see it, having a generic message that "this plugin is not longer hosted in the WordPress repo" is better than none. The idea of giving a reason why it was removed is nice, but not as necessary as a simple message.

Again, just giving a +1 to this even though it's mentioned as DNF

#10 @ocean90
8 years ago

#33350 was marked as a duplicate.

#11 @grapplerulrich
4 years ago

As the situation has changed over the last four years when @nacin closed this ticket as wontfix would it be a possibility to re-evaluate this?

Now when plugins get pulled from the repo there is reason. For example:

It would be good to inform users that their plugin is not going to updated and they should look for alternatives.

I would move this from the "Security" component to the "Plugins" component.

This ticket was mentioned in Slack in #core-committers by ocean90. View the logs.

3 years ago

#13 @SergeyBiryukov
2 years ago

#52960 was marked as a duplicate.

#14 @swissspidy
9 months ago

#56445 was marked as a duplicate.

#15 follow-up: @joostdevalk
2 months ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Reopening this ticket. I think WordPress as a system has a responsibility to tell users whether a plugin is maintained or not. If we know that a plugin has been closed, we should disclose that to the users of that plugin, so they can find an alternative. We've been doing this on for quite a while now, where we only show the reason after 60 days (see the code). I think it's time we give that feedback to users in the backend too, and try to reduce the number of sites which have unmaintained / zombie plugins running.

Proposed UI in attachment.

Last edited 2 months ago by SergeyBiryukov (previous) (diff)

2 months ago

Proposed plugin closed message for the plugins screen.

#16 in reply to: ↑ 15 @SergeyBiryukov
2 months ago

  • Keywords needs-patch added; has-patch removed
  • Milestone set to 6.3

Replying to joostdevalk:

If we know that a plugin has been closed, we should disclose that to the users of that plugin, so they can find an alternative. We've been doing this on for quite a while now, where we only show the reason after 60 days

Related tickets:

  • #meta2627 Closed plugins should still have a public page
  • #meta3356 Plugin Directory: Closed plugins should show WHY closed (with caveat)
  • #meta4694 Plugin Directory: More user-friendly language regarding plugin closures
  • #meta5298 Plugin Directory: Show reasons why closed for perma-closures
Note: See TracTickets for help on using tickets.