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.00MB] [CPU: ▼3.87ms] Passed 4 tests
Analyzing server-side resources used by Grid, Slider & Carousel for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.69 ▼2.77 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.98 ▼4.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 52.30 ▲4.97 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.55 ▼12.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 42.82 ▲4.17 |
Server storage [IO: ▲4.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Grid, Slider & Carousel for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.30 ▼0.07 | 1.81 ▼0.02 | 44.41 ▲5.86 |
Dashboard /wp-admin | 2,207 ▲30 | 5.73 ▲0.11 | 86.06 ▼6.82 | 45.19 ▼1.20 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.97 ▼0.05 | 39.53 ▲3.65 | 44.78 ▲12.49 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.47 ▲5.90 | 614.81 ▼55.95 | 60.80 ▲1.02 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.23 ▲0.05 | 175.90 ▲64.89 | 69.79 ▲20.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/grid-slider-carousel-for-woocommerce/template/slider.php
- 211× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: cart_txt_trans_ho in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/hover.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function is_featured() on null in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/overlay.php:15
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/grid-slider-carousel-for-woocommerce/inc/views/control/fontawesome.php:1
- > PHP Notice
Undefined variable: fo_size in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/overlay.php on line 1
- > PHP Notice
Undefined variable: cart_bor_wid_over in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/overlay.php on line 1
- > PHP Notice
Undefined variable: h3_col in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/hover.php on line 1
- > PHP Notice
Undefined variable: cart_bg_hover in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/hover.php on line 1
- > PHP Notice
Undefined variable: cart_fo_size_ho in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/hover.php on line 1
- > PHP Notice
Undefined variable: out_bg in wp-content/plugins/grid-slider-carousel-for-woocommerce/template/main/normal.php on line 1
- > PHP Notice
Undefined variable: set in wp-content/plugins/grid-slider-carousel-for-woocommerce/inc/views/option/set.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in grid-slider-carousel-for-woocommerce/assets to your readme.txt
grid-slider-carousel-for-woocommerce/gsc-for-woocommerce.php 92% from 13 tests
"Grid, Slider & Carousel for Woocommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("grid-slider-carousel-for-woocommerce.php" instead of "gsc-for-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected22,094 lines of code in 185 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 2,673 | 2,640 | 14,360 |
CSS | 15 | 154 | 176 | 3,310 |
JavaScript | 49 | 447 | 308 | 2,973 |
SVG | 2 | 0 | 0 | 979 |
PO File | 1 | 208 | 1,347 | 444 |
Markdown | 1 | 12 | 0 | 27 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 4 | 6.78% |
▷ Concrete classes | 55 | 93.22% |
▷ Final classes | 0 | 0.00% |
Methods | 540 | |
▷ Static methods | 89 | 16.48% |
▷ Public methods | 507 | 93.89% |
▷ Protected methods | 19 | 3.52% |
▷ Private methods | 14 | 2.59% |
Functions | 58 | |
▷ Named functions | 58 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 35 | 92.11% |
▷ Class constants | 3 | 7.89% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.69MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 35.09KB | 20.49KB | ▼ 41.62% |
inc/public/img/vp_shortcode_icon_sprite.png | 1.55KB | 0.42KB | ▼ 73.10% |
inc/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/grid-options-pf.png | 25.98KB | 10.47KB | ▼ 59.70% |
inc/public/img/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |