An offline alternative to lichess.org's online analysis engine Lichess.org has probably the best chess analysis interface. But, the problem it works only online.

Whereas, Stockfish the engine behind the analysis is downloadable, the interface is not.

I am looking for an analysis software (preferably open source and free) that uses traditional engines and can provide data such as number of blunders, mistakes, inaccuracies etc,. And, preferably with graphs and statistics like lichess.org.

The reason for open source is that so it can be compiled across several operating systems. And, most importantly, can be modified to suit individual needs.
I will strongly recommend SCID. Its open source and very feature rich.