84% up-sell-pro

Code Review | LavBoost Lite - All in One Woocommerce Related Products

WordPress plugin LavBoost Lite - All in One Woocommerce Related Products scored84%from 54 tests.

About plugin

  • Plugin page: up-sell-pro
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2021
  • Latest release: Sep 21, 2023
  • Number of updates: 23
  • Update frequency: every 27.7 days
  • Top authors: alicetheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /919 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by LavBoost Lite - All in One Woocommerce Related Products
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.29 ▼3.39
Dashboard /wp-admin3.33 ▼0.0246.94 ▼21.31
Posts /wp-admin/edit.php3.38 ▲0.0251.55 ▲4.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.95 ▼2.24
Media Library /wp-admin/upload.php3.26 ▲0.0235.14 ▼0.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 307 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for LavBoost Lite - All in One Woocommerce Related Products
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.44 ▲0.041.73 ▲0.1140.51 ▼1.26
Dashboard /wp-admin2,223 ▲354.85 ▼1.03108.03 ▼10.7043.27 ▲0.04
Posts /wp-admin/edit.php2,102 ▲132.04 ▲0.0140.79 ▲4.9936.91 ▲5.12
Add New Post /wp-admin/post-new.php1,542 ▲2823.33 ▲5.53676.24 ▲28.5850.20 ▼7.90
Media Library /wp-admin/upload.php1,402 ▲114.23 ▲0.0394.55 ▼4.8442.13 ▼0.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/up-sell-pro/admin/partials/lav-boost-admin-display.php
    • > /wp-content/plugins/up-sell-pro/public/partials/lav-boost-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
5 plugin tags: donation, upsell, woocommerce, boost sales, order bump

up-sell-pro/up-sell-pro.php 92% from 13 tests

The main PHP file in "LavBoost Lite - All in One Woocommerce Related Products" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

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
Success! There were no dangerous files found in this plugin48,311 lines of code in 224 files:
LanguageFilesBlank linesComment linesLines of code
PHP1283,7641,67615,367
CSS992761910,100
JavaScript131,4967798,194
Sass441,252218,025
PO File203,1983,5916,500
Markdown129069
SVG80251
JSON1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity22.90
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity5.35
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces7
Interfaces2
Traits1
Classes101
▷ Abstract classes43.96%
▷ Concrete classes9796.04%
▷ Final classes00.00%
Methods529
▷ Static methods6412.10%
▷ Public methods51797.73%
▷ Protected methods30.57%
▷ Private methods91.70%
Functions30
▷ Named functions2790.00%
▷ Anonymous functions310.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
public/img/checklist.png4.05KB0.69KB▼ 82.96%