89% wpc-smart-linked-products

Code Review | WPC Smart Linked Products - Upsells & Cross-sells for WooCommerce

WordPress plugin WPC Smart Linked Products - Upsells & Cross-sells for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wpc-smart-linked-...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Oct 23, 2023
  • Number of updates: 16
  • Update frequency: every 14.4 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼3.29ms] Passed 4 tests

Analyzing server-side resources used by WPC Smart Linked Products - Upsells & Cross-sells for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2139.23 ▼0.46
Dashboard /wp-admin3.52 ▲0.2148.88 ▲1.89
Posts /wp-admin/edit.php3.63 ▲0.2746.98 ▲2.67
Add New Post /wp-admin/post-new.php6.12 ▲0.2377.66 ▼17.27
Media Library /wp-admin/upload.php3.44 ▲0.2138.00 ▲6.01
About /wp-admin/admin.php?page=wpclever3.4132.71
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.4131.67

Server storage [IO: ▲0.13MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

WPC Smart Linked Products - Upsells & Cross-sells for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.14 ▼0.151.77 ▼0.1345.75 ▼0.56
Dashboard /wp-admin2,257 ▲805.79 ▲0.2798.29 ▲13.3576.72 ▲36.05
Posts /wp-admin/edit.php2,181 ▲811.98 ▼0.0234.23 ▲0.4234.00 ▼1.32
Add New Post /wp-admin/post-new.php1,763 ▲23724.56 ▲1.51663.40 ▼16.8459.22 ▼5.58
Media Library /wp-admin/upload.php1,474 ▲744.22 ▲0.0395.18 ▼0.8885.65 ▲40.96
About /wp-admin/admin.php?page=wpclever1,4052.1429.9634.84
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1632.7658.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

wpc-smart-linked-products/wpc-smart-linked-products.php 92% from 13 tests

The principal PHP file in "WPC Smart Linked Products - Upsells & Cross-sells for WooCommerce" v. 1.2.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,943 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS42741471,369
PHP5158301,161
JavaScript3623384
SVG10029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity53.25
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods512.20%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants10
▷ Global constants10100.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
No PNG images were found in this plugin