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.16MB] [CPU: ▼2.54ms] Passed 4 tests
Server-side resources used by WPB Related Products Slider for WooCommerce - Show WooCommerce Related Products in Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.74 ▼3.81 |
Dashboard /wp-admin | 3.53 ▲0.23 | 54.08 ▲4.41 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 53.13 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 85.26 ▼10.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.74 ▲5.85 |
WPB Related Products Slider /wp-admin/options-general.php?page=wpb_wrps_product_slider | 3.37 | 38.25 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wpb_wrps_general |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPB Related Products Slider for WooCommerce - Show WooCommerce Related Products in Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲284 | 15.20 ▲0.66 | 5.67 ▲3.66 | 35.89 ▼6.07 |
Dashboard /wp-admin | 2,363 ▲186 | 6.31 ▲0.70 | 113.61 ▲26.88 | 43.36 ▼0.45 |
Posts /wp-admin/edit.php | 2,291 ▲188 | 3.63 ▲1.61 | 52.13 ▲8.79 | 38.68 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.21 ▲0.26 | 648.29 ▼54.34 | 37.35 ▼14.90 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.32 ▲0.08 | 86.52 ▼12.29 | 43.48 ▼2.85 |
WPB Related Products Slider /wp-admin/options-general.php?page=wpb_wrps_product_slider | 1,200 | 3.54 | 49.93 | 47.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- wpb_wrps_general
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: products slider, woocommerce, custom related products, related products, slider...
wpb-woocommerce-related-products-slider/main.php 85% from 13 tests
Analyzing the main PHP file in "WPB Related Products Slider for WooCommerce - Show WooCommerce Related Products in Slider" version 1.3.6
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpb-woocommerce-related-products-slider.php" instead of "main.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected1,120 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 238 | 258 | 655 |
CSS | 3 | 23 | 29 | 405 |
JavaScript | 2 | 3 | 5 | 44 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 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 | 2 | |
▷ Global constants | 2 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/grabbing.png | 0.11KB | 0.14KB | 0.00% |