90% webd-woocommerce-crosell-popup

Code Review | Upsells add to Cart Ajax Modal Popup | Boost Woocommerce Cross Sales

WordPress plugin Upsells add to Cart Ajax Modal Popup | Boost Woocommerce Cross Sales scored90%from 54 tests.

About plugin

  • Plugin page: webd-woocommerce-...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Jan 26, 2023
  • Number of updates: 21
  • Update frequency: every 84.4 days
  • Top authors: taz_bambu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.51ms] Passed 4 tests

A check of server-side resources used by Upsells add to Cart Ajax Modal Popup | Boost Woocommerce Cross Sales
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.98 ▼1.66
Dashboard /wp-admin3.37 ▲0.0250.79 ▼14.67
Posts /wp-admin/edit.php3.48 ▲0.1247.52 ▼4.11
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.66 ▼9.61
Media Library /wp-admin/upload.php3.29 ▲0.0641.30 ▲2.15
Woocommerce Cross Sales Popup /wp-admin/admin.php?page=webd-woocommerce-crosell-popup3.2634.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
woocommerce_enable_ajax_add_to_cart
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Upsells add to Cart Ajax Modal Popup | Boost Woocommerce Cross Sales
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.94 ▼0.6910.04 ▲8.4342.65 ▼2.31
Dashboard /wp-admin2,222 ▲415.94 ▲0.2995.82 ▼15.0442.00 ▼2.23
Posts /wp-admin/edit.php2,126 ▲232.29 ▲0.2938.71 ▼0.7835.46 ▼1.35
Add New Post /wp-admin/post-new.php1,545 ▲1923.10 ▲0.25675.46 ▼5.6036.85 ▼15.27
Media Library /wp-admin/upload.php1,421 ▲244.43 ▲0.24101.73 ▼26.4041.75 ▼19.73
Woocommerce Cross Sales Popup /wp-admin/admin.php?page=webd-woocommerce-crosell-popup1,0161.8731.0929.95

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • woocommerce_enable_ajax_add_to_cart
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: add to cart popup woocommerce, cart popup, woocommerce cart popup, woocommerce cart, boost sales...

webd-woocommerce-crosell-popup/webd-woocommerce-crosell-popup.php 92% from 13 tests

"Upsells add to Cart Ajax Modal Popup | Boost Woocommerce Cross Sales" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,172 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP27426224
CSS3337178
JavaScript226762
PO File13523

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity7.00
▷ Minimum class complexity4.00
▷ Maximum class complexity10.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/WebdWoocommerceCrosellPopup.png7.15KB6.88KB▼ 3.85%