Why you should care
Avoid several packages in the same file because it requires Oracle to recompile every stored program that references the packages. As a result, multiple packages are referenced causing agility issues and possible bug entry.
Business Impacts
Adding several packages in the same file can be seen as efficient but is actually a costly endevour that can hamper the code’s agility.
CAST Recommendations
References
https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/packages.htm
How we detect
This code insights shows that several packages should be avoided in the same file.
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.