90% cross-sell-product-display-for-woocommerce

Code Review | Cross Sell Product Display For Woocommerce

WordPress plugin Cross Sell Product Display For Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: cross-sell-produc...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: codextent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,482 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.84ms] Passed 4 tests

A check of server-side resources used by Cross Sell Product Display For Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.95 ▲1.20
Dashboard /wp-admin3.32 ▼0.0350.29 ▼17.81
Posts /wp-admin/edit.php3.37 ▲0.0150.63 ▲0.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.51 ▼7.17
Media Library /wp-admin/upload.php3.24 ▲0.0138.97 ▲1.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_codextent-woo-cross-sells
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cross Sell Product Display For Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.071.60 ▼0.0141.03 ▼4.68
Dashboard /wp-admin2,198 ▲185.61 ▲0.0385.20 ▼11.9341.26 ▼2.92
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0638.12 ▲1.5832.98 ▼5.79
Add New Post /wp-admin/post-new.php1,526 ▼022.85 ▼0.39663.11 ▼23.3055.86 ▲6.59
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.04103.07 ▼1.5848.07 ▲3.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_codextent-woo-cross-sells
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: cross-sell, woocommerce cross-sell, widgets, cross sell, woocommerce plugin...

cross-sell-product-display-for-woocommerce/cross-sell-product-display-for-woocommerce.php Passed 13 tests

"Cross Sell Product Display For Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Woocommerce Cross Sell product display using Widgets and Shortcode.

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 plugin328 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP39958242
CSS24185
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods444.44%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected