+ optimize plugin interface.

Signed-off-by: Euhow <euhowzy@gmail.com>