improve update_plugins function

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