Bring a large pot of salted water to a boil. Cook the orzo according to package directions. Drain.
In the bowl of a food processor, combine the chickpeas, walnuts, breadcrumbs, egg, garlic, onion, Italian seasoning, smoked paprika, parmesan, and a big pinch of salt and pepper. Pulse until a coarse but cohesive dough forms. Rub your hands with olive oil and roll into "meatballs", oiling your hands every two or three balls. Hehe. You will get anywhere from 12-16 balls.
Heat 2 tablespoons olive oil in a large skillet over medium. Fry the meatballs 8-10 minutes, turning every minute or so until each side is crisped. Move the meatballs to a plate.
Drizzle another tablespoon of oil in the skillet. Saute the onion until soft, about 4-5 minutes. Stir in the garlic, pepper flakes, and tomato paste for another 1-2 minutes until fragrant. Pour in the crushed tomatoes and stir in the sugar. Cover and simmer gently for 20-30 minutes (or longer!) Watch the heat level to ensure none of the sauce burns to the bottom of the pan. Crush the tomatoes occasionally with a wooden spoon to smooth out the sauce, or use an immersion blender.
Toward the end of cooking time, stir in the pesto. Add the meatballs back to the pan and baste with the sauce for an additional 5 minutes.
Divide the orzo and meatballs among plates. Serve with lots of chopped basil, garlic bread, and extra parmesan, as desired.