94% htmlclass-browser

Code Review | HTML class for diferent browsers

WordPress plugin HTML class for diferent browsers scored 94% from 54 tests.

About plugin

  • Plugin page: htmlclass-browser
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 5.8.1
  • First release: Dec 26, 2014
  • Latest release: Dec 26, 2014
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: asalinero9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 663 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼152.86ms] Passed 4 tests

A check of server-side resources used by HTML class for diferent browsers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.56 ▲12.09
Dashboard /wp-admin3.06 ▲0.0143.08 ▼2.34
Posts /wp-admin/edit.php3.11 ▼0.0044.80 ▼43.47
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.54 ▼561.87
Media Library /wp-admin/upload.php3.00 ▲0.0032.28 ▼3.75

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for HTML class for diferent browsers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,838 ▲20116.18 ▲0.1213.36 ▲0.3947.87 ▲0.37
Dashboard /wp-admin2,972 ▲445.99 ▲0.02154.32 ▼31.59115.36 ▲8.83
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0064.61 ▼22.5885.01 ▼17.09
Add New Post /wp-admin/post-new.php1,617 ▼6621.42 ▲2.64282.47 ▼119.37100.92 ▼7.85
Media Library /wp-admin/upload.php1,812 ▲54.96 ▼0.07155.08 ▲2.90113.82 ▼8.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htmlclass-browser/htmlclass-browser.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: jquery, html, browser, js

htmlclass-browser/htmlclass-browser.php Passed 13 tests

The main PHP file in "HTML class for diferent browsers" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
This plugin adds a class with the name of the client browser.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin23 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11017
PHP1366

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin