Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼147.40ms] Passed 4 tests
This is a short check of server-side resources used by Slider-Carousel-Shortcodes-WC-Product
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.39 ▲11.78 |
Dashboard /wp-admin | 3.06 ▲0.00 | 44.38 ▼4.36 |
Posts /wp-admin/edit.php | 3.12 ▲0.00 | 42.50 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 93.25 ▼580.01 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 35.06 ▼1.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Slider-Carousel-Shortcodes-WC-Product
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.23 ▲0.59 | 7.80 ▼1.84 | 50.29 ▲3.65 |
Dashboard /wp-admin | 2,967 ▲33 | 5.88 ▼0.23 | 141.15 ▼7.03 | 109.09 ▼7.90 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 66.04 ▲1.99 | 95.11 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,594 ▲96 | 18.63 ▼0.18 | 396.82 ▲12.56 | 113.40 ▼0.93 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.02 | 160.62 ▲8.99 | 122.82 ▼2.39 |
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
This plugin's uninstaller ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-carousel-shortcodes-wc-product/slider-carousel-shortcodes-wc-product.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #2 (Slider-Carousel-Shortcodes-WC-Product2) image required
slider-carousel-shortcodes-wc-product/admin-slider-carousel-shortcodes-wc-product.php 85% from 13 tests
The primary PHP file in "Slider-Carousel-Shortcodes-WC-Product" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("slider-carousel-shortcodes-wc-product.php" instead of "admin-slider-carousel-shortcodes-wc-product.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.5" instead of "4.0")
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
There were no executable files found in this plugin168 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 235 | 15 | 117 |
CSS | 1 | 38 | 2 | 49 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected