84% liquid-assets-for-woocommerce

Code Review | Liquid Assets for WooCommerce

WordPress plugin Liquid Assets for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: liquid-assets-for...
  • Plugin version: 1.8.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Aug 26, 2021
  • Number of updates: 5
  • Update frequency: every 10.2 days
  • Top authors: ndeet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /435 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.01MB] [CPU: ▼6.40ms] Passed 4 tests

An overview of server-side resources used by Liquid Assets for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.38 ▼0.16
Dashboard /wp-admin3.33 ▼0.0246.34 ▼12.16
Posts /wp-admin/edit.php3.38 ▲0.0245.72 ▼0.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.12 ▼12.31
Media Library /wp-admin/upload.php3.25 ▲0.0235.73 ▼0.30
Liquid Assets Settings /wp-admin/admin.php?page=wcla-settings3.1929.94

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Liquid Assets for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.231.64 ▼0.0138.40 ▼0.51
Dashboard /wp-admin2,206 ▲215.83 ▼0.0497.66 ▼5.0139.19 ▼1.10
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0233.25 ▼2.0733.25 ▼1.72
Add New Post /wp-admin/post-new.php1,533 ▲1423.10 ▲0.00654.57 ▲7.2762.13 ▲15.27
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.0694.01 ▼19.0440.71 ▼8.81
Liquid Assets Settings /wp-admin/admin.php?page=wcla-settings8622.0222.5724.01

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wcla-settings
    • > Notice in wp-content/plugins/liquid-assets-for-woocommerce/includes/wcla-admin-settings.php+124
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: cryptocurrency, liquid network, woocommerce, bitcoin

liquid-assets-for-woocommerce/liquid-assets-for-woocommerce.php 92% from 13 tests

The main PHP file in "Liquid Assets for WooCommerce" ver. 1.8.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin417 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP368219417

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin