10% appsell

Code Review | Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles

WordPress plugin Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles scored10%from 54 tests.

About plugin

  • Plugin page: appsell
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: May 12, 2022
  • Latest release: Apr 19, 2023
  • Number of updates: 6
  • Update frequency: every 56.8 days
  • Top authors: appsell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,079 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/appsell/appsell.php+250
    Use of undefined constant appsell_DEBUG - assumed 'appsell_DEBUG' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.41ms] Passed 4 tests

An overview of server-side resources used by Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.08 ▲2.59
Dashboard /wp-admin3.36 ▲0.0153.80 ▼11.98
Posts /wp-admin/edit.php3.41 ▲0.0546.89 ▼4.20
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.08 ▼16.98
Media Library /wp-admin/upload.php3.28 ▲0.0537.85 ▼0.46

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
appsell_api_key
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲17814.13 ▼0.2420.41 ▲18.3045.89 ▲1.18
Dashboard /wp-admin2,205 ▲285.64 ▼0.0386.04 ▼1.7969.82 ▲26.71
Posts /wp-admin/edit.php2,122 ▲222.02 ▼0.0135.41 ▼3.1847.30 ▲9.32
Add New Post /wp-admin/post-new.php1,697 ▲16922.29 ▼0.87718.50 ▲47.4356.98 ▲4.74
Media Library /wp-admin/upload.php1,413 ▲134.20 ▼0.02121.80 ▲4.8549.20 ▼2.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/appsell/appsell.php+250
    Use of undefined constant appsell_DEBUG - assumed 'appsell_DEBUG' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Tags: There are too many tags (22 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (Increase your Average Order Value by showing upsell & cross sell offers for desktop & mobile.) image required
The official readme.txt is a good inspiration

appsell/appsell.php 85% from 13 tests

The main PHP script in "Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin548 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP26314346
CSS1271173
JavaScript13022
SVG1007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 3.44MB with 2.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png370.83KB114.97KB▼ 69.00%
assets/banner-1544x500.png402.72KB75.53KB▼ 81.25%
assets/icon-1200.png142.08KB52.81KB▼ 62.83%
assets/icon-128x128.png6.87KB4.17KB▼ 39.23%
assets/images/AppSell_logo 2.png91.99KB32.96KB▼ 64.17%