@SvenYarg's answer here and particularly his fuller one on the page linked to in the OP's question are a good analysis of when the active is to be preferred to the passive, and vice versa.
Just a couple of extra points. Firstly, Microsoft Word does not mark passive sentences as 'style errors'. Here is an extract from its advice:
For a livelier and more persuasive sentence, consider rewriting your
sentence using an active verb (the subject performs the action, as in
"The ball hit Catherine") rather than a passive verb (the subject
receives the action, as in "Catherine was hit by the ball").
I find the assumption that active sentences are per se "livelier and more persuasive" questionable to say the least. But the Word alert may be useful for writers who are not aware that they have written a passive construction and may indeed wish to consider if it could be improved by rewriting. Word does not, however, mark the passive as an 'error'. (It would be interesting to know exactly how Grammarly and Ginger formulate their response to passives.)
Secondly, for a much more detailed analysis of the passive and the clueless advice to avoid it, I suggest reading "Fear and Loathing of the English Passive" by Professor Pullum, co-author of the Cambridge Grammar of the English Language and Language Log contributor.
Here is a brief extract:
If using a passive construction is a hallmark of bad writing style, we
need to know what is supposed to be bad about it—what justifies the
allegation of stylistic badness. But in fact that condition is not met
either. The claims about the alleged faults of passive clauses are
never justified. Passives are variously alleged to be
- dull and static rather than lively and dynamic
- sneaky or evasive concerning agency or responsibility
- feeble and weak rather than bold and strong
- avoided by good writers
All the allegations are unsupported, and to some extent clearly false.
Pullum goes on to rebut each of these allegations.
My advice would be to avoid all generic advice about the passive (!) and decide construction by construction if the active or passive is the better choice. Even more useful would be to read several texts by the experts in your academic field and note how they construct their arguments and analyses. You could choose to construct your own texts to be stylistically similar.