Preparation

  • Review Requirements: Deep dive into the project requirements or scope document to understand the website’s functionalities, Review project requirements, user stories, and acceptance criteria.
  • Define Testing Scope: Identify the areas you’ll be testing based on requirements (e.g., entire site, functionality, performance, security)
  • Tools and Resources: Gather necessary tools for testing, such as web browsers, developer tools, testing checklists
    • Chrome, Safari, Mozilla, Edge.
    • Developer tool, fak filler, postman
  • Set the latest version of the WordPress website or plugin to be tested along with the PHP version.

Remove any unwanted plugins, code, or other elements that are not required for testing purposes. Ensure that the test environment is clean and streamlined for efficient testing.

  • Prepare a list of which you are removing form the environment and kindly submit that to the client.

Test Environment Setup

  • Ensure the test environment mirrors the production environment as closely as possible.
    • After that kindly follow the checklist for “post staging”.
  • Install necessary plugins or themes required for testing.
    • Query Monitor, email log, email cop,
  • Check Site health status and make the necessary changes where required

Unit Testing

Check basic functionality

  • Test all core functionalities thoroughly, including forms, user registration, login, comments, search functionality, and shopping carts (if applicable).
  • Verify content editing functionalities like adding, editing, and deleting posts, pages, and media.

Functionality testing

  • Filter testing, Search, Loadmore, Console Errors, or any other fatal errors or warnings
  • Check the Scope Document and test all the functionality based on it.
  • Ensure proper integration and functionality of the chosen theme and plugins. Test all features offered by relevant plugins.

UI testing

  • Unit Testing all all unique pages
  • Verify the website’s responsiveness across different devices (desktop, tablet, mobile) and screen sizes
  • Animation in functionality.

Performance Testing (For new sites only)

  • Test website loading speed using tools like Google PageSpeed Insights or GTmetrix
  • Volume testing of a website with a certain amount of data.
  • Check for broken internal and external links that lead to error pages
  • Ensure images are optimized for web to improve loading speed. 

Security Testing (Basic Measures)

  • Plugin and Theme Updates: Confirm all plugins and themes are updated to the latest versions to address security vulnerabilities. Focus on security plugins you might be using.
  • Strong Passwords: Enforce strong passwords for all administrative accounts. You can implement this during the development process.

Security Review : Consider using a security plugin to scan for vulnerabilities and malware.

  • Change the prefix and check file permissions, also perform relevant hardenings

Version Control

  • Track Changes: Utilize a version control system (like Git) to track changes made to the website and revert to previous versions if necessary. This is crucial for developers to manage code versions.

Checklist

WordPress Unit Testing Action Items

  • Review project requirements, user stories, and acceptance criteria.
  • Define testing scope based on project requirements (functionality, performance, security).
  • Gather necessary testing tools: Chrome, Safari, Mozilla, Edge, developer tools, Faker, Postman.
  • Mirror the production environment for testing.
  • Install required testing plugins: Query Monitor, Email Log.
  • Check Site Health and resolve any flagged issues.
  • Test core functionalities: forms, user registration, login, comments, search.
  • Verify content editing: add, edit, and delete posts, pages, and media.
  • Check functionality: filters, search, load more features; review for console errors.
  • Test each feature outlined in the project scope.
  • Verify responsiveness on desktop, tablet, and mobile screens.
  • Test loading speed with tools like Google PageSpeed Insights or GTmetrix.
  • Check for broken internal and external links.
  • Confirm image optimization for faster load times.
  • Recheck the site after Updating all plugins and themes to the latest versions.
  • Track changes and manage code versions with a version control system like Git.