This is based on the KPluginLoader::pluginVersion method, which is already deprecated. By now most users use a versioned namespace or check if the plugin version matches exactly.
My suggestion would be to just deprecate these methods and remove the header altogether in KF6.