Move PMBlog's some function to Plugin.
costtime and updatecheck function.