We have recently started a deep dive into Performance of a long running site. This particular project has gone through various phases, developers, etc.
One thing we’ve noticed is a number of old plugin tables still present in the db.
My current thinking is that because composer remove
just deletes the plugin, we need to manually deactivate the plugins (this is typically where plugins cleanup, deleting options, meta, and custom tables) before deploy a release with composer changes.
Has anyone else come across this, how are you managing/automating this?