10% wcf-save-and-share-cart-for-woocommerce

Code Review | WCF Save & Share Cart for WooCommerce

WordPress plugin WCF Save & Share Cart for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: wcf-save-and-shar...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Nov 15, 2022
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: wecode123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /431 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php+18
    Undefined variable: post_information

Server metrics [RAM: ▼1.24MB] [CPU: ▼48.16ms] Passed 4 tests

Server-side resources used by WCF Save & Share Cart for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7312.66 ▼49.41
Dashboard /wp-admin2.77 ▼0.5314.76 ▼33.21
Posts /wp-admin/edit.php2.77 ▼0.5816.78 ▼32.39
Add New Post /wp-admin/post-new.php2.77 ▼3.1215.27 ▼77.64
Media Library /wp-admin/upload.php2.77 ▼0.4616.34 ▼17.60

Server storage [IO: ▲0.30MB] [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: 6 new files
Database: 1 new table, 6 new options
New tables
wp_wcf_custom_cart
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

WCF Save & Share Cart for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.20 ▼1.171.86 ▼0.3435.85 ▼20.67
Dashboard /wp-admin2,206 ▲154.87 ▼1.03107.49 ▲4.8442.16 ▲0.11
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.06 ▲1.1736.49 ▲5.02
Add New Post /wp-admin/post-new.php1,543 ▲1023.12 ▼0.16634.36 ▼26.7057.72 ▲0.57
Media Library /wp-admin/upload.php1,391 ▼04.26 ▲0.0595.15 ▼2.1741.02 ▼3.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php+169
    Undefined index: wcf-cart
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wcf_custom_cart
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/modal.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php:11

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: share cart, cart sharing, save cart, woocommerce

wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php 92% from 13 tests

The main file in "WCF Save & Share Cart for WooCommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wcf-save-and-share-cart-for-woocommerce.php" instead of "wcf_save_share_cart.php")

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
There were no executable files found in this plugin217 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP210524214
CSS2092
JavaScript1061

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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 were not PNG files found in your plugin