Plasmonics is a rapid growing field, which has enabled both exciting, new fundamental science and inventions of various quantum optoelectronic devices. An accurate and efficient method to calculate the optical response of metallic structures with feature size in the nanoscale plays an important role in plasmonics. Quantum hydrodynamic theory (QHT) provides an efficient description of the free-electron gas, where quantum effects of nonlocality and spill-out are taken into account. In this work, we introduce a general QHT that includes diffusion to account for the size-dependent broadening, which is a key problem in practical applications of surface plasmon. We will introduce a density-dependent diffusion coefficient to give very accurate linewidth. It is a self-consistent method, in which both the ground and excited states are solved by using the same energy functional, with the kinetic energy described by the Thomas-Fermi (TF) and von Weizsäcker (vW) formalisms. We numerically prove that the fraction of the vW should be around 0.4. In addition, our QHT method is stable by introduction of an electron density-dependent damping rate. For sodium nanosphere of various sizes, the plasmon energy and broadening by our QHT method are in excellent agreement with those by density functional theory and Kreibig formula. By applying our QHT method to sodium jellium nanorods of various sizes, we clearly show that our method enables a parameter-free simulation, i.e. without resorting to any empirical parameter such as size-dependent damping rate, diffusing coefficient and the fraction of the vW. It is found that there exists a perfect linear relation between the main longitudinal localized surface plasmon resonance wavelength and the aspect radio. The width decreases with increasing aspect ratio and height. The calculations show that our QHT method provides an explicit and unified way to account for size-dependent frequency shifts and broadening of arbitrarily shaped geometries. It is reliable and robust with great predicability, and hence provides a general and efficient platform to study plasmonics.