@xiota before you are continuing, please note that most of the what you are trying to do is already done in: https://github.com/geany/geany-plugins/pull/1201/files#diff-5c3fa597431eda03...
And the PR #1201 is only waiting for #1217 which will remove the problematic plugins.
Since both PRs already exist and are almost finished, I think you could stop working on this one.
I'll try to update #1217 soon so that it can be merged and then also #1201 and we are done.