Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼2.05ms] Passed 4 tests
This is a short check of server-side resources used by Category slider for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 41.94 ▼1.30 |
Dashboard /wp-admin | 3.82 ▲0.52 | 51.77 ▲2.61 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 60.61 ▲11.44 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 95.23 ▼14.88 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 40.24 ▲5.39 |
Add New /wp-admin/post-new.php?post_type=bs_slider | 3.91 | 60.48 |
All Sliders /wp-admin/edit.php?post_type=bs_slider | 3.79 | 47.02 |
Server storage [IO: ▲10.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 623 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
bsfw_plugin_activation_time |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Category slider for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲291 | 19.08 ▲4.70 | 1.70 ▼0.38 | 37.31 ▼5.42 |
Dashboard /wp-admin | 2,455 ▲270 | 9.32 ▲4.42 | 227.51 ▲123.33 | 53.66 ▲12.92 |
Posts /wp-admin/edit.php | 2,379 ▲290 | 6.47 ▲4.44 | 89.28 ▲47.79 | 39.48 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,658 ▲118 | 20.31 ▼2.91 | 677.95 ▲86.29 | 36.61 ▼26.87 |
Media Library /wp-admin/upload.php | 1,513 ▲128 | 6.85 ▲2.62 | 115.12 ▲17.32 | 46.09 ▲2.88 |
Add New /wp-admin/post-new.php?post_type=bs_slider | 2,180 | 9.48 | 193.93 | 58.58 |
All Sliders /wp-admin/edit.php?post_type=bs_slider | 1,355 | 6.50 | 87.63 | 34.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- bsfw_plugin_activation_time
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/wc-basic-slider/lib/Admin/Dependencies.php
- 214× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Field/Block_Preview_Field.php:14
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Container/Container.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-basic-slider/templates/category_slider_1.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\User_Role_Condition' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_Role_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-basic-slider/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Widget\\Widget' not found in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/core/Widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wc-basic-slider/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bs_slider
- > Console-api (warning) in wp-content/plugins/wc-basic-slider/vendor/htmlburger/carbon-fields/build/classic/vendor.min.js?ver=3.6.0+48:54975
wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
wc-basic-slider/basic-slider.php 77% from 13 tests
The primary PHP file in "Category slider for WooCommerce" version 2.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-basic-slider.php" instead of "basic-slider.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")
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 plugin36,668 lines of code in 550 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 180 | 7,100 | 10,947 | 16,206 |
PHP | 270 | 3,410 | 8,204 | 13,013 |
PO File | 28 | 898 | 1,111 | 2,411 |
CSS | 13 | 243 | 1,175 | 2,310 |
Sass | 49 | 365 | 3 | 1,868 |
JSON | 4 | 0 | 0 | 681 |
YAML | 3 | 30 | 0 | 111 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 238 | |
▷ Abstract classes | 12 | 5.04% |
▷ Concrete classes | 226 | 94.96% |
▷ Final classes | 2 | 0.88% |
Methods | 1,088 | |
▷ Static methods | 114 | 10.48% |
▷ Public methods | 864 | 79.41% |
▷ Protected methods | 203 | 18.66% |
▷ Private methods | 21 | 1.93% |
Functions | 111 | |
▷ Named functions | 22 | 19.82% |
▷ Anonymous functions | 89 | 80.18% |
Constants | 43 | |
▷ Global constants | 14 | 32.56% |
▷ Class constants | 29 | 67.44% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/grid.png | 0.13KB | 0.13KB | 0.00% |
assets/images/overlay-content.png | 7.96KB | 4.10KB | ▼ 48.47% |
assets/images/slider.png | 0.17KB | 0.17KB | 0.00% |
assets/images/below-content.png | 9.75KB | 4.75KB | ▼ 51.23% |