84% woo-lookbook

Code Review | LookBook for WooCommerce - Shoppable with Product Tags

WordPress plugin LookBook for WooCommerce - Shoppable with Product Tags scored 84% from 54 tests.

About plugin

  • Plugin page: woo-lookbook
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2018
  • Latest release: Sep 5, 2023
  • Number of updates: 59
  • Update frequency: every 34.0 days
  • Top authors: mrt3vn (50.85%)thanhtd (20.34%)vietmike (16.95%)kimvt1991 (13.56%)dragonlord47 (3.39%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 13,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.13ms] Passed 4 tests

Server-side resources used by LookBook for WooCommerce - Shoppable with Product Tags
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.93 ▼6.88
Dashboard /wp-admin3.31 ▲0.0146.66 ▼4.06
Posts /wp-admin/edit.php3.43 ▲0.0746.50 ▼0.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.29 ▲3.08
Media Library /wp-admin/upload.php3.24 ▲0.0136.54 ▲2.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LookBook for WooCommerce - Shoppable with Product Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.34 ▼0.971.58 ▼0.4239.85 ▼12.03
Dashboard /wp-admin2,215 ▲275.82 ▼0.0494.36 ▼19.5039.73 ▼8.96
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0439.51 ▲3.1035.68 ▼0.07
Add New Post /wp-admin/post-new.php1,551 ▲3718.31 ▲0.76602.20 ▼45.6748.92 ▼5.10
Media Library /wp-admin/upload.php1,397 ▲94.26 ▲0.1594.17 ▼2.1142.01 ▼3.16

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphCoverPhoto.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/PseudoRandomString/UrandomPseudoRandomStringGenerator.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/PseudoRandomString/McryptPseudoRandomStringGenerator.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphGroup.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/HttpClients/FacebookGuzzleHttpClient.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/Exceptions/FacebookAuthorizationException.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphNode.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\FacebookRequest' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/FacebookBatchRequest.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphAlbum.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphObjectFactory.php:36

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
9 plugin tags: woocommerce lookbook, ecommerce, woo commerce instagram, woocommerce instagram shop, woocommerce instagram shopping...

woo-lookbook/woo-lookbook.php Passed 13 tests

"LookBook for WooCommerce - Shoppable with Product Tags" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Allows you to create realistic lookbooks of your products. Help your customers visualize what they purchase from you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin25,081 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript171,68861812,778
PHP911,5056,2098,462
CSS263251502,297
SVG3041,261
PO File1125143283

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.28
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces11
Interfaces5
Traits1
Classes81
▷ Abstract classes11.23%
▷ Concrete classes8098.77%
▷ Final classes00.00%
Methods664
▷ Static methods213.16%
▷ Public methods60190.51%
▷ Protected methods365.42%
▷ Private methods274.07%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants34
▷ Global constants1235.29%
▷ Class constants2264.71%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
css/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%
images/button.png2.99KB2.00KB▼ 33.31%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%