We have a large number of automation scripts with numerous function libraries and are looking to review all the code and rewrite it to be more efficient and have a better structure. Does anyone have any suggestions of a process to perform this analysis of the code. What should we be looking for and how do we ensure we analyse the code effectively. Any help would be appreciated.
Nested loops if any can be replaced with select conditions is possible.
Optimum usage of Variables/objects, their scope
Look for proper documentation methods.
Also maintain a list/desc on what each function does and its resuability.