Implementation function, code shared between pluginFileBaseName and pluginNameOfFilename.
Full path to a plugin file.
Whether we want the plugin name or the plugin file "basename".
The name of the plugin or its "basename", based on its filename and the getPluginName parameter.
Implementation function, code shared between pluginFileBaseName and pluginNameOfFilename.