How to measure the efficiency of a pipeline from gitlab-ci.yaml

We want to measure the efficiency of pipeline and check whether best practices are followed.
Any tools available?