We can see from issues like https://github.com/xpbrew/cordova-sqlite-storage/issues/856 that extremely weird behavior can happen when projects become outdated.
I think there should be a CLI command that cleans up the project workarea: purge out old plugins and platforms and ensure that all configuration is properly migrated.