Is your problem that WordPress is requesting FTP credentials whenever you attempt to install/update a plugin or theme? If not, please explain what you mean. If so, please read on.
The issue is that your webserver (Apache/nginx) has an old and outdated configuration. Please contact your hosting company and request that your webserver be updated to “FastCGI” so PHP runs as the filesystem owner. PHP should ideally be something called “PHP-FPM”. This will solve your current problem, and many others you have yet to encounter.
If your hosting company is unilling to make this change, or if you have unmanaged hosting and do not have the knowledge to make this change, then you must provide FTP credentials to WordPress every time you install or update a plugin/theme. Or better yet, find a new host that configures their webservers for use in 2019, not for use in 2009.