83% simple-woocommerce-wishlist

Code Review | Woocommerce simple wishlist

WordPress plugin Woocommerce simple wishlist scored83%from 54 tests.

About plugin

  • Plugin page: simple-woocommerc...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Dec 6, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: querysolutions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.22ms] Passed 4 tests

An overview of server-side resources used by Woocommerce simple wishlist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.49 ▲1.71
Dashboard /wp-admin3.41 ▲0.0748.77 ▼16.16
Posts /wp-admin/edit.php3.52 ▲0.1753.60 ▲2.81
Add New Post /wp-admin/post-new.php5.99 ▲0.1194.81 ▼6.82
Media Library /wp-admin/upload.php3.33 ▲0.1142.32 ▲0.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
wc-qs-wishlist_ver
qs-wishlist_wishlist_page_created
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce simple wishlist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.26 ▼0.734.76 ▲3.0138.66 ▼3.36
Dashboard /wp-admin2,221 ▲154.84 ▼1.06111.84 ▲11.7137.65 ▼3.07
Posts /wp-admin/edit.php2,097 ▼61.99 ▼0.0136.11 ▼6.6533.72 ▼3.44
Add New Post /wp-admin/post-new.php1,545 ▲1423.34 ▲0.13619.84 ▼68.6258.23 ▼13.19
Media Library /wp-admin/upload.php1,397 ▼34.28 ▼0.01106.58 ▼14.6447.06 ▼3.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • qs-wishlist_wishlist_page_created
    • can_compress_scripts
    • db_upgraded
    • wc-qs-wishlist_ver
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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

SRP 50% 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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function qs_show_wishlist() in wp-content/plugins/simple-woocommerce-wishlist/templates/wishlist-page.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function qs_ws_is_on_wishlist() in wp-content/plugins/simple-woocommerce-wishlist/templates/wishlist-add-button.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-woocommerce-wishlist/includes/shortcodes/wishlist-page.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (The wishlist cart page.. generatet by a shortcode [qs_wishlist] can be overriden by template files), #2 (The add to wishlist button - can be overriden in template files), #3 (The add/remove to wishlist button on single product page), #4 (The settings page)
The official readme.txt might help

simple-woocommerce-wishlist/woocommerce-qs-wishlist.php 85% from 13 tests

The main file in "Woocommerce simple wishlist" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-woocommerce-wishlist.php" instead of "woocommerce-qs-wishlist.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin1,037 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP11233446722
JavaScript2506165
Sass171146
CSS2002
SVG2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.75
▷ Minimum class complexity4.00
▷ Maximum class complexity28.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods1229.27%
▷ Public methods3482.93%
▷ Protected methods00.00%
▷ Private methods717.07%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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