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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.31ms] Passed 4 tests
Server-side resources used by Bootstrap Swipe Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.44 ▲2.49 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.83 ▼1.39 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.42 ▼2.36 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.84 ▼15.99 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.12 ▲3.28 |
Swipe Gallery /wp-admin/options-general.php?page=bsg_plugin_options | 3.28 | 33.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Bootstrap Swipe Gallery: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.28 ▼1.47 | 1.76 ▲0.10 | 45.83 ▲5.33 |
Dashboard /wp-admin | 2,225 ▲22 | 5.77 ▼0.13 | 104.42 ▼2.37 | 38.92 ▼4.41 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.01 | 42.88 ▲0.82 | 35.30 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,561 ▲21 | 23.38 ▲5.22 | 643.31 ▼3.70 | 55.90 ▼0.42 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.00 | 113.61 ▲5.79 | 48.56 ▼1.57 |
Swipe Gallery /wp-admin/options-general.php?page=bsg_plugin_options | 808 | 2.02 | 27.70 | 30.33 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function BootstrapSwipeGallery\\esc_attr() in wp-content/plugins/bootstrap-swipe-gallery/php/templates/carousel.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function BootstrapSwipeGallery\\add_action() in wp-content/plugins/bootstrap-swipe-gallery/php/class-options.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function BootstrapSwipeGallery\\wp_kses_post() in wp-content/plugins/bootstrap-swipe-gallery/php/templates/controls.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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 require attention:
- Tested up to: Version format is invalid
bootstrap-swipe-gallery/bootstrap-swipe-gallery.php Passed 13 tests
The main file in "Bootstrap Swipe Gallery" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
Swipe through gallery images on touch devices. Image sizes adjust to screen size. Requires a theme with Bootstrap 3 or higher.
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
Good job! No executable or dangerous file extensions detected501 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 74 | 414 | 336 |
JavaScript | 2 | 19 | 23 | 82 |
CSS | 1 | 13 | 0 | 67 |
XML | 1 | 5 | 2 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
No PNG files were detected