Making the size of two fields in comment form the same programmatically
In the core comment form the 'author' element is an array of form elements:

  $form['author']['name']['#size'] = 30;
  $form['author']['mail']['#size'] = 30;