When i publish a post it takes up to 40 seconds to published

Every time i publish a post it takes more than 40 seconds to become a live, meaning... it takes very long time processing the "Publish" of each post.

And even when i click the Infinite SEO under Settings it takes a long time to open this settings. If i want to change anything of the settings of this plugin it takes long time to process those changes.

Can any one help me with those 2 questions please.

Thanks