smart plugin code optimization