77% smart-wishlist-for-more-convert

Code Review | WooCommerce Wishlist, Low Stock & Back-in-Stock Waitlist, Save for Later, Bundle Builder, Email & So More!(All-in-One Marketing)

WordPress plugin WooCommerce Wishlist, Low Stock & Back-in-Stock Waitlist, Save for Later, Bundle Builder, Email & So More!(All-in-One Marketing) scored77%from 54 tests.

About plugin

  • Plugin page: smart-wishlist-fo...
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 19, 2021
  • Latest release: Nov 12, 2023
  • Number of updates: 454
  • Update frequency: every 1.9 days
  • Top authors: moreconvert (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

2,000+ active /21,616 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.28MB] [CPU: ▼3.19ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Wishlist, Low Stock & Back-in-Stock Waitlist, Save for Later, Bundle Builder, Email & So More!(All-in-One Marketing)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3139.72 ▼0.50
Dashboard /wp-admin3.62 ▲0.2847.75 ▼13.51
Posts /wp-admin/edit.php3.68 ▲0.3247.56 ▲0.89
Add New Post /wp-admin/post-new.php6.14 ▲0.2692.89 ▲2.35
Media Library /wp-admin/upload.php3.49 ▲0.2634.00 ▲0.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 952 new files
Database: no new tables, 10 new options
New WordPress options
wlfmc_wishlist_activation_date
smart-wishlist-for-more-convert_tracking_notice
widget_theysaidso_widget
theysaidso_admin_options
wlfmc-finish-wizard-notice
wlfmc-skip-wizard-notice
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WooCommerce Wishlist, Low Stock & Back-in-Stock Waitlist, Save for Later, Bundle Builder, Email & So More!(All-in-One Marketing): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲6014.27 ▼0.441.78 ▼0.0844.31 ▼5.63
Dashboard /wp-admin2,201 ▲245.64 ▲0.0389.81 ▼4.7838.61 ▼3.11
Posts /wp-admin/edit.php2,110 ▲101.94 ▲0.0037.95 ▲2.5933.64 ▼0.76
Add New Post /wp-admin/post-new.php1,532 ▲623.37 ▲0.02616.74 ▼16.5450.65 ▼0.05
Media Library /wp-admin/upload.php1,406 ▲34.16 ▼0.0396.83 ▼1.1941.78 ▼0.72

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • wlfmc_wishlist_activation_date
    • db_upgraded
    • wlfmc-skip-wizard-notice
    • theysaidso_admin_options
    • wlfmc-finish-wizard-notice
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/smart-wishlist-for-more-convert/vendor/enshrined/svg-sanitize/src/svg-scanner.php
    • > /wp-content/plugins/smart-wishlist-for-more-convert/lib/tcpdf/tools/tcpdf_addfont.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function blocksy_default_akg() in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/blocksy/wishlist-counter/view.php:19
    • > PHP Warning
      array_values() expects parameter 1 to be array, null given in wp-content/plugins/smart-wishlist-for-more-convert/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kadence_Wlfmc\\add_filter() in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/kadence/class-header-wishlist.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HFG\\component_setting() in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/neve/templates/component-wishlist-counter.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/smart-wishlist-for-more-convert/vendor/enshrined/svg-sanitize/src/data/AllowedTags.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kadence_Wlfmc\\do_action() in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/kadence/templates/mobile-wishlist.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kadence\\Theme_Customizer' not found in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/kadence/header-wishlist-options.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'HFG\\Core\\Components\\Abstract_Component' not found in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/neve/components/class-wishlist-counter.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/blocksy/wishlist-counter/config.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kadence_Wlfmc\\do_action() in wp-content/plugins/smart-wishlist-for-more-convert/includes/integrations/kadence/templates/wishlist.php:18

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 90% from 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
10 plugin tags: back-in-stock, marketing, out of stock, woocommerce wishlist, bundle builder...

smart-wishlist-for-more-convert/smart-wishlist-for-more-convert.php 77% from 13 tests

Analyzing the main PHP file in "WooCommerce Wishlist, Low Stock & Back-in-Stock Waitlist, Save for Later, Bundle Builder, Email & So More!(All-in-One Marketing)" version 1.7.0
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.7")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 202 characters long)

Code Analysis 95% from 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
No dangerous file extensions were detected107,803 lines of code in 534 files:
LanguageFilesBlank linesComment linesLines of code
PHP2497,63024,21685,356
CSS151,7122729,545
JavaScript231,1436406,800
SVG235156935,032
PO File3216275513
Markdown31340308
JSON500179
XML10070

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,415)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 500)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity131.82
▷ Minimum class complexity1.00
▷ Maximum class complexity4,415.00
Average method complexity7.07
▷ Minimum method complexity1.00
▷ Maximum method complexity500.00
Code structure
Namespaces10
Interfaces2
Traits0
Classes74
▷ Abstract classes00.00%
▷ Concrete classes74100.00%
▷ Final classes00.00%
Methods1,644
▷ Static methods24214.72%
▷ Public methods1,22874.70%
▷ Protected methods32819.95%
▷ Private methods885.35%
Functions342
▷ Named functions32294.15%
▷ Anonymous functions205.85%
Constants119
▷ Global constants11294.12%
▷ Class constants75.88%
▷ Public constants571.43%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
301 PNG files occupy 1.41MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/frontend/images/social/square/black/instagram.png1.75KB1.68KB▼ 3.86%
assets/frontend/images/social/square/grey/location.png2.75KB1.71KB▼ 37.67%
assets/backend/images/dashboard/automation/automation.png73.52KB27.31KB▼ 62.85%
assets/frontend/images/social/default/black/facebook.png0.71KB1.02KB0.00%
assets/frontend/images/social/outlined_square/color/twitter.png1.98KB1.91KB▼ 3.64%