A good start is to remove plugins from the repository which cause errors on install and plugins which contain deprecated coding. Or at least inform the developer and give him/she some time to fix it. But I understand this isn't possible with "nearly 50K publicly available plugins"..