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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.42ms] Passed 4 tests
A check of server-side resources used by Lewe Bootstrap Visuals
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.33 ▼0.65 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.26 ▼4.66 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.03 ▲11.20 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 80.87 ▼16.50 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.26 ▲0.14 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lewe Bootstrap Visuals
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲112 | 13.50 ▼0.88 | 8.48 ▲6.51 | 38.28 ▼6.11 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲1.02 | 101.13 ▼19.08 | 41.56 ▼4.12 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▲0.02 | 37.44 ▼2.75 | 34.25 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▲5.58 | 670.68 ▲22.59 | 58.11 ▼5.66 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.32 ▲0.14 | 97.94 ▼7.80 | 42.70 ▼1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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 everything seems fine, this is not 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 items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shortcode-bootstrap-visuals/shortcode-bootstrap-visuals.php
- > /wp-content/plugins/shortcode-bootstrap-visuals/trunk/shortcode-bootstrap-visuals.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcode-bootstrap-visuals/inc/shortcodes.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcode-bootstrap-visuals/trunk/inc/shortcodes.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
shortcode-bootstrap-visuals/shortcode-bootstrap-visuals.php Passed 13 tests
"Lewe Bootstrap Visuals" version 2.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
This plugin provides shortcodes for the most common Bootstrap 4 visual elements.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,415 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 123 | 799 | 710 |
CSS | 1 | 19 | 78 | 571 |
JavaScript | 2 | 20 | 101 | 134 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 105.00 |
▷ Minimum class complexity | 105.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 9.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 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
12 PNG files occupy 0.47MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-128x128.png | 17.23KB | 5.99KB | ▼ 65.23% |
images/icon-80x80.png | 10.90KB | 3.78KB | ▼ 65.28% |
images/icon-96x96.png | 12.98KB | 4.52KB | ▼ 65.20% |
trunk/images/icon-96x96.png | 12.98KB | 4.52KB | ▼ 65.20% |
trunk/assets/js/bsvbtn.png | 3.82KB | 1.19KB | ▼ 68.79% |