94% wps-continue-shopping

Code Review | WooCommerce Continue shopping

WordPress plugin WooCommerce Continue shopping scored 94% from 54 tests.

About plugin

  • Plugin page: wps-continue-shop...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.2
  • WordPress version: 5.9.2
  • First release: Jan 21, 2018
  • Latest release: Jan 21, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: frankschrijvers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 501 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.94ms] 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.53 ▲0.0256.22 ▲6.57
Dashboard /wp-admin3.42 ▲0.0133.23 ▼0.97
Posts /wp-admin/edit.php3.65 ▲0.0138.47 ▲1.18
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.50 ▼1,173.83
Media Library /wp-admin/upload.php3.30 ▲0.0125.40 ▲1.88

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Continue shopping
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1715.87 ▲0.206.45 ▲0.702.32 ▲0.06
Dashboard /wp-admin2,892 ▲346.10 ▼0.16114.41 ▼17.49154.01 ▼3.65
Posts /wp-admin/edit.php2,691 ▲63.22 ▼0.0162.10 ▼2.76138.17 ▼4.19
Add New Post /wp-admin/post-new.php1,717 ▲5621.08 ▲4.77457.78 ▲43.80153.10 ▲4.24
Media Library /wp-admin/upload.php1,701 ▲35.54 ▲0.01146.33 ▲8.00195.49 ▲6.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wps-continue-shopping/wps-continue-shopping.php:11

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 Passed 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
6 plugin tags: continue shopping, woocommerce continue shopping, shop, woocommerce, ecommerce...

wps-continue-shopping/wps-continue-shopping.php Passed 13 tests

Analyzing the main PHP file in "WooCommerce Continue shopping" version 0.1
105 characters long description:
Change the cart 'continue shopping' link to a link to the product category instead of the product itself.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin39 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2231739

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin