Porous NiTi shape memory alloys (SMA) have been developed into important biomedical and damping materials. However, the effect of pore on the martensitic microstructure evolution, functional properties, and plastic deformation has not been fully clear yet. In this work, to reveal the functional properties including superelasticity (SE), elastocaloric effect (eCE), one-way shape memory effect (OWSME), and stress-assisted two-way shape memory effect (SATWSME), as well as plastic deformation of porous NiTi SMAs, the polycrystalline SMA system is considered as a composite containing the grain-interior (GI) and grain-boundary (GB) phases, a thermo-mechanically coupled, grain-size-dependent and crystal-plasticity-based phase field model is proposed for the GI phase, and an elasto-viscoplastic constitutive model is established for the GB phase. The effects of porosity, pore diameter, pore aspect ratio, pore orientation, and pore distribution, as well as the interaction between pore and grain size, are comprehensively revealed and discussed. The simulations demonstrate that the pores cause a heterogeneous stress field, and the interaction among pores and that between pores and grain boundaries can enhance such heterogeneity, which can promote the initiation of martensitic transformation and reorientation. Moreover, the geometrical constraints caused by the pores can significantly affect the morphology and evolution of martensite microstructures. However, due to the diverse microstructure evolutions during SE, OWSME, and SATWSME, their interactions with the pores are quite different, resulting in various dependencies of each functional property and plastic deformation on the pore, and such dependencies are strongly influenced by porosity, pore diameter, pore aspect ratio, pore orientation, and pore distribution. The simulated results in this work are helpful to comprehensively and deeply understand the pore effect and its microscopic mechanism.