General development best practices for Adobe Commerce
This topic describes the baseline for a healthy Adobe Commerce development process. It describes fundamental processes, coding principles, and application design principles to guide developers.
Adobe Technical Architects use these best practices as a reference during engagements involving development.
These best practices have been developed based on years of experience developing and delivering Commerce projects. Adobe recommends that technical initiatives follow these best practices and that you improve existing processes and code to align with them.
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this topic are to be interpreted as described in RFC 2119.
A defined project methodology MUST be agreed upon before commencing the project activities. It MAY be Scrum, Waterfall, or any other methodology or combination of methodologies, as long it is defined.
Development SHOULD NOT start until a branching strategy for the version control system is available to the development team.
Development SHOULD NOT start until after sign-off on technical specifications, sign-off on user stories and use cases and, sign-off on test cases are available to the development team.
Development SHOULD NOT start until at least a development and QA environment are available.
Project-specific requirements that are mandatory for development to start MAY be documented in a Definition of Ready.
Sign-off SHOULD be done by a client representative that is authorized to sign off on project deliverables.
In Agile project methodologies, additional requirements MAY follow the sign-off. These requirements SHOULD be treated as new requirements and SHOULD be captured, architected, and planned accordingly.
All development MUST be functionally tested by the developer before submission.
All development SHOULD pass automated tests before it is submitted for code review. This MAY be configured as an automated process following pull request creation.
All development MUST pass manual code review by a Technical Architect or Lead Developer before it is submitted for quality assurance.
All development MUST pass quality assurance before delivery to the client.
Project-specific requirements that are mandatory for delivery MAY be documented in a “Definition of Done”.
All developers SHOULD use the same IDE. PhpStorm is the recommended IDE for Adobe Commerce development.
All developers SHOULD develop and test using the same technology stack as used on the (future) production servers. The versions of the software in this technology stack MUST match the major and minor version of the software installed on the production servers. See system requirements for details about the typical technology stack for Adobe Commerce.
The System Administrator or Technical Architect MAY provide the team with a centrally maintained local development environment to assure and promote equal and up-to-date local environments.
Developers and QA engineers MUST have access to the command line, the database, and the log files of the QA environment. This MAY require a VPN connection.
All code SHOULD follow conventions in architecture, methodology, and coding standards. Creativity is desired in function, not form.
All integrations with external systems SHOULD have integration tests that validate the business process.
All modules SHOULD have test coverage. What to test for exactly SHOULD be determined by the development team in collaboration with the Technical Architect or Lead Developer. This determination SHOULD be based on qualitative measures and not on quantitative measures; a high code coverage percentage is not an indicator of success, nor does it imply high code quality. Rather, determine the risk of not covering a portion of the code by assessing the probability and the severity of regressions in that part of the program.