Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/browser-body-classes-with-shortcodes/browser-body-classes-with-shortcodes.php+359
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.12MB] [CPU: ▼8.27ms] Passed 4 tests
A check of server-side resources used by Browser Body Classes with Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 28.16 ▼13.19 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.89 ▼3.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.32 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 80.44 ▼13.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.33 ▲5.56 |
Browser Body Classes Options /wp-admin/options-general.php?page=browser-body-classes-with-shortcodes/browser-body-classes-with-shortcodes.php | 3.21 | 31.68 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
ss_browser_body_classes_options |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Browser Body Classes with Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.24 ▼0.11 | 1.67 ▲0.10 | 41.73 ▲1.59 |
Dashboard /wp-admin | 2,198 ▲17 | 5.53 ▼0.16 | 85.98 ▼17.36 | 40.68 ▼4.74 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.03 ▲0.06 | 40.83 ▲1.38 | 37.36 ▼3.95 |
Add New Post /wp-admin/post-new.php | 6,515 ▲4,989 | 21.37 ▼1.72 | 889.92 ▲195.56 | 81.22 ▲19.43 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▼0.05 | 104.15 ▲1.54 | 46.05 ▲0.02 |
Browser Body Classes Options /wp-admin/options-general.php?page=browser-body-classes-with-shortcodes/browser-body-classes-with-shortcodes.php | 1,349 | 1.99 | 25.94 | 51.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-body-classes-with-shortcodes/includes/ssbbc-shortcode-generator.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/browser-body-classes-with-shortcodes/browser-body-classes-with-shortcodes.php:46
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/browser-body-classes-with-shortcodes/browser-body-classes-with-shortcodes.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (49 tag instead of maximum 10)
browser-body-classes-with-shortcodes/browser-body-classes-with-shortcodes.php Passed 13 tests
The primary PHP file in "Browser Body Classes with Shortcodes" version 1.6 is used by WordPress to initiate all plugin functionality
113 characters long description:
Adds browser-specific body classes and shortcodes to show or hide content to/from specified browsers and devices.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected846 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 6 | 31 | 486 |
CSS | 1 | 0 | 0 | 227 |
JavaScript | 2 | 5 | 5 | 133 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.95 |
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 | 22 | |
▷ Named functions | 22 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tmcebbc.png | 4.00KB | 0.82KB | ▼ 79.49% |
images/other_plugins.png | 5.47KB | 1.69KB | ▼ 69.16% |
images/eyesonly_banner.png | 23.84KB | 8.46KB | ▼ 64.53% |
images/bbc_banner.png | 22.41KB | 8.03KB | ▼ 64.17% |