78% cls-lcp-issues-fix

Code Review | WP Google Core Web Vitals Fix

WordPress plugin WP Google Core Web Vitals Fix scored78%from 54 tests.

About plugin

  • Plugin page: cls-lcp-issues-fix
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2022
  • Latest release: Apr 26, 2023
  • Number of updates: 4
  • Update frequency: every 138.5 days
  • Top authors: roshellco (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,017 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.51ms] Passed 4 tests

Analyzing server-side resources used by WP Google Core Web Vitals Fix
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.22 ▲3.23
Dashboard /wp-admin3.39 ▲0.0546.79 ▼9.84
Posts /wp-admin/edit.php3.44 ▲0.0943.56 ▼0.70
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.45 ▼14.73
Media Library /wp-admin/upload.php3.32 ▲0.0941.91 ▲7.31
Security Extensions /wp-admin/admin.php?page=plggcwvf_extensions_page3.2632.20
Get Full Version /wp-admin/admin.php?page=plggcwvf_upgrade_redirect3.2831.56

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for WP Google Core Web Vitals Fix
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.43 ▼0.121.78 ▲0.0344.23 ▲2.11
Dashboard /wp-admin2,197 ▲175.06 ▼0.5499.53 ▲9.3171.85 ▲33.05
Posts /wp-admin/edit.php2,118 ▲182.49 ▲0.5532.32 ▼5.1432.58 ▼3.17
Add New Post /wp-admin/post-new.php1,694 ▲16622.50 ▼0.74689.09 ▲27.7930.73 ▼20.82
Media Library /wp-admin/upload.php1,420 ▲174.54 ▲0.3898.29 ▼3.9787.27 ▲42.54
Security Extensions /wp-admin/admin.php?page=plggcwvf_extensions_page7901.9330.5824.89
Get Full Version /wp-admin/admin.php?page=plggcwvf_upgrade_redirect3,4724.9180.3269.61

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=plggcwvf_extensions_page
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'plggcwvf_extensions_page' not found or invalid function name

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cls-lcp-issues-fix/wp-core-web-vitals-optimization.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: google optimization, lcp issue, fid issue fix, fid issue, web vitals fix...

cls-lcp-issues-fix/wp-core-web-vitals-optimization.php 85% from 13 tests

The main file in "WP Google Core Web Vitals Fix" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 298 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("cls-lcp-issues-fix.php" instead of "wp-core-web-vitals-optimization.php")

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
Success! There were no dangerous files found in this plugin3,455 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.24KB0.65KB▼ 47.88%