If statistics and some guidance (possibly averages?) are provided this could help communities and administrators to make informed decisions.
Here's a rough idea on how this might be provided. Feel free to add to/improve this task description but please keep true to the spirit of it: to inform, not to sanction.
- Create a loop with a list of all project (sub)domains e.g. "en.wikipedia.org", "es.wikipedia.org", "www.wikidata.org", etc
- Read MediaWiki:Gadgets-definition, for example https://commons.wikimedia.beta.wmflabs.org/wiki/MediaWiki:Gadgets-definition?action=raw
- Create two lists of gadget names: those that are default+not action specific+require no rights and a superset consisting of all gadget names.
- Make a request that loads all default gadgets, e.g. https://commons.wikimedia.beta.wmflabs.org/w/load.php?lang=en&modules=ext.gadget.betaCommons%2CUploadWizard%2CImageAnnotator%2CuploadWizardMobile%2CAnonLoader%2Cswitcher&skin=vector-2022
- Check length of response
- Check gzipped length of response
- Create a loop to load every gadget individually like this, check length+gzipped length
- Turn this information into two pie charts, one for all gadgets and one for the default gadgets, using HTML and possibly also a wikicode version (https://www.mediawiki.org/wiki/Extension:Cargo can create pie charts but doesn't seem to be installed on Wikimedia)
- Have a bot/script upload/post this on ToolForge or somewhere on-wiki.