Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.13ms] Passed 4 tests
Analyzing server-side resources used by Woo Product Slider by Pangolin - Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.60 ▲4.32 |
Dashboard /wp-admin | 3.34 ▲0.03 | 71.67 ▲12.95 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 55.29 ▼9.65 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 109.09 ▲3.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 44.63 ▲0.94 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_wpspl_woo_product_category |
theysaidso_admin_options |
widget_recent-posts |
widget_wpspl_woo_recent_products |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_wpspl_woo_featured_products |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Product Slider by Pangolin - Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲112 | 14.75 ▲0.37 | 11.29 ▲9.50 | 58.24 ▲17.11 |
Dashboard /wp-admin | 2,188 ▲11 | 5.66 ▲0.00 | 135.87 ▲13.05 | 48.62 ▼2.75 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.00 ▲0.01 | 39.03 ▼6.54 | 37.05 ▼6.19 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.18 ▼2.75 | 704.33 ▼113.44 | 71.27 ▲4.80 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.18 ▼0.03 | 139.45 ▲0.35 | 68.77 ▲13.98 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_wpspl_woo_featured_products
- can_compress_scripts
- db_upgraded
- widget_wpspl_woo_product_category
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_wpspl_woo_recent_products
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-slider-by-pangolin-lite/inc/widget-woocommerce-slider-recent.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-slider-by-pangolin-lite/inc/widget-woocommerce-category.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-slider-by-pangolin-lite/inc/widget-woocommerce-slider-featured.php:4
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #7 is missing in woo-product-slider-by-pangolin-lite/assets to your readme.txt
woo-product-slider-by-pangolin-lite/woo-product-slider.php 92% from 13 tests
"Woo Product Slider by Pangolin - Lite" version 1.01'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-slider-by-pangolin-lite.php" instead of "woo-product-slider.php")
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
No dangerous file extensions were detected2,416 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 215 | 45 | 969 |
CSS | 2 | 26 | 44 | 791 |
JavaScript | 2 | 230 | 143 | 637 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/category-image.png | 3.65KB | 1.15KB | ▼ 68.54% |