It would be better to use the PluginInfo.id and PluginInfo.version rather than re-parse the xml file for each of them.
Take a look at src/PluginInfo.js and src/cordova/plugin.js list().