Online quizzes are generally in the ballpark for me but like anything on the internet I take it with a grain of salt. If I really want to get an accurate assessment I ask a competent professional(which are stupidly hard to come by.

)
Most people have traits of personality disorders, a diagnosis is made (or rather, should be made) based on the consistency of said symptoms and how much they impact the individual's life across a variety of contexts. I have traits of antisocial, histrionic, and borderline personality disorders for example but I don't make the cut so to speak to diagnose me with any of those disorders.