84% lcp-booster-for-woocommerce

Code Review | LCP Booster for WooCommerce

WordPress plugin LCP Booster for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: lcp-booster-for-w...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 2, 2021
  • Latest release: Jul 2, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: slobodanmanic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active / 895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.30ms] Passed 4 tests

Analyzing server-side resources used by LCP Booster for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.94 ▲5.33
Dashboard /wp-admin3.31 ▲0.0047.39 ▼3.73
Posts /wp-admin/edit.php3.36 ▲0.0046.58 ▲0.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.35 ▼16.57
Media Library /wp-admin/upload.php3.23 ▲0.0034.32 ▼1.44

Server storage [IO: ▲0.04MB] [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
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LCP Booster for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.74 ▲0.362.03 ▼0.1042.37 ▼7.27
Dashboard /wp-admin2,206 ▲215.80 ▲0.8997.27 ▼18.5537.28 ▼9.72
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0434.89 ▼2.2131.07 ▼5.00
Add New Post /wp-admin/post-new.php1,533 ▼923.13 ▲5.17657.29 ▲17.0574.27 ▲20.44
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.0194.82 ▼4.1740.60 ▼1.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lcp-booster-for-woocommerce/lcp-booster-for-woocommerce.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: core web vitals, woocommerce, largest contentful paint, lcp, page experience

lcp-booster-for-woocommerce/lcp-booster-for-woocommerce.php 92% from 13 tests

The primary PHP file in "LCP Booster for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182139

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.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