78% woolook

Code Review | Woocommerce Blocks - Woolook

WordPress plugin Woocommerce Blocks - Woolook scored 78% from 54 tests.

About plugin

  • Plugin page: woolook
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2019
  • Latest release: Sep 26, 2019
  • Number of updates: 21
  • Update frequency: every 9.9 days
  • Top authors: delabon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.54ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce Blocks - Woolook
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3939.55 ▼4.38
Dashboard /wp-admin3.67 ▲0.3749.91 ▲2.27
Posts /wp-admin/edit.php3.78 ▲0.4352.14 ▲3.82
Add New Post /wp-admin/post-new.php5.20 ▼0.6958.78 ▼31.85
Media Library /wp-admin/upload.php3.59 ▲0.3639.52 ▲5.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Woocommerce Blocks - Woolook: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲15113.94 ▼0.458.09 ▲5.6841.15 ▼9.03
Dashboard /wp-admin2,225 ▲345.87 ▲0.97111.71 ▲1.0745.70 ▲5.22
Posts /wp-admin/edit.php2,111 ▲192.03 ▼0.0241.21 ▼0.6135.23 ▼0.35
Add New Post /wp-admin/post-new.php6,432 ▲4,89920.57 ▼2.69880.20 ▲202.2455.33 ▲2.30
Media Library /wp-admin/upload.php1,410 ▲224.18 ▼0.0196.24 ▼22.2342.52 ▼8.58

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/woolook/includes/views/tabs/general.php
    • > /wp-content/plugins/woolook/includes/views/tabs/changelog.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WOOLOOK_VERSION - assumed 'WOOLOOK_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/panel.php on line 1
    • > PHP Warning
      Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woolook/includes/array-font-list.php:6
    • > PHP Warning
      Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woolook/includes/views/menu.php:7
    • > PHP Warning
      Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woolook/includes/views/menu.php:7
    • > PHP Warning
      Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 74

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
4 plugin tags: woocommerce blocks, woocommerce, woocommerce layout, woocommerce grid

woolook/plugin.php 92% from 13 tests

The principal PHP file in "Woocommerce Blocks - Woolook" v. 1.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woolook.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected5,707 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16546512,244
PHP196663681,944
Sass11253211,193
CSS4396230
Markdown144096

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.83
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods58
▷ Static methods11.72%
▷ Public methods4374.14%
▷ Protected methods1322.41%
▷ Private methods23.45%
Functions13
▷ Named functions00.00%
▷ Anonymous functions13100.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.41MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/panel/block.png108.51KB38.81KB▼ 64.24%
assets/img/layout-1.png69.56KB23.85KB▼ 65.72%
assets/img/panel/add.png59.10KB23.21KB▼ 60.73%
assets/img/panel/gutenberg.png51.75KB19.97KB▼ 61.41%
assets/img/memphis-colorful.png21.45KB10.21KB▼ 52.41%