
PSP Code Review Script
Entry criteria Check that the following are on hand:
- the requirements statement
- the program design
- the program source code
- the coding standards
- a copy of the Code Review Checklist
General - Use the Code Review Checklist.
- Follow the checklist instructions during the review.
- At review completion, fill in the To Date and
To Date % columns and the Totals row.
1 Review procedure - First produce the finished program source code.
- Before compiling or testing the program, print out a
source code listing.
- Next, do the code review.
- During the code review, carefully check every line of
source code to find and fix as many of the defects as
you can.
2 Fix the defects - Fix all defects found.
- Check the fixes to ensure they are correct.
- Record the defects in the Defect Recording Log.
3Review for
coverage - Verify that the program design fulfills all the functions
described in the requirements.
- Verify that the source code implements all the design.
4 Review the program
logic - Verify that the design logic is correct.
- Verify that the program correctly implements the design
logic.
5 Check names and
types - Verify that all names and types are correctly declared
and used.
- Check for proper declaration of integer, long integer,
and floating point data types.
6 Check all variables - Ensure that every variable is initializes.
- Check for overflow, underflow, or out-of-range
problems.
7 Check program
syntax - Verify that the source code properly follows the
language specifications.
8 Scan program Do an overall scan of the program to check for system
issues and unexpected problems.
Exit criteria At completion you must have:
- the completed and corrected source code
- completed Time Recording Log
- completed Defect Recording Log