Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
Server metrics [RAM: ▼1.94MB] [CPU: ▼57.94ms] Passed 4 tests
An overview of server-side resources used by Browser compatibility
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.76 ▼36.16 |
Dashboard /wp-admin | 2.07 ▼1.24 | 6.72 ▼48.84 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 5.91 ▼47.08 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.25 ▼99.68 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.86 ▼30.81 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 22 new options
New WordPress options |
---|
bc_bg_colour |
bctext |
bc_d_mozilla |
bc_d_opera |
bc_d_safari |
widget_theysaidso_widget |
bc_d_ie6 |
bc_text_colour |
bc_d_ns |
bc_d_iphone |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Browser compatibility
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 14.78 ▲0.20 | 3.91 ▲2.21 | 42.43 ▼1.00 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▼0.03 | 93.60 ▲2.03 | 41.74 ▼4.31 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.02 | 39.55 ▲2.67 | 36.12 ▼5.21 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 23.35 ▼0.05 | 674.41 ▲68.54 | 60.33 ▲14.71 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.20 ▼0.04 | 95.87 ▼17.33 | 40.25 ▼6.78 |
Browser compatibility /wp-admin/browser_compatiblity.php | 26 | 0.42 | 0.09 | 14.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
- Zombie WordPress options were found after uninstall: 22 options
- bc_d_iphone
- bc_closebutton
- theysaidso_admin_options
- db_upgraded
- bc_d_mozilla
- resolution
- bc_bg_colour
- bc_d_ie6
- widget_theysaidso_widget
- bc_d_chrome
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/browser-compatibility/browser_compatiblity.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/browser_compatiblity.php
- > Network (severe)
wp-admin/browser_compatiblity.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: compatible theme, browser
browser-compatibility/browser_compatiblity.php 85% from 13 tests
The principal PHP file in "Browser compatibility" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("browser-compatibility.php" instead of "browser_compatiblity.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected598 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 43 | 463 |
JavaScript | 2 | 42 | 11 | 109 |
CSS | 1 | 8 | 1 | 26 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/SatVal.png | 10.10KB | 9.57KB | ▼ 5.25% |
media/close.png | 4.95KB | 1.56KB | ▼ 68.51% |