Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.66ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Product Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.06 ▼0.95 |
Dashboard /wp-admin | 3.42 ▲0.12 | 51.76 ▼1.16 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 60.90 ▲15.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.37 ▼8.84 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.78 ▲0.33 |
Help & Upgrade /wp-admin/admin.php?page=tc_wps_carousel_menu_help | 3.35 | 33.49 |
TC WPS /wp-admin/admin.php?page=tc-whooslider | 3.32 | 47.25 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
tc_whooslider_styling |
widget_recent-comments |
tc_whooslider_showhide |
widget_recent-posts |
tc_whooslider_advanced |
theysaidso_admin_options |
tc_whooslider_basics |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Product Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,084 ▲323 | 14.96 ▲0.61 | 5.80 ▲4.21 | 43.08 ▲3.36 |
Dashboard /wp-admin | 2,358 ▲178 | 6.29 ▲0.76 | 113.28 ▲16.40 | 88.72 ▲46.48 |
Posts /wp-admin/edit.php | 2,301 ▲204 | 3.50 ▲1.47 | 54.89 ▲19.61 | 80.22 ▲41.24 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.06 ▲0.07 | 676.26 ▼12.44 | 121.22 ▲61.33 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.24 ▲0.03 | 86.00 ▼16.62 | 89.40 ▲43.70 |
Help & Upgrade /wp-admin/admin.php?page=tc_wps_carousel_menu_help | 1,772 | 10.05 | 295.75 | 126.96 |
TC WPS /wp-admin/admin.php?page=tc-whooslider | 3,007 | 4.16 | 119.44 | 75.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- tc_whooslider_basics
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- tc_whooslider_advanced
- tc_whooslider_styling
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- tc_whooslider_showhide
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tc-woocommerce-product-slider/lib/tc-help-upgrade.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tc-woocommerce-product-slider/tc-woocommerce-product-slider.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tc-woocommerce-product-slider/public/view.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tc-woocommerce-product-slider/public/featured-view.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
tc-woocommerce-product-slider/tc-woocommerce-product-slider.php 85% from 13 tests
"WooCommerce Product Slider" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 387 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,978 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 450 | 857 | 1,764 |
PHP | 7 | 316 | 236 | 1,108 |
CSS | 8 | 115 | 82 | 1,036 |
Markdown | 1 | 38 | 0 | 70 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.43 |
▷ 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 | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/owl-carousel/grabbing.png | 0.11KB | 0.14KB | 0.00% |
assets/images/icon.png | 3.42KB | 0.77KB | ▼ 77.58% |
vendors/owl-carousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |