Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼5.95ms] Passed 4 tests
Server-side resources used by WooCommerce Advanced Slider - 3D slider for Product & Category
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 40.00 ▼0.06 |
Dashboard /wp-admin | 3.62 ▲0.27 | 46.69 ▼17.32 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 48.73 ▲4.98 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 86.34 ▼7.68 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 37.17 ▲1.26 |
/wp-admin/admin.php?page=wcps_slider_three | 3.56 | 34.72 |
/wp-admin/admin.php?page=wcps_slider_two | 3.56 | 33.21 |
/wp-admin/admin.php?page=wcps_slider_four | 3.56 | 31.85 |
/wp-admin/admin.php?page=wcps_slider_one | 3.56 | 32.28 |
/wp-admin/admin.php?page=wcps_slider_five | 3.56 | 36.92 |
/wp-admin/admin.php?page=wcps_category_slider | 3.54 | 33.40 |
Server storage [IO: ▲5.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 92 new files
Database: no new tables, 88 new options
New WordPress options |
---|
wcps_show_atcb_2 |
wcps_vb_text_2 |
wcps_vb_text_3 |
wcps_pp_hover_3 |
wcps_show_vmb_3 |
wcps_show_pp_2 |
wcps_how_many_category |
wcps_pt_color_2 |
wcps_pt_size_4 |
wcps_show_pt_3 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Advanced Slider - 3D slider for Product & Category
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,047 ▲301 | 14.25 ▼0.30 | 7.74 ▲6.04 | 39.86 ▼3.71 |
Dashboard /wp-admin | 2,262 ▲85 | 5.64 ▲0.11 | 100.98 ▲5.51 | 48.66 ▲5.90 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.60 ▲0.66 | 44.89 ▲9.44 | 45.25 ▲10.41 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 23.75 ▲0.72 | 730.40 ▲84.39 | 42.02 ▼19.63 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 5.02 ▲0.84 | 111.59 ▲15.75 | 50.81 ▲9.40 |
/wp-admin/admin.php?page=wcps_slider_three | 2,562 | 4.29 | 110.85 | 42.93 |
/wp-admin/admin.php?page=wcps_slider_two | 2,565 | 4.29 | 97.48 | 35.96 |
/wp-admin/admin.php?page=wcps_slider_four | 2,565 | 4.30 | 98.28 | 37.49 |
/wp-admin/admin.php?page=wcps_slider_one | 2,566 | 4.38 | 99.13 | 38.16 |
/wp-admin/admin.php?page=wcps_slider_five | 2,539 | 4.25 | 98.03 | 36.43 |
/wp-admin/admin.php?page=wcps_category_slider | 1,075 | 2.16 | 29.56 | 30.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 88 options in the database
- wcps_vmb_color_1
- can_compress_scripts
- wcps_pp_hover_1
- wcps_show_vmb_1
- wcps_pp_color_3
- wcps_pp_color_2
- wcps_atcb_hover_3
- wcps_show_pp_4
- wcps_vmb_hover_2
- wcps_atcb_bg_hover_2
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wcps_slider_one
- > Notice in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-one.php+87
Undefined variable: wcps_pt_none
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wcps_slider_one
- > Notice in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-one.php+159
Undefined variable: wcps_pp_none
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wcps_slider_one
- > Notice in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-one.php+192
Undefined variable: wcps_atcb_none
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-products-slider/admin/partials/part/wcps-foot.php
- > /wp-content/plugins/wc-products-slider/admin/partials/wcps-admin-display.php
- > /wp-content/plugins/wc-products-slider/public/partials/wcps-public-display.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-three.php:4
- > PHP Notice
Undefined variable: page in wp-content/plugins/wc-products-slider/admin/partials/part/wcps-head.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wc-products-slider/admin/partials/part/wcps-head.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wc-products-slider/public/class-wcps-public.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-one.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-setting.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-four.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-products-slider/admin/partials/wcps-category-slider.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-five.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-products-slider/admin/partials/wcps-slider-dashboard.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #6, #7, #8 in wc-products-slider/assets to your readme.txt
wc-products-slider/wcps.php 92% from 13 tests
"WooCommerce Advanced Slider - 3D slider for Product & Category" version 1.1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-products-slider.php" instead of "wcps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected13,874 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 9,207 |
PHP | 23 | 718 | 602 | 2,877 |
CSS | 12 | 51 | 73 | 1,020 |
JavaScript | 10 | 211 | 118 | 770 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.87MB with 1.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/p_slider_3.png | 172.05KB | 60.46KB | ▼ 64.86% |
admin/img/p_slider_1.png | 201.71KB | 68.08KB | ▼ 66.25% |
public/img/arrows.png | 2.23KB | 0.88KB | ▼ 60.33% |
admin/img/slider_1.png | 324.66KB | 102.00KB | ▼ 68.58% |
public/img/browser.png | 12.17KB | 5.03KB | ▼ 58.64% |