Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.40MB] [CPU: ▼303.72ms] Passed 4 tests
A check of server-side resources used by Bootstrap Shortcodes for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.38 | 57.43 ▲7.16 |
Dashboard /wp-admin | 3.92 ▲0.51 | 38.02 ▼0.12 |
Posts /wp-admin/edit.php | 4.11 ▲0.47 | 40.41 ▲1.76 |
Add New Post /wp-admin/post-new.php | 7.20 ▲0.23 | 99.72 ▼1,214.82 |
Media Library /wp-admin/upload.php | 3.80 ▲0.50 | 26.20 ▼1.71 |
Server storage [IO: ▲0.82MB] [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: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bootstrap Shortcodes for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 13,958 ▲10,205 | 16.65 ▲0.83 | 7.17 ▲1.05 | 2.19 ▼0.64 |
Dashboard /wp-admin | 13,087 ▲10,233 | 7.07 ▲0.92 | 158.05 ▲15.14 | 159.60 ▼20.45 |
Posts /wp-admin/edit.php | 12,886 ▲10,192 | 3.86 ▲0.62 | 84.53 ▲21.00 | 142.59 ▼4.82 |
Add New Post /wp-admin/post-new.php | 7,912 ▲6,251 | 16.90 ▼0.18 | 421.45 ▼23.62 | 160.80 ▲3.58 |
Media Library /wp-admin/upload.php | 11,892 ▲10,191 | 6.28 ▲0.80 | 153.58 ▲12.57 | 190.74 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/bootstrap-3-shortcodes/includes/bootstrap-shortcodes-help.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bootstrap-3-shortcodes/includes/defaults.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bootstrap-3-shortcodes/includes/actions-filters.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bootstrap-3-shortcodes/includes/defaults.php:8
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: bootstrap, grid, responsive, shortcodes, shortcode
bootstrap-3-shortcodes/bootstrap-shortcodes.php 92% from 13 tests
This is the main PHP file of "Bootstrap Shortcodes for WordPress" version 3.3.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bootstrap-3-shortcodes.php" instead of "bootstrap-shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin18,609 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 19 | 36 | 12,292 |
HTML | 1 | 3 | 0 | 2,484 |
PHP | 5 | 472 | 583 | 1,528 |
JavaScript | 5 | 510 | 193 | 1,291 |
Markdown | 2 | 180 | 0 | 735 |
SVG | 2 | 0 | 0 | 241 |
JSON | 2 | 0 | 0 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 272.00 |
▷ Minimum class complexity | 272.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin