67% core-web-vitals-pagespeed-booster

Code Review | Core Web Vitals & PageSpeed Booster

WordPress plugin Core Web Vitals & PageSpeed Booster scored67%from 54 tests.

About plugin

  • Plugin page: core-web-vitals-p...
  • Plugin version: 1.0.16
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 51
  • Update frequency: every 15.5 days
  • Top authors: magazine3 (68.63%)zabi09 (13.73%)ahmedkaludi (11.76%)mohammed_kaludi (11.76%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /38,588 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.85MB] [CPU: ▲4.99ms] Passed 4 tests

Server-side resources used by Core Web Vitals & PageSpeed Booster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.9081.38 ▲37.47
Dashboard /wp-admin4.14 ▲0.8450.04 ▼0.67
Posts /wp-admin/edit.php4.24 ▲0.8854.17 ▲10.53
Add New Post /wp-admin/post-new.php6.74 ▲0.8693.61 ▲4.45
Media Library /wp-admin/upload.php4.06 ▲0.8340.23 ▲5.66

Server storage [IO: ▲14.02MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • There were 7 files (133.28KB) illegally modified outside of "wp-content/plugins/core-web-vitals-pagespeed-booster/" and "wp-content/uploads/"
    • (new file) wp-content/gravatars/d7a973c7dab26985da5f961be7b74480
    • (new file) wp-content/cache/cwvpsb/css/553f6978a85cdddde528416e8ae02520.css
    • (new file) wp-content/cache/cwvpsb/fonts/fonts/.empty
    • (new file) wp-content/cache/cwvpsb/css/b984edcdfe562d3f512e5f50c1f1a1ed.css
    • (new file) wp-content/gravatars/dda8de772f53e64b26129d7f632ad1a3
    • (new file) wp-content/cache/cwvpsb/css/0bba90111c2f173cff13aa7eb4f94889.css
    • (new file) wp-content/cache/cwvpsb/css/d44c34cfed9d779feaaeb753fb76c2f0.css
Filesystem: 743 new files
Database: 1 new table, 9 new options
New tables
wp_cwvpb_critical_urls
New WordPress options
save_terms_offset
category_children
widget_recent-posts
widget_recent-comments
save_posts_offset
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Core Web Vitals & PageSpeed Booster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,775 ▲1314.24 ▼0.482.50 ▲0.8142.77 ▼3.01
Dashboard /wp-admin2,229 ▲615.59 ▼0.0193.85 ▼7.8940.21 ▼8.57
Posts /wp-admin/edit.php1,624 ▼4761.97 ▼0.0242.05 ▲7.8435.44 ▼0.02
Add New Post /wp-admin/post-new.php1,754 ▲22823.56 ▲0.06698.83 ▲8.6639.00 ▼23.27
Media Library /wp-admin/upload.php1,440 ▲434.22 ▼0.03106.27 ▲6.4544.46 ▲1.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_cwvpb_critical_urls
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • save_terms_offset
    • widget_theysaidso_widget
    • category_children
    • save_posts_offset
    • theysaidso_admin_options
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/core-web-vitals-pagespeed-booster/includes/vendor/sabberworm/php-css-parser/tests/quickdump.php
  • 278× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Cache\\CacheInterface' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/Cache/FilesystemCache.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/Node/ImportNode.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/Node/BodyNode.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/TokenParser/ApplyTokenParser.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\SourceException' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/includes/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/OutputException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/Node/Expression/Binary/AddBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\FileSystemProblemsException' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/includes/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/FileSystemProblems/CreateDestinationFileException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/Extension/StagingExtension.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/Node/Expression/Test/DefinedTest.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/core-web-vitals-pagespeed-booster/css-extractor/vendor/twig/twig/src/TokenParser/AutoEscapeTokenParser.php:22

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

core-web-vitals-pagespeed-booster/core-web-vitals-pagespeed-booster.php 85% from 13 tests

The principal PHP file in "Core Web Vitals & PageSpeed Booster" v. 1.0.16 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin45,005 lines of code in 698 files:
LanguageFilesBlank linesComment linesLines of code
PHP5947,21711,69738,496
Markdown2999203,106
JavaScript6116381,146
JSON14001,118
CSS468926779
YAML4570221
PO File1252590
XML30039
reStructuredText18510

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity8.92
▷ Minimum class complexity1.00
▷ Maximum class complexity555.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces72
Interfaces24
Traits9
Classes541
▷ Abstract classes244.44%
▷ Concrete classes51795.56%
▷ Final classes5610.83%
Methods2,318
▷ Static methods31013.37%
▷ Public methods1,93183.30%
▷ Protected methods1837.89%
▷ Private methods2048.80%
Functions292
▷ Named functions23881.51%
▷ Anonymous functions5418.49%
Constants136
▷ Global constants3525.74%
▷ Class constants10174.26%
▷ Public constants10099.01%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/sort_desc.png0.15KB0.25KB0.00%
includes/vendor/rosell-dk/webp-convert/docs/v2.0/converting/dice.png231.30KB58.53KB▼ 74.69%
images/cwv-main-bg.png42.71KB42.75KB0.00%
includes/admin/images/cwv-main-bg.png42.71KB42.75KB0.00%
includes/admin/images/sort_asc.png0.16KB0.25KB0.00%