Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/browserstack/src/admin_bar.php+8
Undefined variable: browserstackSettings
Server metrics [RAM: ▼1.88MB] [CPU: ▼52.24ms] Passed 4 tests
Server-side resources used by BrowserStack for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.97 ▼36.73 |
Dashboard /wp-admin | 2.13 ▼1.18 | 8.38 ▼41.36 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 5.96 ▼41.63 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.03 ▼89.24 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.06 ▼27.17 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
draft_public_preview_field |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
preview_key_field |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for BrowserStack for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.23 ▼1.42 | 1.75 ▲0.11 | 42.48 ▼2.98 |
Dashboard /wp-admin | 2,250 ▲62 | 5.84 ▲0.97 | 103.13 ▼13.91 | 82.74 ▲37.01 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.00 ▼0.03 | 34.15 ▼0.04 | 31.53 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,744 ▲216 | 24.60 ▲1.30 | 656.82 ▼28.65 | 53.41 ▲4.77 |
Media Library /wp-admin/upload.php | 1,444 ▲53 | 4.19 ▼0.06 | 113.17 ▲14.30 | 44.17 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/browserstack/src/admin_bar.php+8
Undefined variable: browserstackSettings
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
browserstack/index.php 92% from 13 tests
"BrowserStack for WordPress" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("browserstack.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected402 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 66 | 41 | 295 |
CSS | 2 | 14 | 0 | 62 |
SVG | 2 | 0 | 0 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 6.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 2 | 28.57% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 5 | 16.13% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
There were not PNG files found in your plugin