Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.78ms] Passed 4 tests
A check of server-side resources used by Woo Slider Pro - Drag Drop Slider Builder For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 42.22 ▲2.23 |
Dashboard /wp-admin | 3.45 ▲0.14 | 47.91 ▲1.36 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.70 ▲2.63 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.23 ▼13.33 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.59 ▲3.97 |
Server storage [IO: ▲2.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Woo Slider Pro - Drag Drop Slider Builder For WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.41 | 1.79 ▲0.27 | 44.52 ▲1.74 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.05 | 110.81 ▲11.34 | 39.32 ▼4.19 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.07 | 36.50 ▲2.33 | 34.53 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,520 ▼14 | 23.16 ▼0.04 | 649.52 ▲37.13 | 50.15 ▲2.20 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.02 | 113.99 ▲13.49 | 48.28 ▲2.49 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/shortcode.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/WooSlideProSingleProduct.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/SingleProduct.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/actions.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/WooSlideProSingleProduct.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'BinaryCarpenter\\BC_SD\\Helpers' not found in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/ui/main-ui.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/SingleProduct.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/SingleProduct.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/SingleProduct.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-slider-pro-drag-drop-slider-builder-for-woocommerce/inc/SingleProduct.php on line 11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: product slider, woocommerce slider, woocommerce
woo-slider-pro-drag-drop-slider-builder-for-woocommerce/Initiator.php 92% from 13 tests
"Woo Slider Pro - Drag Drop Slider Builder For WooCommerce" version 1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-slider-pro-drag-drop-slider-builder-for-woocommerce.php" instead of "Initiator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10,651 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 914 | 1,622 | 4,542 |
SVG | 3 | 3 | 0 | 2,703 |
CSS | 3 | 831 | 63 | 2,010 |
PHP | 13 | 495 | 227 | 1,396 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 14 | 21.54% |
▷ Public methods | 59 | 90.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.23% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bundle/css/images/next_button.png | 16.98KB | 1.68KB | ▼ 90.09% |
bundle/css/images/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
bundle/images/presets/preset-placeholder.png | 17.10KB | 1.62KB | ▼ 90.52% |
bundle/css/images/prev_button.png | 17.01KB | 1.70KB | ▼ 90.00% |