To begin, it is helpful for backpacking to choose "calorie dense" food.
For one thing, it provides the higher calories needed for being active and outdoors in the elements. It provides more strength and more staying power. It is helpful in cold weather. It also requires less space per useful calorie inside the backpack.
Individually, the items appear to be not particularly appetizing alone. However, the goal of having "calorie dense" food for backpacking isn't entirely unappetizing. Once you choose to "fortify" a recipe from the "calorie dense" list, you have seen how to do it.
Notice that candy and cookies didn't even make the list.
There goes another food myth.
I have added the almost "calorie dense" selections of cheese and of chocolate are at least more "calorie dense" than cakes, cookies, or candy because cheese or chocolate almost make the list and are an easy "add-on" if packaged in wax, or packaged well, or carried dry ground in a recipe. This is how these items may be packed with reasonable care inside the backpack.
Many backpackers will select sausage, cheese, crackers and chocolate. Nevertheless, you ought to have actual "calorie dense" food for longer treks or for extreme weather.
I suggest, begin by selecting "calorie dense" food items from the list for "add-ons" to be added to side dishes and entrees.
Here is a video demonstrating selections and packaging for 5,000 calories per day.