Plugin update endpoint: fixing typos, and using better variable names