> Extend Upload wordpress plugin resources analysis

Extend Upload wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Extend Upload
Version 0.0.4
Author Gustavo Bordoni
Rating 0
Last updated 2013-03-15 07:33:00
Downloads
992
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Extend Upload plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Extend Upload plugin added 1 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.

Extend Upload plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Extend Upload plugin ads no tables to your Wordpress blog database.

I had a problem that most of the time I had to upload a file, and I had to use a HTML upload, and that's kind of bad, so I created something to use the Thickbox and the WordPress Uploader.

To use you must enqueue in the page used both the style and the script of the plugin:

<?php
    wp_enqueue_script( 'extend-upload' );
    wp_enqueue_style( 'extend-upload' );

Then you can use the plugin by calling the jQuery Extends:

(function($) {
    $(document).ready(function () {
        $('.uc-call').callUpload();
    });
})(jQuery.noConflict());

And the HTML/PHP output should be something like that:

<?php
    $args = array( 
        'url' => admin_url( 'media-upload.php?post_id=0&button=' . rawurlencode('Use as Avatar') . '&TB_iframe=1&width=640&height=253' )
    );
?>
<p class='uc-container'>
    <label><?php echo _e( "Avatar:" ); ?></label><a target='_blank' class='uc-call' data='<?php echo json_encode( $args ); ?>'><small><?php _e( "Upload the Photo" ); ?></small></a>"; ?>
    <input class="uc-answer" type="text" value="<?php echo ( is_numeric( absint( $avatar ) ) ? absint( $avatar ) : esc_url($avatar) ); ?>" />
</p>

Having the uc-call for the link, uc-answer with the input field and uc-container for the box with both the link and the input field.

All the stuff is customizable by passing the variables in to the array $args, some stuff must be passed in the url, but later on I will add a easier way to do it.

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Kotenhanagara screenshot

Kotenhanagara

by: Takeaki Nagashima

7810
100%
No screenshot

Unknown Theme

by: @unknown

0
0%