As for the method of finding out what determines attack power there really isn't one in game other than trials but outside of the game the battle mechanics guide on gamefaqs explains it all. I can also tell you for sure Holy Sword goes by physical and weapon attack modifiers, and dragon's breath is based on magic attack power.