89% luway-upsale

Code Review | Luway WooCommerce Upsale

WordPress plugin Luway WooCommerce Upsale scored89%from 54 tests.

About plugin

  • Plugin page: luway-upsale
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 6, 2021
  • Latest release: Nov 15, 2021
  • Number of updates: 18
  • Update frequency: every 0.9 days
  • Top authors: Wayfinder.tm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.29ms] Passed 4 tests

Server-side resources used by Luway WooCommerce Upsale
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.43 ▼4.52
Dashboard /wp-admin3.33 ▼0.0146.80 ▼14.77
Posts /wp-admin/edit.php3.38 ▲0.0245.99 ▼6.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.11 ▼23.75
Media Library /wp-admin/upload.php3.25 ▲0.0240.85 ▲6.69

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Luway WooCommerce Upsale
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3213.25 ▼1.361.66 ▼0.4843.53 ▲0.54
Dashboard /wp-admin2,206 ▲185.77 ▼0.1497.70 ▼16.4138.17 ▼7.41
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0334.45 ▼1.5231.35 ▼3.49
Add New Post /wp-admin/post-new.php6,352 ▲4,83128.06 ▲4.67913.19 ▲236.3157.07 ▲4.55
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0094.70 ▼4.1744.17 ▼0.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Add descriptions for screenshots #1, #2 in luway-upsale/assets to your readme.txt
The official readme.txt might help

luway-upsale/luway-upsale.php Passed 13 tests

The main file in "Luway WooCommerce Upsale" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
31 characters long description:
Upsale products for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin197 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181078
JavaScript415062
JSON20053
Sass1003
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected