Scaling limits of random walks and their related parameters on critical random trees and graphs