Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.86ms] Passed 4 tests
Server-side resources used by Bootstrap Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.64 ▲2.95 |
Dashboard /wp-admin | 3.50 ▲0.16 | 45.68 ▼14.94 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.40 ▲1.81 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 92.90 ▼5.25 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.77 ▲5.52 |
Bootstrap Blocks /wp-admin/options-general.php?page=wp-bootstrap-blocks_settings | 3.39 | 33.35 |
Server storage [IO: ▲3.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
wp-bootstrap-blocks_version |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Bootstrap Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲74 | 14.37 ▲0.02 | 2.16 ▲0.41 | 44.13 ▲0.90 |
Dashboard /wp-admin | 2,196 ▲16 | 5.55 ▼0.04 | 84.81 ▼15.08 | 39.70 ▼5.52 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.07 ▲0.10 | 36.99 ▼1.77 | 33.78 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,660 | 18.88 ▼4.19 | 934.14 ▲330.26 | 70.70 ▲16.80 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.19 ▼0.00 | 100.95 ▼3.48 | 41.45 ▼5.43 |
Bootstrap Blocks /wp-admin/options-general.php?page=wp-bootstrap-blocks_settings | 829 | 2.00 | 26.06 | 27.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- wp-bootstrap-blocks_version
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 80× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-bootstrap-blocks/src/templates/column.php on line 61
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-bootstrap-blocks/src/templates/row.php on line 69
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-bootstrap-blocks/src/templates/row-css-grid.php on line 43
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/wp-bootstrap-blocks/src/templates/row-css-grid.php on line 45
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/wp-bootstrap-blocks/src/templates/row-css-grid.php on line 36
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/wp-bootstrap-blocks/src/templates/column.php on line 66
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/wp-bootstrap-blocks/src/templates/column.php on line 47
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/wp-bootstrap-blocks/src/templates/column-css-grid.php on line 58
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/wp-bootstrap-blocks/src/templates/row.php on line 44
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/wp-bootstrap-blocks/src/templates/row-css-grid.php on line 39
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Container block)
wp-bootstrap-blocks/wp-bootstrap-blocks.php Passed 13 tests
The primary PHP file in "Bootstrap Blocks" version 5.2.0 is used by WordPress to initiate all plugin functionality
41 characters long description:
Bootstrap Gutenberg Blocks for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,258 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 114 | 53 | 1,481 |
PHP | 17 | 216 | 808 | 953 |
PO File | 2 | 218 | 254 | 546 |
Sass | 6 | 32 | 20 | 208 |
JSON | 6 | 0 | 0 | 65 |
CSS | 3 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 7.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 15 | 37.50% |
▷ Public methods | 30 | 75.00% |
▷ Protected methods | 10 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 3.63MB with 2.64MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 926.45KB | 251.69KB | ▼ 72.83% |
screenshot-3.png | 915.01KB | 240.59KB | ▼ 73.71% |
screenshot-4.png | 939.52KB | 262.36KB | ▼ 72.08% |
screenshot-2.png | 934.57KB | 253.87KB | ▼ 72.84% |