Measuring solar panel voltage

But the question is, can I just plug the output of a smaller panel directly into an analog port on my Uno (assuming its peak voltage is under the 5V limit) and read the voltage through code?

You may want to put a resistor in serial. Otherwise, it is fine, assuming that you are powering your arduino separately.