> PHP Browser Detection wordpress plugin resources analysis

PHP Browser Detection wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name PHP Browser Detection
Version 3.1.3
Author Mindshare Studios, Inc.
Rating 76
Last updated 2015-03-06 10:44:00
Downloads
27458
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
PHP Browser Detection 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%

PHP Browser Detection plugin added 1 bytes of resources to the Home page and 2 bytes of resources to the sample Post page.

PHP Browser Detection plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! PHP Browser Detection plugin ads no tables to your Wordpress blog database.

Version 3 adds support for is_tablet(), is_desktop(), and is_browser() as well as numerous bug fixes and code improvements. As of version 3.1.2 automatic updates of browscap.ini are disabeld until we can deal with memory usage issues.

PHP Browser Detection is a WordPress plugin used to detect a user's browser. It can be used to send conditional CSS files for Internet Explorer, display different content or custom messages anywhere on the page, or to swap out Flash for an image for iPhones.

Template Tags:

Test for specific browsers:

$version is optional. Include a major version number, a single integer - 3,4,5, etc... Or leave it empty to test for any version.

<?php if(is_firefox($version)) { /* your code here */ }; ?>
<?php if(is_safari($version)) { /* your code here */ }; ?>
<?php if(is_chrome($version)) { /* your code here */ }; ?>
<?php if(is_opera($version)) { /* your code here */ }; ?>
<?php if(is_ie($version)) { /* your code here */ }; ?>
<?php if(is_browser($name, $version)) { /* your code here */ }; ?>

Check for mobile, tablet, iPhone, iPad, iPod, etc...

<?php if(is_desktop()) { /* your code here */ }; ?>
<?php if(is_tablet()) { /* your code here */ }; ?>
<?php if(is_iphone($version)) { /* your code here */ }; ?>
<?php if(is_ipad($version)) { /* your code here */ }; ?>
<?php if(is_ipod($version)) { /* your code here */ }; ?>
<?php if(is_mobile()) { /* your code here */ }; ?>

Check for greater than / less than a specific version...

Less than or equal to Firefox 19:

<?php if(is_firefox() && get_browser_version() <= 19) { /* your code here */ }; ?>

Less than or equal to IE 10:

<?php if(is_ie() && get_browser_version() <= 10) { /* your code here */ }; ?>

Greater than or equal to Safari 4:

<?php if(is_safari() && get_browser_version() >= 4) { /* your code here */ }; ?>

these are just a few examples, but this syntax will work for any browser or version.

Check specific versions...

Is the browser IE6?

<?php if(is_ie(6)) { /* your code here */ }; ?>

Is the browser IE10?

<?php if(is_ie(10)) { /* your code here */ }; ?>

Or you can get all the info and do what you want with it:

Get just the name...

<?php $browser_name = get_browser_name(); ?>

Get the full version number - 3.2, 5.0, etc...

<?php $browser_version = get_browser_version(); ?>

Or get it all in array...

<?php $browser_info = php_browser_info(); ?>
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
GChrome screenshot

GChrome

by: genkisan

11546
0%
Zenzero screenshot

Zenzero

by: CrestaProject

5409
100%