problem by deleting new plugin installed inside the WordPress after any heroku app sleeping [closed]

You are using a version control/git based system, as a result you must add/remove plugins via git. You shouldn’t use the built in updaters or plugin/theme installers, especially since Dynos are not persistent

As an aside, if you want to test out things, you can just use a local development environment, such as VVV/MAMP/Local/etc