ported poject into wp plugin