Considering the test requirements, I believe the best solution is to bring all the logic into the plugin, due to the functionalities it offers.
When this plugin is activated, it calls the Pokémon API and retrieves the first five Pokémon.
- Deliver the information in JSON format for the Pokémon created in WordPress.
- Provide the recent Pokédex number of the Pokémon.
- [ your-site.com ]/random
- Random Pokemon page.
- Pokemon API Rest.
- Auto create pokemon post type ( when plugin is activated ).
- Pokemon template.
Wordpress con el plugin instalado.