Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲1.45ms] Passed 4 tests
This is a short check of server-side resources used by WP Bootstrap Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 39.75 ▼2.90 |
Dashboard /wp-admin | 3.59 ▲0.29 | 51.73 ▲7.51 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 57.21 ▲9.61 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.54 ▼8.44 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 44.20 ▲10.47 |
Server storage [IO: ▲0.08MB] [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: 18 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
widget_wpbw-button |
widget_wpbw-navbar |
theysaidso_admin_options |
widget_wpbw-image |
widget_wpbw-panel |
db_upgraded |
widget_recent-comments |
widget_wpbw-embed |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
WP Bootstrap Widgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲316 | 15.02 ▲0.65 | 5.62 ▲3.87 | 37.33 ▼9.43 |
Dashboard /wp-admin | 2,347 ▲159 | 6.46 ▲0.55 | 134.13 ▲19.89 | 43.17 ▲0.34 |
Posts /wp-admin/edit.php | 2,250 ▲161 | 3.37 ▲1.39 | 51.86 ▲12.96 | 34.67 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,671 ▲137 | 22.26 ▼0.72 | 641.90 ▼34.33 | 37.12 ▼28.86 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.13 ▼0.09 | 81.32 ▼19.87 | 41.63 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_wpbw-alert
- widget_wpbw-button
- widget_recent-comments
- widget_wpbw-image
- widget_wpbw-well
- widget_wpbw-embed
- widget_theysaidso_widget
- widget_wpbw-navbar
- theysaidso_admin_options
- widget_wpbw-panel
- ...
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-bootstrap-widgets/wp-bootstrap-widgets.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-bootstrap-widgets/widgets/image.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-bootstrap-widgets/views/requirements-error.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-bootstrap-widgets/widgets/button.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-bootstrap-widgets/widgets/alert.php:8
- > PHP Warning
Use of undefined constant WBW_REQUIRED_PHP_VERSION - assumed 'WBW_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-bootstrap-widgets/views/requirements-error.php on line 6
- > PHP Warning
Use of undefined constant WBW_NAME - assumed 'WBW_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-bootstrap-widgets/views/requirements-error.php on line 2
- > PHP Warning
Use of undefined constant WBW_REQUIRED_WP_VERSION - assumed 'WBW_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-bootstrap-widgets/views/requirements-error.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-bootstrap-widgets/widgets/well.php:9
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/wp-bootstrap-widgets/include/navigation-bar-walker.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-bootstrap-widgets/widgets/embed.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
wp-bootstrap-widgets/wp-bootstrap-widgets.php Passed 13 tests
The primary PHP file in "WP Bootstrap Widgets" version 0.3.2 is used by WordPress to initiate all plugin functionality
41 characters long description:
Bootstrap Components as WordPress Widgets
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
Success! There were no dangerous files found in this plugin1,035 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 115 | 524 | 839 |
JavaScript | 3 | 76 | 38 | 183 |
CSS | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 70 | 98.59% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 5 | 50.00% |
▷ Class constants | 5 | 50.00% |
▷ Public constants | 5 | 100.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 files were detected