68% increase-sales

Code Review | Increase Sales WooCommerce

WordPress plugin Increase Sales WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: increase-sales
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 10, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 21
  • Update frequency: every 73.9 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,343 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

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

Server-side resources used by Increase Sales WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.12 ▼6.40
Dashboard /wp-admin3.31 ▲0.0147.29 ▼3.08
Posts /wp-admin/edit.php3.36 ▲0.0147.38 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.41 ▲0.72
Media Library /wp-admin/upload.php3.23 ▲0.0136.10 ▼4.13

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: 1 new table, 17 new options
New tables
wp_qcld_conversion_tracker
New WordPress options
can_compress_scripts
widget_theysaidso_widget
qcld_cross_sell_lang_out_of_stock
widget_recent-comments
qcld_cross_sell_product_details_display_mode
db_upgraded
qcld_cross_sell_show_cart_page
qcld_cross_sell_display_mode
qcld_cross_sell_lang_add_to_cart
qcld_cross_sell_lang_wrap_title
...

Browser metrics Passed 4 tests

A check of browser resources used by Increase Sales WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.38 ▲0.252.54 ▲0.7444.01 ▼1.41
Dashboard /wp-admin2,195 ▲155.62 ▼0.0195.48 ▼1.1845.17 ▲5.86
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0642.74 ▲7.4637.67 ▲2.61
Add New Post /wp-admin/post-new.php1,526 ▼823.23 ▲4.91648.35 ▼45.3853.75 ▼37.77
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0497.96 ▼10.2544.92 ▼1.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_qcld_conversion_tracker
  • The uninstall procedure has failed, leaving 17 options in the database
    • qcld_con_tracker
    • qcld_cross_sell_lang_continue_shopping_text
    • theysaidso_admin_options
    • qcld_cross_sell_lang_add_to_cart
    • qcld_cross_sell_lang_wrap_title
    • qcld_cross_sell_show_cart_page
    • widget_recent-posts
    • widget_recent-comments
    • qcld_cross_sell_lang_out_of_stock
    • qcld_cross_sell_order_notification_min_ago
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following items
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-continue-shopping.php
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-assets.php
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-admin-data-in.php
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-order-notification.php
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-main.php
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-ajax.php
    • > /wp-content/plugins/increase-sales/qcld-cross-sell-admin-wrapper.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/increase-sales/conversion-tracker/class-qc-conversion-tracker.php:508

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
6 plugin tags: cross sells, woocommerce, cross-sells, increase sales, more sales...

increase-sales/qcld-cross-sell-main.php 92% from 13 tests

"Increase Sales WooCommerce" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("increase-sales.php" instead of "qcld-cross-sell-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected24,764 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS141,34921515,036
JavaScript121,2776774,986
SVG1002,671
PHP95421532,071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.50
▷ Minimum class complexity7.00
▷ Maximum class complexity26.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants3
▷ Global constants3100.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
26 PNG files occupy 0.41MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
qc-support-promo-page/images/feature01.png6.14KB2.76KB▼ 55.04%
qc-support-promo-page/images/feature02.png5.13KB2.39KB▼ 53.37%
qc-support-promo-page/images/icon.png31.48KB11.39KB▼ 63.81%
assets/images/placeholder.png2.75KB2.92KB0.00%
qc-support-promo-page/images/icon-pack/service-04.png1.67KB0.90KB▼ 46.47%