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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.56 ▲12.09 |
Dashboard /wp-admin | 3.06 ▲0.01 | 43.08 ▼2.34 |
Posts /wp-admin/edit.php | 3.11 ▼0.00 | 44.80 ▼43.47 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 85.54 ▼561.87 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲201 | 16.18 ▲0.12 | 13.36 ▲0.39 | 47.87 ▲0.37 |
Dashboard /wp-admin | 2,972 ▲44 | 5.99 ▲0.02 | 154.32 ▼31.59 | 115.36 ▲8.83 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 64.61 ▼22.58 | 85.01 ▼17.09 |
Add New Post /wp-admin/post-new.php | 1,617 ▼66 | 21.42 ▲2.64 | 282.47 ▼119.37 | 100.92 ▼7.85 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 4.96 ▼0.07 | 155.08 ▲2.90 | 113.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 1 | 0 | 17 |
PHP | 1 | 3 | 6 | 6 |
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 code | 0.00 |
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 | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin