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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.01ms] Passed 4 tests
Analyzing server-side resources used by Shortcodes Bootstrap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.34 ▼4.09 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.37 ▼3.19 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.66 ▼4.22 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.84 ▼0.53 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.65 ▲1.32 |
Shortcode Bootstrap options /wp-admin/options-general.php?page=shortcodes-bootstrap/ShortcodesBootstrap.php | 3.26 | 34.61 |
Server storage [IO: ▲0.41MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
dwsc_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Shortcodes Bootstrap: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 14.29 ▼0.08 | 7.62 ▲5.84 | 42.10 ▼2.58 |
Dashboard /wp-admin | 2,214 ▲26 | 5.88 ▼0.02 | 106.04 ▲4.94 | 41.11 ▲5.61 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▲0.05 | 42.02 ▲3.16 | 36.98 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▼5 | 18.05 ▼5.12 | 587.26 ▼20.40 | 51.07 ▼11.24 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.28 ▲0.12 | 94.82 ▼1.71 | 42.36 ▲0.24 |
Shortcode Bootstrap options /wp-admin/options-general.php?page=shortcodes-bootstrap/ShortcodesBootstrap.php | 829 | 2.31 | 27.53 | 28.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- dwsc_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_grid.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_grid.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_tabs.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_icons.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_alert.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_buttons.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcodes-bootstrap/inc/dws_collapse.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: shortcodes, responsive, bootstrap, buttons, shortcode...
shortcodes-bootstrap/ShortcodesBootstrap.php 92% from 13 tests
The main file in "Shortcodes Bootstrap" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shortcodes-bootstrap.php" instead of "ShortcodesBootstrap.php")
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 plugin6,171 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 212 | 55 | 5,053 |
HTML | 3 | 89 | 0 | 605 |
PHP | 7 | 46 | 79 | 266 |
JavaScript | 10 | 9 | 16 | 236 |
Markdown | 1 | 8 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/labels.png | 0.52KB | 0.37KB | ▼ 29.40% |
assets/images/icons.png | 0.57KB | 0.61KB | 0.00% |
assets/images/collapse.png | 0.44KB | 0.36KB | ▼ 18.89% |
assets/images/grid.png | 0.23KB | 0.20KB | ▼ 12.39% |
assets/img/facebook.png | 1.89KB | 1.10KB | ▼ 41.73% |