Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.36ms] Passed 4 tests
This is a short check of server-side resources used by Bootstrap Widget Styling
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.48 ▼3.78 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.49 ▼1.45 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.88 ▼1.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.41 ▼11.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.81 ▲4.28 |
Widget Styling /wp-admin/options-general.php?page=bws_options_page | 3.24 | 33.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bootstrap Widget Styling
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.31 ▼1.06 | 1.85 ▲0.18 | 41.09 ▼5.85 |
Dashboard /wp-admin | 2,213 ▲31 | 5.88 ▲0.04 | 101.10 ▲0.24 | 41.33 ▲0.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 36.45 ▼1.29 | 29.44 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.20 ▼0.04 | 690.90 ▼24.52 | 53.87 ▼4.85 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.17 ▼0.03 | 97.53 ▼5.41 | 43.61 ▲2.06 |
Widget Styling /wp-admin/options-general.php?page=bws_options_page | 806 | 2.06 | 22.86 | 40.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Meta' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-meta.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Recent_Posts' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-recent-posts.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Categories' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-categories.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Nav_Menu_Widget' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-nav-menu-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function BootstrapWidgetStyling\\add_action() in wp-content/plugins/bootstrap-widget-styling/php/class-setting.php:87
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Recent_Comments' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-recent-comments.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Pages' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-pages.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Archives' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-archives.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Search' not found in wp-content/plugins/bootstrap-widget-styling/php/widgets/class-bws-widget-search.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: mobile, default widgets, widgets, responsive, bootstrap
bootstrap-widget-styling/bootstrap-widget-styling.php 92% from 13 tests
"Bootstrap Widget Styling" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 202 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,778 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 1,389 |
PHP | 13 | 91 | 391 | 370 |
XML | 1 | 5 | 2 | 19 |
PHP code Passed 2 tests
An overview 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.15 |
Average class complexity | 3.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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