As part of the pre-interview process, we would like you to create a simple
WordPress plugin so that we may assess your core competency with
WordPress functions and coding best practices, as well as basic PHP coding
and security standards. We expect this project to take about ~4-5 hours and
we hope that you can complete it in one day without too much trouble!
The Goal: We are building a simple CRM system for a client. The
system will collect customer data and build customer profiles
inside of the client’s WordPress Dashboard. They need to collect
data from potential customers via a simple lead gen form and
then have a list of customers that is easy to browse and keep
track of. They want to be able to place this form anywhere. To do
this, you will be creating a shortcode that generates a submission
form with applicable fields. This form, when submitted, will save
the submission as a private post as part of a custom post type
called “Customer.” These posts can then be viewed, managed,
tagged and categorized by the admin in the WordPress
Dashboard.
• Create a shortcode that generates a form with the following fields:
o Name
o Phone Number
o Email Address
o Desired Budget
o Message
• The shortcode should include attributes that allows the admin to:
o Override the labels/titles of the various fields, (e.g. ability to
override label: "Name: " to "Your Full Name")
o Set a max-length for any field.
o Set rows and cols attributes of the Message text area.
• Style the contact form in a way that is presentable and readable.
o Ensure that the form is optimized for mobile using responsive
styling if necessary.
• Use Ajax to handle form submission.
• Fetch current date and time using a 3rd party API, adding that date and
time to a hidden field in the form to be included in the post.
• Save the completed form submission to the database as a post in the
“Customer” custom post type.
• These posts should not be viewable by the public.