-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow selecting individual themes or plugins to scan. #67
Comments
I was about to open the same ticket. Instead I'll bump this one back up! Certain plugins I know are OK to skip, not necessarily because they have no issues, but because I know that they will be too large to scan anyway, while taking plenty of time to get to the point of realizing that. Many of those plugins are ones that I would generally trust to remain compatible thanks to the large teams and regular updates they receive. A few examples on some sites that I've scanned that get skipped for being too large: Gravity Forms, iThemes Security Pro, Jetpack, SearchWP, The Events Calendar, Yoast SEO. These are all ones that I'd generally assume to be compatible before assuming that they'd be incompatible. If I could select some plugins to skip scanning, the scans would run faster and use fewer resources of the server to run. |
+1 for this feature also. I've found myself installing a plugin, not knowing whether or not it is compatible with a PHP version. It would be nice to scan just that one plugin on a staging site before installing. I don't need to scan the whole site since I've already done that. |
Main reason I'd like to do this is also to skip the ones that are too big, since I heard about that in the reviews... Shouldn't there be a check on size of the plugin before starting? Is the timeout a readable value? If so couldn't it estimate (size of plugin times pessimistic processing speed times timeout = success or failure estimate). Guess that's a different ticket, but I'm sure it also already exists somewhere. Also some kind of progress indicator would be nice, though I understand that 99% of progress indicators are lying and just exist to make people feel better... I'm not sure I'm suggesting that. It could be size of the plugin that's been checked vs total size of plugin - if that makes sense... I do understand that might further add to the overhead perhaps... could add a skip button for when it gets stuck? I guess many plugins and themes are already compatible now so the urgency of the plugin is somewhat less - but theoretically there could always be a PHP 9 at some point right, and a lot of links point at this plugin as the best tool for php compat testing. Edit: Went out for lunch, came back, still loading... Can't tell if it's actually making progress or stuck somehow. It's a large and popular plugin that I trust to be compatible... I'd like to skip it. I guess an option would be to just disable it temporarily. That's inconvenient but already possible - so I guess I shall just look for the conditional that checks for that and see if it's extendible somehow. |
Okay just tested disabling all except one at a time - and that did work... but I like having some plugins hanging around in disabled state (cause I don't actually use them most of the time, just want to be able to add and remove when I do need them briefly) - so with this solution I have to remember which ones were active before etc. to restore that state after everything was tested. Not great. I like what @Pross was suggesting for testing specific ones. I like @davidwolfpaw 's input for having a list of skippable plugins... user editable of course. I'll play with the code a little and see if it's something I could help with. |
Using the normal bulk features in plugin screen would also be nice (i.e. select the ones you want and then check just those) |
In case I don't follow through and actually make a PR and someone else wants to: In the src folder the Could create a skip list (i.e. comma separated list [can commas be in plugin names? if so needs to be separated by something else) that gets turned into an array and similar to the lines above if the current plugin is in the list skip... That's where Of course, would need to add the option for storing the list somewhere on the plugin screen - same as where the is active only check gets added. |
Added a I'm not really sure how to go about implementing @Pross 's suggestion - but I have seen some plugins do that kind of thing before, adding options like that... though I'm not sure I've seen one plugin ad an option like that to all other plugins (only their own or post types)... This function here adds the link / scan call to action to the plugin:
It's called here: That means it seems that to add a link like suggested above we'd at least need to loop through all active plugins to add a filter like that... not sure if timing might be an issue with that - wouldn't want to overwrite any plugin actions which the other plugins had added to themselves... And that's only part of the problem - this is effectively just a link. Wonder if that's why it hadn't been implemented earlier, because some refactoring might be in order to do that properly... hm. On the other hand if we go through the loop and run a conditional to check each if it is the one with the name that matches the one we're looking for and only then checks it's effectively what we want - so just tagging on the functionality wouldn't be much of an issue probably. |
Idea from WordPress.org:
https://wordpress.org/support/topic/checking-a-single-plugintheme/
The text was updated successfully, but these errors were encountered: