Stars indicate a quality of the part. Each part can have up to 5 Stars. 

There are 5 tiers of Stars, depending on the material of the part: Wooden, Metal, Military, Golden and Carbon. Higher tier means higher quality. 

For example, a 1 Star Military part is better than a 5 stars Metal part.

The quality of the part is determined randomly, but the maximum possible result depends on the player's current Stage. You can check the the Championship Map to see the maximum number of Stars you can get in a given stage.
For example, if you are on Stage 15, you can obtain a golden part with only 1 Star, but at Stage 20 you can easily receive a golden part with 5 Stars.