94% wc-continue-shopping-options

Code Review | WC Continue Shopping Options

WordPress plugin WC Continue Shopping Options scored 94% from 54 tests.

About plugin

  • Plugin page: wc-continue-shopp...
  • Plugin version: 3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1.1
  • WordPress version: 5.8.1
  • First release: May 15, 2018
  • Latest release: Apr 17, 2019
  • Number of updates: 32
  • Update frequency: every 11.1 days
  • Top authors: midriffwebservices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 3,116 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by WC Continue Shopping Options
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.07 ▲19.47
Dashboard /wp-admin3.06 ▲0.0044.71 ▲10.27
Posts /wp-admin/edit.php3.11 ▲0.0043.95 ▲3.33
Add New Post /wp-admin/post-new.php5.42 ▼0.0283.62 ▼562.39
Media Library /wp-admin/upload.php3.00 ▲0.0033.06 ▲2.63

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Continue Shopping Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.18 ▲0.646.94 ▼1.6847.27 ▼1.05
Dashboard /wp-admin2,992 ▲615.93 ▼0.12132.84 ▼3.66107.04 ▼4.01
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0164.42 ▲3.2694.51 ▲6.74
Add New Post /wp-admin/post-new.php1,591 ▲1018.74 ▲4.32369.79 ▼12.35108.61 ▼4.07
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02148.17 ▼4.00121.29 ▼2.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-continue-shopping-options/wc-continue-shopping-options.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (WC Continue Shopping setting), #2 (Continue Shopping URL), #3 (Custom Link.)
  • Screenshots: A description for screenshot #0 is required in wc-continue-shopping-options/assets to your readme.txt
The official readme.txt might help

wc-continue-shopping-options/wc-continue-shopping-options.php Passed 13 tests

The main file in "WC Continue Shopping Options" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
127 characters long description:
This plugin will show options for Shop owners to select different redirecting options for customers when they are on Cart Page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192794

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin