89% very-simple-woocommerce-upsell-popup

Code Review | Woocommerce Upsell / cross sell Popup plugin

WordPress plugin Woocommerce Upsell / cross sell Popup plugin scored89%from 54 tests.

About plugin

  • Plugin page: very-simple-wooco...
  • Plugin version: 1.8.9
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2019
  • Latest release: Jun 29, 2023
  • Number of updates: 127
  • Update frequency: every 11.4 days
  • Top authors: tentenbiz (63.78%)upsellpopup (37.01%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /26,935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Woocommerce Upsell / cross sell Popup plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.53 ▼4.96
Dashboard /wp-admin3.31 ▼0.0446.95 ▼19.91
Posts /wp-admin/edit.php3.36 ▲0.0048.17 ▲0.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.90 ▼10.72
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▼4.44

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

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

Browser metrics Passed 4 tests

Woocommerce Upsell / cross sell Popup plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.22 ▼0.131.79 ▲0.1141.00 ▼1.33
Dashboard /wp-admin2,198 ▲215.63 ▼0.0293.96 ▼1.0540.78 ▼3.00
Posts /wp-admin/edit.php2,100 ▼02.16 ▲0.2139.95 ▲2.3235.57 ▼0.91
Add New Post /wp-admin/post-new.php1,526 ▼223.49 ▲0.37663.04 ▼28.9157.04 ▲4.05
Media Library /wp-admin/upload.php1,400 ▼34.11 ▼0.0797.69 ▼3.1244.19 ▲1.83

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

very-simple-woocommerce-upsell-popup/index.php 77% from 13 tests

The main PHP script in "Woocommerce Upsell / cross sell Popup plugin" version 1.8.9 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("very-simple-woocommerce-upsell-popup.php" instead of "index.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0.0" instead of "6.0.0")

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 plugin3,581 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP121,003833,314
JavaScript11407199
CSS412168

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/images/screenshort.png95.92KB36.15KB▼ 62.32%
templates/images/tick-mark.png1.33KB0.95KB▼ 28.42%
templates/images/placeholder.png13.63KB5.34KB▼ 60.80%
templates/images/tick-mark1.png1.87KB1.33KB▼ 28.91%
templates/images/color.png23.61KB13.65KB▼ 42.18%