Cheap sparkplugs are not necessarily going to cause your vehicle to fail the
smog inspection. Cheap sparkplugs may wear out sooner then factory recommend
brands of spark plugs (usually Bosch and AC Delco), but new sparkplugs
regardless of how much they cost, if they were designed for your specify car
and approved for sale in California by the California Air Resources Board
they should not cause any problem with the smog check.
Now you mention "the sparkplug rises". Does it physically move? If so the
sparkplug is defective / broken, and needs to be replaced. It will
definitely cause a smog check failure; visually and possibly due to increase
emissions (HC & CO).