add clean-SPcontendatbase to remove orphane objet site and feature
add-cmlet to help Administrator to clean missing objet or missing feature into content database some after test-spcontentdabase
Tom Kupka commented
YES! This would be super helpful after upgrading from 2010 > 2013 > 2016 we have hundreds of references to old .wsp solution files that we didn't carry forward after the upgrade.