84% flexible-wishlist

Code Review | Flexible Wishlist for WooCommerce - Ecommerce Wishlist & Save for later

WordPress plugin Flexible Wishlist for WooCommerce - Ecommerce Wishlist & Save for later scored84%from 54 tests.

About plugin

  • Plugin page: flexible-wishlist
  • Plugin version: 1.2.10
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 28, 2022
  • Latest release: Oct 9, 2023
  • Number of updates: 57
  • Update frequency: every 9.3 days
  • Top authors: wpdesk (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /14,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.24ms] Passed 4 tests

An overview of server-side resources used by Flexible Wishlist for WooCommerce - Ecommerce Wishlist & Save for later
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.49 ▼3.09
Dashboard /wp-admin3.40 ▲0.0944.31 ▼2.51
Posts /wp-admin/edit.php3.45 ▲0.0945.76 ▼5.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.07 ▼10.11
Media Library /wp-admin/upload.php3.26 ▲0.0334.54 ▼2.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 443 new files
Database: no new tables, 8 new options
New WordPress options
plugin_activation_flexible-wishlist/flexible-wishlist.php
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
wpdesk_requirements_plugins_data
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flexible Wishlist for WooCommerce - Ecommerce Wishlist & Save for later
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.28 ▼0.101.68 ▼0.0043.10 ▲2.52
Dashboard /wp-admin2,195 ▲185.51 ▼0.1681.64 ▼16.3736.49 ▼9.33
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0938.57 ▲1.0332.31 ▼6.63
Add New Post /wp-admin/post-new.php1,534 ▲822.74 ▼0.74614.55 ▼22.2170.82 ▲15.75
Media Library /wp-admin/upload.php1,394 ▼34.23 ▲0.0598.56 ▼4.1441.04 ▼14.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • plugin_activation_flexible-wishlist/flexible-wishlist.php

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 215× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FlexibleWishlistVendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'FlexibleWishlistVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/flexible-wishlist/src/Service/UserAuthManager.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'FlexibleWishlistVendor\\Codeception\\Lib\\Generator\\Test' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Codeception/Command/AcceptanceTestGenerator.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WPDesk\\FlexibleWishlist\\Settings\\Option\\OptionBase' not found in wp-content/plugins/flexible-wishlist/src/Settings/Option/TextArchiveUrlOption.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FlexibleWishlistVendor\\Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'FlexibleWishlistVendor\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'FlexibleWishlistVendor\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'FlexibleWishlistVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/flexible-wishlist/src/Settings/SettingsPageGenerator.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'FlexibleWishlistVendor\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'FlexibleWishlistVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flexible-wishlist/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ecommerce wishlist, product wishlist, woocommerce wishlist, wishlist, wishlist for woocommerce

flexible-wishlist/flexible-wishlist.php Passed 13 tests

The primary PHP file in "Flexible Wishlist for WooCommerce - Ecommerce Wishlist & Save for later" version 1.2.10 is used by WordPress to initiate all plugin functionality
124 characters long description:
Let your customers create their own multiple and intuitive WooCommerce wishlists and customize them entirely to their needs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin18,302 lines of code in 428 files:
LanguageFilesBlank linesComment linesLines of code
PHP3891,62611,61717,097
JSON1900783
JavaScript10343207
CSS7192131
SVG10059
Markdown25025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.45
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces54
Interfaces57
Traits11
Classes283
▷ Abstract classes144.95%
▷ Concrete classes26995.05%
▷ Final classes10.37%
Methods1,567
▷ Static methods865.49%
▷ Public methods1,24279.26%
▷ Protected methods17511.17%
▷ Private methods1509.57%
Functions60
▷ Named functions1423.33%
▷ Anonymous functions4676.67%
Constants199
▷ Global constants00.00%
▷ Class constants199100.00%
▷ Public constants199100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png88.91KB39.07KB▼ 56.06%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png2.36KB2.43KB0.00%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png2.36KB2.43KB0.00%
assets/img/flexible-wishlist.png12.35KB5.49KB▼ 55.55%
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png2.36KB2.43KB0.00%