Those things most certainly are factored into the equation.
The basics of the compensatory system
Again, all the material in this section is summarized from an OverTheCap article on the topic, or in some cases, from their original source.
1. To qualify for compensatory picks, you need to lose more (or better) free agents than you sign from other teams
There are some detailed exceptions to these rules, but they are not really important to this summary.
2. Each qualifying free agent must be assigned a value based on his contract, playing time and postseason honors, and that value corresponds to a round in the draft.
Start with the actual APY of the contract signed.
Subtract from the actual APY any money that the compensatory formula does not count. It has been determined that workout bonuses, incentives, and salary escalators are the most common money figures that the compensatory formula does not count.
Adjust the APY by applying a coefficient based upon the percentage of offensive or defensive snaps the player took in his first year under the contract.
Apply a positive coefficient to each UFA that obtained postseason honors
3. Once an adjusted APY has been determined, each UFA is given a value that either (i) assigns him as a CFA to a particular round ranging from the 3rd to the 7th, or (ii) does not qualify him as a CFA at all
The system for doing this is quite complex, but you don’t really have to understand it. OverTheCap publishes a cancellation chart on which they show their projected value for every free agent who changes teams in an off season. At any given point in the free agency period, you can click to this chart and see the status of any NFL team you are interested in.
4. Finally, once each team’s list of CFAs lost and gained are determined and valued, one-to-one cancellations are applied. Cancellations work as follows:
A CFA gained by a team cancels out the highest-valued available CFA lost that has the same round valuation of the CFA gained.
If there is no available CFA lost in the same round as the CFA gained, the CFA gained will instead cancel out the highest-available CFA lost with a lower round value.
A CFA gained will only cancel out a CFA lost with a higher draft order if there are no other CFAs lost available to cancel out.
Any team that has more CFAs lost than CFAs gained will then be eligible for compensatory picks for the CFAs lost that were not cancelled out by CFAs gained.