Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼142.67ms] Passed 4 tests
An overview of server-side resources used by Slider Bootstrap Carousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 37.80 ▲13.49 |
Dashboard /wp-admin | 3.22 ▲0.16 | 46.06 ▼6.55 |
Posts /wp-admin/edit.php | 3.33 ▲0.22 | 51.08 ▲2.61 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.15 | 104.34 ▼556.76 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 37.42 ▼9.97 |
Category /wp-admin/edit-tags.php?taxonomy=taxonomy_category&post_type=bootstrap_carousel | 3.16 | 38.35 |
All Carousels /wp-admin/edit.php?post_type=bootstrap_carousel | 3.20 | 38.93 |
Add New /wp-admin/post-new.php?post_type=bootstrap_carousel | 3.20 | 50.65 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Slider Bootstrap Carousel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,866 ▲270 | 16.43 ▲0.61 | 13.52 ▲3.62 | 56.94 ▲9.06 |
Dashboard /wp-admin | 3,010 ▲79 | 5.91 ▼0.08 | 147.67 ▼5.17 | 117.98 ▼6.34 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.70 ▲0.02 | 68.99 ▼3.03 | 93.50 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,727 ▲44 | 18.73 ▼0.10 | 369.81 ▼15.25 | 131.63 ▲7.02 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.04 ▲0.06 | 160.75 ▲3.07 | 117.21 ▼10.45 |
Category /wp-admin/edit-tags.php?taxonomy=taxonomy_category&post_type=bootstrap_carousel | 1,776 | 2.50 | 64.11 | 83.88 |
All Carousels /wp-admin/edit.php?post_type=bootstrap_carousel | 1,445 | 2.61 | 64.64 | 76.68 |
Add New /wp-admin/post-new.php?post_type=bootstrap_carousel | 2,698 | 4.79 | 127.83 | 106.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=bootstrap_carousel
- > Notice in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-meta-box.php+39
Undefined variable: imageValue
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=bootstrap_carousel
- > Notice in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-meta-box.php+52
Undefined variable: targetValue
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=bootstrap_carousel
- > Notice in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-meta-box.php+67
Undefined variable: sizeValue
SRP 50% 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
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bootstrap-carousel/includes/bcfw-taxonomy-category.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/slider-bootstrap-carousel/includes/lib/multi-post-thumbnails/multi-post-thumbnails.php:482
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-taxonomy-category.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-shortcode.php:126
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/slider-bootstrap-carousel/includes/lib/multi-post-thumbnails/multi-post-thumbnails.php:482
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-meta-box.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bootstrap-carousel/includes/sbc-plugin-scripts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-bootstrap-carousel/includes/bcfw-shortcode.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bootstrap-carousel/includes/bcfw-plugin-scripts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-bootstrap-carousel/includes/bcfw-meta-box.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: boostrap, bootstrap slider, slider, boostrap carousel, responsive slider...
slider-bootstrap-carousel/slider-bootstrap-carousel.php Passed 13 tests
"Slider Bootstrap Carousel" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
27 characters long description:
Slider Bootstrap 4 Carousel
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
Everything looks great! No dangerous files found in this plugin1,117 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 183 | 209 | 777 |
PO File | 4 | 42 | 48 | 172 |
JavaScript | 4 | 20 | 14 | 111 |
Markdown | 2 | 9 | 0 | 26 |
JSON | 1 | 0 | 0 | 15 |
Ruby | 1 | 3 | 0 | 11 |
CSS | 2 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 19 | |
▷ Static methods | 6 | 31.58% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.81MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 142.66KB | 39.20KB | ▼ 72.53% |
assets/banner-1544x500-rtl.png | 15.64KB | 7.03KB | ▼ 55.07% |
assets/banner-772x250.png | 14.95KB | 7.41KB | ▼ 50.40% |
assets/banner-772x250-rtl.png | 14.95KB | 7.41KB | ▼ 50.40% |
includes/lib/multi-post-thumbnails/screenshot-2.png | 128.43KB | 43.77KB | ▼ 65.92% |