A state-of-the-art analysis of the dwarf irregular galaxy NGC 6822