84% woo-category-slider-by-pluginever

Code Review | Product Category Slider for WooCommerce

WordPress plugin Product Category Slider for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-category-slid...
  • Plugin version: 4.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jan 7, 2017
  • Latest release: Aug 3, 2023
  • Number of updates: 71
  • Update frequency: every 33.8 days
  • Top authors: manikmist09 (85.92%)pluginever (8.45%)manzurahammed (8.45%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /55,809 total downloads

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.02MB] [CPU: ▼1.27ms] Passed 4 tests

This is a short check of server-side resources used by Product Category Slider for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.81 ▼6.85
Dashboard /wp-admin3.33 ▲0.0351.71 ▼0.36
Posts /wp-admin/edit.php3.44 ▲0.0950.98 ▲4.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.28 ▲0.14
Media Library /wp-admin/upload.php3.25 ▲0.0235.20 ▲2.00

Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options
woocs_version
woocs_install_date
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Product Category Slider for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3813.26 ▼1.144.48 ▲2.4037.40 ▼5.55
Dashboard /wp-admin2,218 ▲394.85 ▼1.01107.93 ▼5.6243.69 ▲2.71
Posts /wp-admin/edit.php2,097 ▲81.98 ▼0.0339.50 ▲3.8035.53 ▲4.53
Add New Post /wp-admin/post-new.php1,551 ▲818.25 ▲0.02622.85 ▲5.4751.40 ▼9.36
Media Library /wp-admin/upload.php1,394 ▲124.30 ▼0.0194.96 ▼3.1342.91 ▼0.38

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
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • woocs_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • woocs_install_date
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-category-slider-by-pluginever/src/fonts.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #2, #3, #4, #5, #6, #7, #8, #9 in woo-category-slider-by-pluginever/assets to your readme.txt
You can look at the official readme.txt

woo-category-slider-by-pluginever/woo-category-slider-by-pluginever.php Passed 13 tests

The entry point to "Product Category Slider for WooCommerce" version 4.1.6 is a PHP file that has certain tags in its header comment area
113 characters long description:
Showcase product categories in the most appealing way. Create an instant impression & trigger purchase intention.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin41,519 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP306311,33822,485
JSON10019,023
JavaScript7007
CSS5104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity31.17
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods138
▷ Static methods128.70%
▷ Public methods13295.65%
▷ Protected methods64.35%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/owl.video.play.7f01b071.png4.86KB2.74KB▼ 43.61%
assets/dist/images/placeholder.png11.31KB11.42KB0.00%