90% wc-products-lazy-loader

Code Review | Product image Lazy Loader for WooCommerce

WordPress plugin Product image Lazy Loader for WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: wc-products-lazy-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2020
  • Latest release: Jun 19, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Rynald0s (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

An overview of server-side resources used by Product image Lazy Loader for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.01 ▼3.51
Dashboard /wp-admin3.31 ▲0.0142.67 ▼8.10
Posts /wp-admin/edit.php3.36 ▲0.0151.74 ▲4.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.52 ▼24.38
Media Library /wp-admin/upload.php3.24 ▲0.0136.22 ▲3.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Product image Lazy Loader for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.28 ▼1.301.58 ▼0.0537.52 ▼10.33
Dashboard /wp-admin2,206 ▲154.85 ▼1.04111.35 ▲7.4742.72 ▼3.45
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0138.56 ▼1.3535.39 ▼0.38
Add New Post /wp-admin/post-new.php1,542 ▼018.19 ▼0.29632.94 ▲20.7554.12 ▼1.81
Media Library /wp-admin/upload.php1,382 ▼64.21 ▼0.0095.38 ▼6.6240.42 ▼2.51

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: lazy loader, shop page images, woocommerce, archive page, product image...

wc-products-lazy-loader/wc-lazy-loader.php 92% from 13 tests

The primary PHP file in "Product image Lazy Loader for WooCommerce" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-products-lazy-loader.php" instead of "wc-lazy-loader.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
No dangerous file extensions were detected31 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101030
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin