twitter rss-feed into wordpress

I tried to put my twitter-rss-feed into my wordpress-blog, but with the code i got from the codex.wordpress.org doesn´t work very well.

After some research i put the following code together:

<?php require_once(ABSPATH . WPINC . ‚/rss-functions.php‘); ?>
<?php $rss = fetch_rss(‚ENTER_FEED_ADRESS‘);
$maxitems=5; // max. number of items to fetch
$counter=1;
?>
<ul>
<?php if (empty($rss->items)) echo „<li>No items</li>“;
else
foreach ( $rss->items as $item ) :
if ($counter>$maxitems) break;
else ?>
<li>
<?php echo $item[‚title‘]; ?> // i set no href-tag, because i think it´s useless
</li>
<?php
$counter++;
endforeach;
?>

If you get a „https://….“-feed-adress from twitter, change it to normal „http://….“.

I´m still watching the results, but one thing i saw already is that the function is very slow fetching new rss feeds .. .