In this study, for the first time, the total refractive index changes (TRICs) and the total absorption coefficients (TACs) of the spherically confined two-electron parabolic quantum dot (TEPQD) embedded in the Debye and quantum plasmas generated by GaAs/GaAlAs heterostructure and modeled through the more general exponential cosine screened Coulomb (MGECSC) potential are analyzed by solving the corresponding wave equation using the tridiagonal matrix method. Two different types of MGECSC potential are used in the calculations. One of them is the most basic form of it obtained by adjusting the potential parameters for modeling the Debye plasma case, and other is the most common form of it in order to model the quantum plasma case. In addition to plasma environment is an important experimental argument in the synthesis and modification of quantum dots (QDs), the results of the screening effects on these and the fact that screening effect can be adjusted are the main motivation of considering the plasma environments in this study. In this context, the effects of external and structural parameters as well as plasma shielding parameters on TRICs and TACs of TEPQD are investigated in detail. The behavior of the external, structure and plasma shielding parameters on TEPQD's optical properties are compared and their alternativeness to each other are studied. The role of the Debye and quantum plasma environments on the behavior of external and structural parameters in consideration of the nonlinear optical properties is also researched. For the nonlinear optical properties of TEPQD, optimal ranges of all parameters, especially plasma shielding parameters, are determined. It is clear that these detailed determinations will also be very important in further theoretical investigations as well as the necessity for experimental applications.