84% floating-wishlist-for-woo

Code Review | Floating Wishlist for WooCommerce

WordPress plugin Floating Wishlist for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: floating-wishlist...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Apr 11, 2023
  • Number of updates: 10
  • Update frequency: every 101.4 days
  • Top authors: cayenne (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /1,424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Floating Wishlist for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.90 ▲3.89
Dashboard /wp-admin3.37 ▲0.0243.56 ▼20.09
Posts /wp-admin/edit.php3.48 ▲0.1344.86 ▲4.20
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.90 ▼17.98
Media Library /wp-admin/upload.php3.29 ▲0.0635.29 ▲4.50

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Floating Wishlist for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.39 ▼1.2010.11 ▲8.4938.69 ▼4.13
Dashboard /wp-admin2,199 ▲225.55 ▼0.1185.01 ▼12.0638.18 ▼6.21
Posts /wp-admin/edit.php2,114 ▲142.01 ▼0.0239.75 ▲0.8737.93 ▲2.86
Add New Post /wp-admin/post-new.php1,536 ▲123.21 ▲5.13656.41 ▲32.8057.93 ▼5.18
Media Library /wp-admin/upload.php1,404 ▲14.22 ▼0.00100.01 ▲2.5942.59 ▲0.82

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/floating-wishlist-for-woo/admin/partials/woo-floating-wishlist-admin-display.php
    • > /wp-content/plugins/floating-wishlist-for-woo/public/partials/woo-floating-wishlist-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: e-commerce, woocommerce, woo, bookmark, wishlist...

floating-wishlist-for-woo/woo-floating-wishlist.php 85% from 13 tests

This is the main PHP file of "Floating Wishlist for WooCommerce" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("floating-wishlist-for-woo.php" instead of "woo-floating-wishlist.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin455 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12130581237
CSS21823122
JavaScript3357096

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin