79% woo-continue-shopping

Code Review | Woo Continue Shopping

WordPress plugin Woo Continue Shopping scored 79% from 54 tests.

About plugin

  • Plugin page: woo-continue-shop...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.2
  • WordPress version: 6.3.1
  • First release: May 4, 2017
  • Latest release: May 4, 2017
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: wordpressmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.35MB] [CPU: ▼9.36ms] Passed 4 tests

Analyzing server-side resources used by Woo Continue Shopping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.52 ▼34.21
Dashboard /wp-admin3.31 ▲0.0048.49 ▼0.64
Posts /wp-admin/edit.php3.36 ▲0.0047.83 ▲4.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.14 ▼5.91
Media Library /wp-admin/upload.php3.23 ▲0.0036.63 ▲3.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Woo Continue Shopping: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.80 ▲0.491.74 ▲0.0243.93 ▲3.87
Dashboard /wp-admin2,206 ▲184.86 ▼0.04100.95 ▼5.6443.74 ▲3.62
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0435.90 ▼0.6833.45 ▼3.60
Add New Post /wp-admin/post-new.php1,533 ▲523.33 ▲5.08630.95 ▲5.2664.30 ▲11.89
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.02100.69 ▲2.3042.58 ▼0.80

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-continue-shopping/woo-continue-shopping.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/woo-continue-shopping/views/continue_shopping_button.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: woocommerce

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

The main file in "Woo Continue Shopping" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Add continue shopping button to cart page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin31 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24722
CSS1219

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin