The success of complex networks at criticality