10% browser-compatibility

Code Review | Browser compatibility

WordPress plugin Browser compatibility scored10%from 54 tests.

About plugin

  • Plugin page: browser-compatibi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Mar 13, 2018
  • Number of updates: 18
  • Update frequency: every 91.1 days
  • Top authors: torashid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,016 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.76 ▼36.16
Dashboard /wp-admin2.07 ▼1.246.72 ▼48.84
Posts /wp-admin/edit.php2.07 ▼1.295.91 ▼47.08
Add New Post /wp-admin/post-new.php2.07 ▼3.826.25 ▼99.68
Media Library /wp-admin/upload.php2.07 ▼1.166.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15314.78 ▲0.203.91 ▲2.2142.43 ▼1.00
Dashboard /wp-admin2,201 ▲245.63 ▼0.0393.60 ▲2.0341.74 ▼4.31
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0239.55 ▲2.6736.12 ▼5.21
Add New Post /wp-admin/post-new.php1,534 ▲323.35 ▼0.05674.41 ▲68.5460.33 ▲14.71
Media Library /wp-admin/upload.php1,409 ▲154.20 ▼0.0495.87 ▼17.3340.25 ▼6.78
Browser compatibility /wp-admin/browser_compatiblity.php260.420.0914.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP14043463
JavaScript24211109
CSS18126

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 code0.51
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
media/SatVal.png10.10KB9.57KB▼ 5.25%
media/close.png4.95KB1.56KB▼ 68.51%