These directions will setup a a Behavior Driven Development (BDD) environment, for WordPress in the cloud using Codeception. It will setup a WordPress install in the cloud, pull down a plugin from Github, and setup an IDE as well as a test suite. You can use this dev cloud environment to engage outsourcers or remote teams.
Setup an Amazon Web Services (AWS) account. You will need a credit or debit card. If you sign up for ‘free tier’ this shouldn’t cost much or anything.
Login to Amazon AWS.
Go to the AWS EC2 Management Console.
Click Elastic IPs.
Click Allocate New Address.
Click Security Groups.
Click Create Security Group.
Fill in “Security group name” with “SG1”.
Open these ports with Custom TCP rules:
HTTP TCP 80
SSH TCP 22
HTTPS TCP 443
Click Key Pairs.
Click Create Key Pair.
Name it “KP1” and create.
Click Running Instances.
Click Launch Instance.
Select the 64bit “Ubuntu Server 16.04 LTS”.
Select T2 micro.
Click Configure Instance Details.
Click Next until you get to the “Configure Security Groups” page.
Select Select an existing security group.
Choose the SG1 group you just created.
Click Launch until you get to the “Select a key pair” screen.
Select key pair KP1 you just created.
Streamline WordPress’ user registration system to login users BEFORE they confirm their emails.
Try it, just enter your email into the Sign Up for My Newsletter
box on the right!
WordPress has a very clunky registration system. First the user gives their email, then the system emails them a code, then the user has to copy and paste the code to login. A simpler solution is to trust the user about their email on their first login, and then just log them in. This plugin creates a sidebar widget that asks for the user’s email. If they enter a new email, they immediately get logged in. If they enter an existing email, they are forwarded to the standard login page with their email already filled out. This plugin does away with “user names” and just uses email. It also changes the English label “Username” to “Email” in the login form. Finally, it automatically creates a “Nickname” when the user registers. It is an appended email, so “John@doe.com” would be given the automatic nickname “John”. This plugin should work on any site. Activate it and set the sidebar widget and you’re ready to go.