Web application penetration tests are performed primarily to maintain secure software code development throughout its lifecycle.