Instructions
Thank you for accepting the challenge. Please read carefully the statement and instructions below and if you have any questions, please contact us. Feel free to use a programming language and tools (libraries, frameworks, etc.) that make you feel more comfortable, so that we can see your best qualities.
This exercise is not particularly difficult and should not take more than 90 minutes to complete.
What we like to see:
Simplicity – Problems must be solved taking into account their requirements. Do not use unnecessary abstractions, patterns, and architectural features to solve the problem.
Self-explanatory code – The code must be written in a coherent way (syntax) and so that no comments are needed to explain its operation.
Tests – Use of unit tests using TDD and excellent coverage.
Things to consider in WordPress:
- Use hooks whenever possible;
- WordPress standards for PHP;
- Documentation;
- Programming using classes with namespaces.
Statement
Create a Favorites plugin for WordPress that does the following things:
- Allow to add a button in the content of each post so that it can be marked / removed as a favorite via hooks;
- A Widget to list favorites;
- A shortcode to list favorites;
- REST API field to manage bookmarks only for GET and UPDATE.
Delivery
Delivery should be done using a public GitHub repository, with code ready to be used as a dependency of Composer.
Good luck!