Egypt isn't total shit. Nor is Jordan.
check againJordan is better than what you'd expect but still terrible, due to geography.
Unless you believe that the prosperity of Japan, South Korea, Taiwan, Singapore etc
Which are countries whose pasts can not be compared with the ones in Africa (!)
Japan - not colonised at all
Korea (interesting you don't bring up North Korea) - 1910-1949
Taiwan - 1895-1949
Singapore - one of the few cities in the British settlements that Brits poured a lot of money in and was already pretty rich through resource trading
Also, again, prosperity of a society is determined by the outliers of any group.