update plugin.cp_compare to v3.1

code-improvement