Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼258.13ms] Passed 4 tests
Server-side resources used by WP Bootstrap Carousel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 35.48 ▲16.31 |
Dashboard /wp-admin | 3.11 ▲0.06 | 42.86 ▼0.90 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 46.24 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 94.39 ▼1,025.92 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.47 ▼6.43 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Bootstrap Carousel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,675 ▲69 | 15.91 ▼0.03 | 8.17 ▲0.21 | 47.51 ▼2.25 |
Dashboard /wp-admin | 2,933 ▲83 | 5.83 ▼0.05 | 141.65 ▲11.70 | 107.94 ▲0.16 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.01 | 69.83 ▲1.98 | 87.43 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,880 ▲27 | 17.79 ▼1.16 | 352.68 ▼24.05 | 112.53 ▲6.14 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.10 ▲0.11 | 153.44 ▲5.29 | 102.31 ▼11.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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:
- Screenshots: Screenshot #1 (carousel) image missing
wp-bootstrap-carousel/wp-bootstrap-carousel.php 85% from 13 tests
The primary PHP file in "WP Bootstrap Carousel" version 0.5.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: Please keep the plugin description shorter than 140 characters (currently 424 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected970 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 123 | 490 | 414 |
CSS | 2 | 4 | 13 | 332 |
JavaScript | 4 | 65 | 30 | 224 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 1 | |
▷ Named functions | 1 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 221.61KB | 95.95KB | ▼ 56.70% |