A good idea would be to allow to filter non-installed macros in the same way as it's possible to filter out some categories right now, using rendering.transformation.macro.hiddenCategories. See also https://forum.xwiki.org/t/how-to-disable-installation-of-new-macros-from-wysiwyg/14544/6