The code to generate the plugins index is part of calibre
https://github.com/kovidgoyal/calibr...gins_mirror.py
And yes it parses the plugin python file and yes there are various limitations if you try to generate metadata dynamically. Best to be as static as possible with plugin name, version, minim calibre requirement etc.