-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Good First IssueIssue particularly suitable to be worked on by new contributorsIssue particularly suitable to be worked on by new contributors[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin onlyIssue relates to work in the Performance Lab Plugin only[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Milestone
Description
Currently, the Performance features screen makes individual plugin_information queries to the WordPress.org API, which is rather inefficient, especially the more plugins we have. We can enhance this by instead using a single request as follows:
https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[author]=wordpressdotorg&request[per_page]=100
While the WordPress.org Plugins API does not support passing multiple specific slugs (which would be ideal), this is a decent workaround: Since all our plugins use the wordpressdotorg author, we can safely assume our plugins are included in that list.
This will obviously return many other plugins too, but we'd be able to filter out just the plugins we care about. While this request returns too much data, it's still far more efficient than making all those individual requests.
swissspidy and mukeshpanchal27
Metadata
Metadata
Assignees
Labels
Good First IssueIssue particularly suitable to be worked on by new contributorsIssue particularly suitable to be worked on by new contributors[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin onlyIssue relates to work in the Performance Lab Plugin only[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Type
Projects
Status
Done 😃