94% floating-wishlist-for-woo

Code Review | Floating Wishlist for WooCommerce

WordPress plugin Floating Wishlist for WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: floating-wishlist...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.4.2
  • WordPress version: 5.8.1
  • First release: Jul 1, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 8
  • Update frequency: every 31.6 days
  • Top authors: cayenne (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 761 total downloads

Benchmarks

Plugin footprint Passed 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: ▼143.40ms] 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 /2.91 ▲0.0731.27 ▼5.95
Dashboard /wp-admin3.12 ▲0.0747.65 ▼0.20
Posts /wp-admin/edit.php3.23 ▲0.1346.90 ▲2.96
Add New Post /wp-admin/post-new.php5.48 ▲0.0591.02 ▼570.40
Media Library /wp-admin/upload.php3.06 ▲0.0635.86 ▲6.02

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, no new options

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 /3,835 ▲23916.03 ▲0.4916.37 ▲7.0348.95 ▲0.67
Dashboard /wp-admin2,981 ▲476.11 ▲0.16136.91 ▼7.33102.37 ▼1.82
Posts /wp-admin/edit.php2,755 ▲162.73 ▲0.0167.85 ▲0.0393.93 ▲4.88
Add New Post /wp-admin/post-new.php1,682 ▼118.87 ▲0.57414.60 ▲16.25105.65 ▼2.83
Media Library /wp-admin/upload.php1,821 ▲145.05 ▲0.03150.56 ▲2.58114.77 ▲5.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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: simple, woocommerce, wishlist, woo, bookmark...

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.0.1, 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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • 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")

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