Issabella wrote:
I did a few more tests and I definitely find this filter very useful and effective.

Perhaps, but not with this photo... It sees a green color cast because the picture mostly contains green. So the correction removes some green and makes a purple footpath.
This is the danger of all-automatic correction (which, whatever the algorithm, more or less tries to make the average picture grey). It doesn't work on pictures that have a natural dominant color: forests, sea, sunsets... and indoors, the color of the walls... I've ruined gorgeous sunsets because my camera was set to auto white-balance... When you want to nitpick, very few pictures are truly grey on average, you have to find a part of the image that should be grey (pro photographers put a
grey sheet in one of the pictures, but you can often find something that should be grey/white: paper, porcelain, shirt, clouds...) and use that to compute a correction for the whole picture. This is for instance how
that script works.