Optimal Plug-in Estimators for Nonparametric Functional Estimation