10% wpc-smart-product-collections

Code Review | WPC Smart Product Collections for WooCommerce

WordPress plugin WPC Smart Product Collections for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: wpc-smart-product...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2022
  • Latest release: Sep 5, 2023
  • Number of updates: 10
  • Update frequency: every 25.3 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,247 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Error in wp-content/plugins/wpc-smart-product-collections/includes/class-helper.php+13
    Uncaught Error: Call to undefined function as_next_scheduled_action() in wp-content/plugins/wpc-smart-product-collections/includes/class-helper.php:13
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): Wpcpc_Helper->register_schedule()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.50ms] Passed 4 tests

Server-side resources used by WPC Smart Product Collections for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.83 ▲4.82
Dashboard /wp-admin3.31 ▼0.0447.57 ▼20.99
Posts /wp-admin/edit.php3.36 ▲0.0049.77 ▼3.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.17 ▼19.66
Media Library /wp-admin/upload.php3.23 ▲0.0036.22 ▲2.19

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wpc-smart-product-collections/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WPC Smart Product Collections for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.73 ▲0.361.91 ▲0.1343.46 ▼0.20
Dashboard /wp-admin2,224 ▲174.85 ▼0.13108.19 ▼6.0643.65 ▼1.03
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0139.50 ▼1.3737.06 ▲1.80
Add New Post /wp-admin/post-new.php1,549 ▲1723.41 ▲0.14602.16 ▼13.2154.08 ▼7.64
Media Library /wp-admin/upload.php1,397 ▲34.24 ▲0.02100.15 ▼1.1045.23 ▼1.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

wpc-smart-product-collections/wpc-smart-product-collections.php Passed 13 tests

The primary PHP file in "WPC Smart Product Collections for WooCommerce" version 1.0.7 is used by WordPress to initiate all plugin functionality
86 characters long description:
WPC Smart Product Collections allows you to manage product collections in the easiest.

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
No dangerous file extensions were detected2,166 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP5211501,399
CSS41088578
JavaScript3285160
SVG10029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity42.40
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods56
▷ Static methods35.36%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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
There are no PNG files in this plugin