89% edd-upsell-cross-sell-in-cart-and-popup

Code Review | Upsell Cross-sell In Cart and Popup for EDD

WordPress plugin Upsell Cross-sell In Cart and Popup for EDD scored89%from 54 tests.

About plugin

  • Plugin page: edd-upsell-cross-...
  • Plugin version: 0.1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Apr 20, 2022
  • Latest release: Aug 6, 2022
  • Number of updates: 23
  • Update frequency: every 4.7 days
  • Top authors: tentenbiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.01ms] Passed 4 tests

A check of server-side resources used by Upsell Cross-sell In Cart and Popup for EDD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.50 ▼1.28
Dashboard /wp-admin3.31 ▲0.0062.68 ▲11.58
Posts /wp-admin/edit.php3.36 ▲0.0049.14 ▼6.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.88 ▼22.19
Media Library /wp-admin/upload.php3.23 ▲0.0038.86 ▲1.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Upsell Cross-sell In Cart and Popup for EDD
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.151.78 ▼0.0045.50 ▲0.95
Dashboard /wp-admin2,198 ▲215.58 ▲0.0483.30 ▼11.5939.42 ▼2.30
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0436.78 ▼0.0532.79 ▼2.88
Add New Post /wp-admin/post-new.php1,528 ▲223.48 ▲0.35677.06 ▲36.4054.92 ▲0.97
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0894.86 ▼5.7841.80 ▲0.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: cart, checkout, upsell, edd, ecommerce...

edd-upsell-cross-sell-in-cart-and-popup/index.php 85% from 13 tests

"Upsell Cross-sell In Cart and Popup for EDD" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("edd-upsell-cross-sell-in-cart-and-popup.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin974 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP519512800
JavaScript515188
CSS516086

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/added-to-cart-small.png1.99KB1.67KB▼ 15.87%
images/add-to-cart-small.png1.69KB1.43KB▼ 14.94%
images/add-to-cart.png7.03KB5.09KB▼ 27.51%
images/add-to-cart-white.png2.08KB1.76KB▼ 15.31%
images/download_icon_default.png2.18KB1.29KB▼ 40.78%