Backfire when cold

Cold pops are usually lean, but could be TOO rich and unburned gas in the headers. Could be contaminated or old gas, and rarely plugs unless they get wet. I've never traced it to timing.
Worst case is probably a sticking exhaust valve.When an engine misfires, that A/F charge moves down the pipe but it's ready to burn. So if/when it sees a different ignition source, it catches fire and pops. You can feel/hear it in the tailpipe .
If it pops up near the header flange, then the header is probably sucking fresh air, tighten the screws and see what happens. In this case, as the engine warms up the popping changes to ticking
^^^^THIS^^^^
Afterfires are frequently caused by a valve hanging up when the engine is cold. As the engine warms up and guide clearance opens up, it goes away. In the aviation industry this is known as "morning sickness" and usually (eventually) ends up with a valve kissing the piston top.