83% continue-shopping-for-woocommerce

Code Review | WooCommerce Continue Shopping

WordPress plugin WooCommerce Continue Shopping scored83%from 54 tests.

About plugin

  • Plugin page: continue-shopping...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Oct 27, 2023
  • Number of updates: 17
  • Update frequency: every 158.2 days
  • Top authors: HappyKite (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

7,000+ active /61,580 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.08MB] [CPU: ▼1.88ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Continue Shopping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.07 ▲6.82
Dashboard /wp-admin3.38 ▲0.0841.01 ▼6.75
Posts /wp-admin/edit.php3.50 ▲0.1446.20 ▼2.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.86 ▲1.93
Media Library /wp-admin/upload.php3.30 ▲0.0834.74 ▼0.41

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Continue Shopping
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.171.88 ▲0.2146.67 ▲3.48
Dashboard /wp-admin2,192 ▲185.64 ▼0.0389.26 ▲3.2040.92 ▲1.71
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0339.10 ▲2.8535.73 ▼1.89
Add New Post /wp-admin/post-new.php1,535 ▲718.55 ▼4.58622.59 ▼82.3657.04 ▲0.78
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0198.93 ▼1.4139.56 ▼3.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/continue-shopping-for-woocommerce/classes/class-continue-shopping.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HPY\\CS\\Settings\\add_filter() in wp-content/plugins/continue-shopping-for-woocommerce/classes/class-admin-options.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/continue-shopping-for-woocommerce/woocommerce-continue-shopping.php:34

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 90% 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
4 plugin tags: woocommerce continue shopping, ecommerce, continue shopping, woocommerce

continue-shopping-for-woocommerce/woocommerce-continue-shopping.php 77% from 13 tests

The main file in "WooCommerce Continue Shopping" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "2.4")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("continue-shopping-for-woocommerce.php" instead of "woocommerce-continue-shopping.php")

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
No dangerous file extensions were detected327 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39181327

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity19.00
▷ Minimum class complexity9.00
▷ Maximum class complexity29.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin