Egypt and Tunisia went through a transitional phase since 2011 revolution, mainly derived by the same demands and causes, however resulted in different outcomes.
I have compared 143 countries with each other (see the attached publications). According to my results, Corruption Perception Index very much describes the quality of public governance. Tunis had 4.2 and Egypt 2.9 In 2007. Thus public governance in Tunis was much more ready to further advances than in Egypt.
Book Missing a Decent Living for Everyone: Success and Failure in...
Data Missing a Decent Living for Everyone: Background Tables for Appendix 1
I read some text where people argued that the main factor was that in Tunesia, actually there was an active civil society before the revolution - while the civil society in Egypt was heavily dependent on the state (just take the Egyptian Islam).
From a Southeast Asian perspective, the relatively smooth political transition occurred due to a civil society "infrastructure" that was in place before the uprisings. This was true of Philippines, Indonesia, Thailand, even Myanmar. In these countries, there was also a tradition of political contestation (usually through elections) and parliamentary democracy that was bequeathed by colonial powers (British in Malaysia and Myanmar, US in the Philippines). Of course these are not sufficient factors to explain the differences between Southeast Asian countries and Egypt/Tunisia, but they are significant contributors. Philipp Altmann is correct in his view that an active and relatively independent civil society in Tunisia may help explain, though partially, the difference in transition processes between Tunisia and Egypt.
There has actually been quite a lot written on this, from both scholarly and policy perspectives. In addition to the Wilson Center report mentioned above, the US Institute of Peace has also addressed the question: http://www.usip.org/publications/egypt-tunisia-s-opposite-paths-require-divergent-response-usip-s-taylor-says
Marc Lynch's book(s) also provide useful historical and comparative context leading up to the Arab Uprisings and explaining the aftermath across different countries: