Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲0.35ms] Passed 4 tests
Server-side resources used by WPB Product Slider for WooCommerce - Product Carousel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 36.87 ▼3.78 |
Dashboard /wp-admin | 3.70 ▲0.40 | 51.54 ▼0.76 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 54.91 ▲7.91 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 82.96 ▼0.32 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 38.80 ▲6.25 |
Settings /wp-admin/admin.php?page=wpb-wps-settings | 3.53 | 39.81 |
Woo Slider /wp-admin/admin.php?page=wpb-wps-about | 3.55 | 38.81 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_wpb_woo_product_slider_widget |
wpb_wps_slider_settings |
wpb_wps_style |
db_upgraded |
widget_recent-posts |
wpb_wps_advanced |
wpb_wps_general |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WPB Product Slider for WooCommerce - Product Carousel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲246 | 14.99 ▲0.62 | 1.54 ▼0.19 | 33.94 ▼10.74 |
Dashboard /wp-admin | 2,401 ▲216 | 6.63 ▲1.55 | 136.20 ▲31.31 | 46.45 ▲2.45 |
Posts /wp-admin/edit.php | 2,303 ▲214 | 3.62 ▲1.63 | 50.72 ▲13.23 | 35.79 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.21 ▲0.10 | 645.40 ▼84.67 | 36.84 ▼19.11 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.36 ▲0.14 | 94.83 ▼18.75 | 52.44 ▲6.49 |
Settings /wp-admin/admin.php?page=wpb-wps-settings | 2,029 | 4.34 | 83.95 | 34.37 |
Woo Slider /wp-admin/admin.php?page=wpb-wps-about | 1,442 | 3.32 | 55.93 | 320.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- wpb_wps_style
- theysaidso_admin_options
- wpb_wps_general
- widget_recent-posts
- widget_wpb_woo_product_slider_widget
- db_upgraded
- wpb_wps_slider_settings
- ...
Smoke tests 75% from 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 50% from 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
Please fix the following items
- 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/wpb-woocommerce-product-slider/inc/wpb-wps-widgets.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpb-woocommerce-product-slider/inc/wpb-wps-functions.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpb-woocommerce-product-slider/inc/wpb-wps-shortcodes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wpb-woocommerce-product-slider/admin/admin-page.php:11
- > PHP Fatal error
Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/wpb-woocommerce-product-slider/admin/settings/wpb-wps-settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: woocommerce product carousel, woocommerce slider, product slider, woocommerce, woocommerce carousel...
wpb-woocommerce-product-slider/main.php 77% from 13 tests
Analyzing the main PHP file in "WPB Product Slider for WooCommerce - Product Carousel" version 2.0.9.7
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpb-woocommerce-product-slider.php" instead of "main.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,870 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 255 | 266 | 1,154 |
CSS | 3 | 27 | 28 | 656 |
JavaScript | 2 | 8 | 9 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/grabbing.png | 0.11KB | 0.14KB | 0.00% |