Hardly surprising that stormtroopers rarely hit anything. They’re using the notoriously short-ranged Sterling SMGs with the butt folded (and no magazine).
Except for their section support weapon guys. They have infantry-pattern Lewis guns, again with no magazine (check out the scene where Luke and Ben arrive in Mos Eisley in Episode IV).