improve update_plugins function

4 jobs for master in 4 minutes and 29 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
passed #7264
run-mypy

00:00:37

passed #7265
run-pylint

00:03:33

passed #7263
run-test

00:00:09

 
  Build
passed #7266
run-build

00:00:09