improve update_plugins function

Status Job ID Name Coverage
  Test
passed #7256
run-mypy

00:00:22

passed #7257
run-pylint

00:03:55

passed #7255
run-test

00:00:06

 
  Build
passed #7258
run-build

00:00:11