Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲4.30MB] [CPU: ▼279.19ms] Passed 4 tests
This is a short check of server-side resources used by WS Bootstrap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.16 ▲4.64 | 71.89 ▲21.25 |
Dashboard /wp-admin | 8.17 ▲4.76 | 57.05 ▲23.93 |
Posts /wp-admin/edit.php | 8.18 ▲4.53 | 57.08 ▲20.78 |
Add New Post /wp-admin/post-new.php | 10.22 ▲3.25 | 118.93 ▼1,178.53 |
Media Library /wp-admin/upload.php | 8.17 ▲4.88 | 42.14 ▲19.74 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 8.17 | 41.64 |
Server storage [IO: ▲6.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 215 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_api_cache |
fs_gdpr |
fs_debug_mode |
fs_accounts |
fs_active_plugins |
Browser metrics Passed 4 tests
An overview of browser requirements for WS Bootstrap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,983 ▲229 | 16.52 ▲0.85 | 12.05 ▲6.31 | 3.34 ▲0.65 |
Dashboard /wp-admin | 2,969 ▲108 | 6.14 ▼0.16 | 120.58 ▼12.50 | 174.17 ▲9.09 |
Posts /wp-admin/edit.php | 2,768 ▲77 | 3.37 ▲0.13 | 65.64 ▲3.17 | 160.71 ▲15.33 |
Add New Post /wp-admin/post-new.php | 1,702 ▲41 | 16.09 ▼0.87 | 434.87 ▲22.04 | 153.99 ▼9.76 |
Media Library /wp-admin/upload.php | 1,779 ▲81 | 5.51 ▲0.04 | 152.11 ▲0.91 | 202.61 ▲9.42 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,488 | 2.49 | 55.33 | 129.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 5 options in the database
- fs_active_plugins
- fs_debug_mode
- fs_accounts
- fs_api_cache
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ws-bootstrap-vc/lib/vc/params/column_offset.php
- > /wp-content/plugins/ws-bootstrap-vc/freemius/templates/ajax-loader.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ws-bootstrap-vc/admin/pages/admin-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/ws-bootstrap-vc/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ws-bootstrap-vc/admin/pages/admin-subpage-vc.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ws-bootstrap-vc/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3 in ws-bootstrap-vc/assets to your readme.txt
ws-bootstrap-vc/ws-bootstrap-vc.php Passed 13 tests
The main PHP script in "WS Bootstrap" version 1.0.2 is automatically included on every request by WordPress
127 characters long description:
Add Bootstrap to your Wordpress, plugin add great shortcodes which you can use to create Jumbotron, Popover, Cards, Modals etc.
Code Analysis 97% from 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 detected61,490 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 6,705 | 15,316 | 28,279 |
CSS | 17 | 1,464 | 42 | 12,690 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
JavaScript | 10 | 2,037 | 1,766 | 7,963 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 76.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,097 | |
▷ Static methods | 175 | 15.95% |
▷ Public methods | 766 | 69.83% |
▷ Protected methods | 15 | 1.37% |
▷ Private methods | 316 | 28.81% |
Functions | 92 | |
▷ Named functions | 92 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 119 | |
▷ Global constants | 96 | 80.67% |
▷ Class constants | 23 | 19.33% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/ws-bootstrap-vc.png | 9.16KB | 5.26KB | ▼ 42.58% |