Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.18MB] [CPU: ▲1.40ms] Passed 4 tests
This is a short check of server-side resources used by FancyProduct - Product Carousel, Slider, Gallery, Grid With WordPress Carousel – Category Carousel & Slider, Cross-Sell, and Related Products for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.11 | 37.56 ▼1.99 |
Dashboard /wp-admin | 4.50 ▲1.20 | 60.94 ▲15.04 |
Posts /wp-admin/edit.php | 4.55 ▲1.20 | 53.63 ▲6.34 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 94.99 ▼9.06 |
Media Library /wp-admin/upload.php | 4.42 ▲1.20 | 47.22 ▲10.32 |
Add New /wp-admin/post-new.php?post_type=gpsc_slider_carousel | 7.35 | 54.63 |
Manage Sliders /wp-admin/edit.php?post_type=gpsc_slider_carousel | 7.36 | 54.36 |
Help /wp-admin/edit.php?post_type=gpsc_slider_carousel&page=gpsc_help_page | 7.28 | 52.88 |
Settings /wp-admin/edit.php?post_type=gpsc_slider_carousel&page=wpgpscsc_settings | 7.28 | 80.84 |
Server storage [IO: ▲2.44MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
_wpgpsc_option_settings |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by FancyProduct - Product Carousel, Slider, Gallery, Grid With WordPress Carousel – Category Carousel & Slider, Cross-Sell, and Related Products for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,486 ▼260 | 13.20 ▼1.39 | 0.52 ▼1.20 | 18.51 ▼26.83 |
Dashboard /wp-admin | 2,227 ▲42 | 4.86 ▼0.96 | 98.54 ▼6.12 | 37.49 ▼6.14 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.05 ▲0.04 | 35.59 ▼4.54 | 29.13 ▼8.03 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 18.31 ▼4.83 | 624.81 ▼37.07 | 76.08 ▲22.82 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.10 ▲0.01 | 96.27 ▼4.56 | 45.43 ▲2.70 |
Add New /wp-admin/post-new.php?post_type=gpsc_slider_carousel | 4,335 | 6.47 | 180.93 | 134.30 |
Manage Sliders /wp-admin/edit.php?post_type=gpsc_slider_carousel | 1,306 | 4.22 | 56.32 | 27.66 |
Help /wp-admin/edit.php?post_type=gpsc_slider_carousel&page=gpsc_help_page | 1,782 | 14.15 | 282.92 | 128.29 |
Settings /wp-admin/edit.php?post_type=gpsc_slider_carousel&page=wpgpscsc_settings | 3,470 | 5.17 | 90.31 | 45.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- _wpgpsc_option_settings
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gpsc_slider_carousel
- > Notice in wp-content/plugins/product-slider-carousel/admin/wpgpsc-framework/metabox/general.php+306
Trying to get property 'name' of non-object
SRP 0% from 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/product-slider-carousel/admin/partials/gpsc-product-slider-carousel-admin-display.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_products() in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-grid.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-carousel.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wpgpsc_get_options() in wp-content/plugins/product-slider-carousel/public/class-gpsc-product-slider-carousel-dynamic-styles.php:35
- > PHP Notice
Undefined variable: wpgpscsc_product_limit in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-grid.php on line 22
- > PHP Notice
Undefined variable: wpgpscsc_product_by in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-grid.php on line 23
- > PHP Notice
Undefined variable: wpgpscsc_product_by in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-grid.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/product-slider-carousel/admin/partials/gpsc-product-slider-carousel-admin-display.php:244
- > PHP Notice
Undefined variable: wpgpscsc_product_order in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-grid.php on line 25
- > PHP Notice
Undefined variable: wpgpscsc_product_orderby in wp-content/plugins/product-slider-carousel/public/modules/gpsc-product-grid.php on line 24
- > 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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: related products, best carousel plugin, woocommerce carousel, product slider, fancyproduct...
product-slider-carousel/gpsc-product-slider-carousel.php 85% from 13 tests
The principal PHP file in "FancyProduct - Product Carousel, Slider, Gallery, Grid With WordPress Carousel – Category Carousel & Slider, Cross-Sell, and Related Products for WooCommerce" v. 2.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("product-slider-carousel.php" instead of "gpsc-product-slider-carousel.php")
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
Success! There were no dangerous files found in this plugin21,953 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 1,637 | 1,586 | 7,521 |
JavaScript | 9 | 1,302 | 546 | 6,579 |
CSS | 9 | 429 | 559 | 5,161 |
SVG | 4 | 0 | 0 | 2,692 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 23.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 6.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 2 | 4.88% |
▷ Concrete classes | 39 | 95.12% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 30 | 18.07% |
▷ Public methods | 160 | 96.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 3.61% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wpgpsc-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/img/client-3.png | 0.37KB | 0.12KB | ▼ 67.54% |
admin/img/client-2.png | 0.39KB | 0.15KB | ▼ 61.50% |
admin/img/carousel-icon.png | 1.70KB | 1.13KB | ▼ 33.06% |
admin/img/grid-icon.png | 0.98KB | 0.65KB | ▼ 34.16% |