Optimal length depends both on the specific target audience and the film's primary distribution channel (website, social media or "closed, close viewing"). These three groups generally require very different video lengths. However, as a rule, for all groups the shorter the better - whilst the film should be (just) long enough to get the key point(s) across.
Andy explains the rationale for his recommendations in this article.
_________________________________________________