Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.30MB] [CPU: ▲6.92ms] Passed 4 tests
Analyzing server-side resources used by Category Slider for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.94 ▲1.48 | 54.31 ▲12.88 |
Dashboard /wp-admin | 4.60 ▲1.29 | 55.52 ▲2.20 |
Posts /wp-admin/edit.php | 4.69 ▲1.33 | 58.08 ▲11.78 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.24 | 94.12 ▲5.31 |
Media Library /wp-admin/upload.php | 4.57 ▲1.34 | 44.46 ▲8.40 |
Settings /wp-admin/edit.php?post_type=sp_wcslider&page=wcsp_settings | 5.02 | 50.22 |
Add New /wp-admin/post-new.php?post_type=sp_wcslider | 5.20 | 76.23 |
Tools /wp-admin/edit.php?post_type=sp_wcslider&page=wcsp_tools | 5.02 | 50.38 |
Manage Sliders /wp-admin/edit.php?post_type=sp_wcslider | 5.10 | 58.13 |
Help /wp-admin/edit.php?post_type=sp_wcslider&page=wcsp_help | 5.02 | 50.58 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 166 new files
Database: no new tables, 13 new options
New WordPress options |
---|
sp_wcsp_settings |
widget_woo_category_slider_widget |
widget_recent-comments |
woo_category_slider_version |
widget_recent-posts |
woo_category_slider_first_version |
woo_category_slider_db_version |
sp_woo_category_slider_review_notice_dismiss |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Category Slider for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲153 | 14.36 ▼0.29 | 1.76 ▲0.07 | 33.82 ▼9.37 |
Dashboard /wp-admin | 2,296 ▲116 | 5.54 ▲0.00 | 86.72 ▼10.04 | 43.14 ▲0.17 |
Posts /wp-admin/edit.php | 2,210 ▲110 | 2.06 ▲0.05 | 41.57 ▲4.85 | 37.69 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,729 | 19.33 ▼3.74 | 1,078.37 ▲353.14 | 56.98 ▲3.83 |
Media Library /wp-admin/upload.php | 1,507 ▲107 | 4.20 ▲0.01 | 97.55 ▼6.30 | 45.27 ▼0.10 |
Settings /wp-admin/edit.php?post_type=sp_wcslider&page=wcsp_settings | 1,393 | 3.61 | 65.29 | 45.75 |
Add New /wp-admin/post-new.php?post_type=sp_wcslider | 6,238 | 5.15 | 103.19 | 154.67 |
Tools /wp-admin/edit.php?post_type=sp_wcslider&page=wcsp_tools | 1,338 | 3.82 | 52.49 | 73.28 |
Manage Sliders /wp-admin/edit.php?post_type=sp_wcslider | 1,470 | 4.06 | 60.01 | 94.22 |
Help /wp-admin/edit.php?post_type=sp_wcslider&page=wcsp_help | 2,088 | 14.42 | 297.70 | 135.21 |
Uninstaller [IO: ▲2.63MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThis plugin does not fully uninstall, leaving 14 options in the database
- This plugin did not uninstall without warnings or errors
- > Compile error in wp-content/plugins/woo-category-slider-grid/woo-category-slider-grid.php+295
Cannot redeclare run_woo_category_slider() (previously declared in wp-content/plugins/woo-category-slider-grid/woo-category-slider-grid.php:297)
- This plugin has failed uninstalling correctly, leaving 166 files (2.63MB) in the plugin directory
- (new file) admin/GutenbergBlock/build/index.js
- (new file) admin/class-woo-category-slider-admin.php
- (new file) admin/class-woo-category-slider-element-shortcode-addons.php
- (new file) admin/class-woo-category-slider-element-shortcode-addons-deprecated.php
- (new file) admin/ElementAddons_Deprecated/Sp_Category_Shortcode_Widget_Deprecated.php
- (new file) admin/class-category-slider-gutenberg-block.php
- (new file) admin/GutenbergBlock/class-woo-category-slider-shortcode-init.php
- (new file) admin/ElementAddons/Sp_Category_Shortcode_Widget.php
- (new file) admin/GutenbergBlock/assets/wcs-block-preview.svg
- (new file) admin/GutenbergBlock/build/index.asset.php
- ...
- widget_woo_category_slider_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
- sp_woo_category_slider_review_notice_dismiss
- woo_category_slider_db_version
- woo_category_slider_first_version
- can_compress_scripts
- widget_recent-comments
- sp_wcsp_settings
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-category-slider-grid/admin/class-woo-category-slider-element-shortcode-addons.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-category-slider-grid/admin/partials/notices/review.php:17
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/woo-category-slider-grid/admin/ElementAddons/Sp_Category_Shortcode_Widget.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-category-slider-grid/includes/updates/update-1.4.15.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-category-slider-grid/admin/class-woo-category-slider-element-shortcode-addons-deprecated.php:141
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/woo-category-slider-grid/admin/ElementAddons_Deprecated/Sp_Category_Shortcode_Widget_Deprecated.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-category-slider-grid/public/dynamic-style.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-category-slider-grid/includes/updates/update-1.2.1.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-category-slider-grid/admin/preview/class-woo-category-slider-preview.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
woo-category-slider-grid/woo-category-slider-grid.php 92% from 13 tests
The main PHP script in "Category Slider for WooCommerce" version 1.4.18 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 305 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin25,386 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 2,228 | 497 | 10,935 |
PHP | 80 | 1,568 | 3,538 | 6,925 |
CSS | 15 | 706 | 480 | 4,601 |
SVG | 35 | 0 | 5 | 2,925 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 16.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 242 | |
▷ Static methods | 41 | 16.94% |
▷ Public methods | 231 | 95.45% |
▷ Protected methods | 4 | 1.65% |
▷ Private methods | 7 | 2.89% |
Functions | 23 | |
▷ Named functions | 21 | 91.30% |
▷ Anonymous functions | 2 | 8.70% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/wcs-badge-icon.png | 26.08KB | 4.98KB | ▼ 80.92% |
admin/partials/wcsp-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |