How can I make this plugin work for a non multisite like

How can I make this plugin work for a non multisite like for example a p2 site or community site.