Cook the pasta according to package instructions and rinse with cold water.
Wash the spinach or arugula thoroughly, spin dry, and cut into smaller pieces. Cut the tomatoes and slice the onion. Dice the avocado if using.
Place everything in a large bowl, season with salt and pepper.
In a separate bowl, mix together the olive oil, vinegar, finely chopped or pressed garlic, dried herbs or pesto, mustard, and honey.
Just before serving, pour the dressing over the salad and mix well. Garnish with freshly grated Parmesan cheese and fresh basil.