A ‘firecracker’ is a small explosive that makes a loud bang when set off. They are generally red in colour, with a short fuse at one end.
Aside from its appearance, there’s a double meaning to the nickname ‘firecracker’, as it reinforces the stereotype that gingers are highly strung and have short fuses themselves!
See also: ‘matchstick’