In a small sauté pan over medium-low heat, warm 2 tsp. of the olive oil. Add the shallots and sauté until softened, about 4 minutes. Add the garlic and sauté until aromatic, about 30 seconds. Scrape the shallots and garlic into a blender or food processor. Add the remaining 1/4 cup (2 fl. oz./60 ml) olive oil, the zucchini, basil, almonds and lemon juice. Blend until mostly smooth, scraping down the sides of the blender and stirring as needed. Season to taste with salt and pepper. Bring a large pot of salted water to a boil. Add the gnocchi and cook according to the package instructions; drain and transfer to a serving bowl. Add the pesto and cheese to the gnocchi and stir gently to combine. Serve immediately.