There are many different Sudoku difficulty rating programs, which all rate puzzles in different ways. One of the more popular ones is
Sudoku Explainer. There is a section about half way through the Sudoku Explainer FAQ that lists the solving techniques it uses and how it rates puzzles, search for "How does the Sudoku Explainer rate the difficulty of a Sudoku?" on
this page.