Sounds like it's either something to do with the electrics ....... poor coil or ignition earth to frame (make sure there's no paint under earth points) , intermittent shorting , or the plug has a cracked insulator (inside below the electrode) .
Or there's crap in the fuel system or a blocked breather causing intermittent fuel delivery ........ for instance , water in the float bowl can cause missing , crackling and popping ......
To check your plug it's best to remove a lead from one plug on a car , plug your bike plug in ....... and while grounding the plug body ...... watch what the spark is doing while the cars engine is running ..... try to wedge the plug somewhere or hold it with insulated pliers to avoid getting zapped ......
The spark should be a constant and steady pulse between the centre electrode and outside one ...... if the plug is faulty , it'll be jumping the gap sometimes .... then jumping to the thread part or jumping across down inside the guts of the plug ......
I had a box of new plugs ...... I'd put a new one in and the bike would start and run great ....... then it wouldn't start after being turned off ....... I'd put another new plug in and the same thing would happen ........ I found out what the problem was by checking the plugs as above ..... trying to do it on a bike is hopeless ........
You can use a power timing light with an inductive pickup clipped over your plug lead while the bike is running to check if the misfire is electrical or not .... you simply pull the trigger and watch the light to see if it's pulsing at a steady and constant rate ......... but it won't tell you what's going on at the electrode end of the plug .......
If the ignition and plug checks out OK ...... then it's time to go over the carb and fuel system . NEW bikes can most definitely have fine plastic particles from inside the tank floating around in the fuel line or float bowl causing weird intermittent misses , bogs etc .........
It's all trial by elimination ....... there's no magical single answer .........