Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼6.53ms] Passed 4 tests
An overview of server-side resources used by CPT Bootstrap Carousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.26 | 46.50 ▼0.16 |
Dashboard /wp-admin | 3.87 ▲0.24 | 54.83 ▼19.35 |
Posts /wp-admin/edit.php | 3.92 ▲0.24 | 56.15 ▲6.13 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.24 | 97.05 ▼1.81 |
Media Library /wp-admin/upload.php | 3.73 ▲0.24 | 39.60 ▼4.80 |
Carousel /wp-admin/edit.php?post_type=cptbc | 3.77 | 43.41 |
Add New /wp-admin/post-new.php?post_type=cptbc | 3.88 | 57.84 |
Settings /wp-admin/edit.php?post_type=cptbc&page=cpt-bootstrap-carousel | 3.71 | 38.81 |
Carousel Categories /wp-admin/edit-tags.php?taxonomy=carousel_category&post_type=cptbc | 3.73 | 33.57 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
cptbc_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
CPT Bootstrap Carousel: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲41 | 14.38 ▼0.04 | 2.25 ▲0.30 | 44.55 ▼0.93 |
Dashboard /wp-admin | 2,230 ▲59 | 5.60 ▼0.10 | 85.35 ▼17.92 | 41.13 ▼3.75 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.05 ▲0.01 | 40.89 ▲5.30 | 37.51 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,574 ▲43 | 23.33 ▲0.08 | 649.68 ▲10.14 | 49.39 ▲0.19 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.22 ▲0.02 | 100.12 ▼15.87 | 41.87 ▼5.94 |
Carousel /wp-admin/edit.php?post_type=cptbc | 1,121 | 1.95 | 31.72 | 32.38 |
Add New /wp-admin/post-new.php?post_type=cptbc | 2,089 | 3.75 | 64.78 | 41.87 |
Settings /wp-admin/edit.php?post_type=cptbc&page=cpt-bootstrap-carousel | 1,329 | 2.03 | 22.61 | 31.46 |
Carousel Categories /wp-admin/edit-tags.php?taxonomy=carousel_category&post_type=cptbc | 1,309 | 2.14 | 32.85 | 30.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- cptbc_settings
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpt-bootstrap-carousel/src/cptbc-init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpt-bootstrap-carousel/cpt-bootstrap-carousel.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cpt-bootstrap-carousel/src/cptbc-admin.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cpt-bootstrap-carousel/src/cptbc-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cpt-bootstrap-carousel/src/cptbc-frontend.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
4 plugin tags: carousel, image, bootstrap, slider
cpt-bootstrap-carousel/cpt-bootstrap-carousel.php 92% from 13 tests
This is the main PHP file of "CPT Bootstrap Carousel" version 1.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 239 characters long)
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
No dangerous file extensions were detected1,683 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 78 | 101 | 1,077 |
PO File | 6 | 229 | 246 | 606 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 81.00 |
▷ Minimum class complexity | 81.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin