78% helper-lite-for-pagespeed

Code Review | Helper Lite for PageSpeed

WordPress plugin Helper Lite for PageSpeed scored 78% from 54 tests.

About plugin

  • Plugin page: helper-lite-for-p...
  • Plugin version: 3.1.6.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2020
  • Latest release: Jun 23, 2023
  • Number of updates: 33
  • Update frequency: every 32.6 days
  • Top authors: seojacky (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active / 33,215 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▼3.48ms] 75% from 4 tests

A check of server-side resources used by Helper Lite for PageSpeed
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,495.79ms on /wp-admin/admin.php?page=wp-booster)
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3939.19 ▼7.73
Dashboard /wp-admin3.77 ▲0.4653.68 ▲8.04
Posts /wp-admin/edit.php3.82 ▲0.4657.15 ▲6.13
Add New Post /wp-admin/post-new.php6.26 ▲0.3788.90 ▼8.37
Media Library /wp-admin/upload.php3.61 ▲0.3737.82 ▼3.95
WP Booster /wp-admin/admin.php?page=wp-booster3.811,495.79
🛠️PageSpeed Helper /wp-admin/admin.php?page=hlfp-settings3.6139.80

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 11 new options
New WordPress options
hlfp_help
hlfp_other_plugins
widget_theysaidso_widget
db_upgraded
can_compress_scripts
hlfp_scripts
widget_recent-comments
hlfp_settings
hlfp_images
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Helper Lite for PageSpeed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲19915.02 ▲0.731.70 ▼0.5446.13 ▼5.07
Dashboard /wp-admin2,371 ▲1806.60 ▲1.49135.31 ▲23.72120.32 ▲74.67
Posts /wp-admin/edit.php2,310 ▲2213.63 ▲1.5958.18 ▲6.6987.65 ▲47.49
Add New Post /wp-admin/post-new.php1,559 ▲1823.16 ▼0.03642.60 ▼63.2337.23 ▼18.72
Media Library /wp-admin/upload.php1,449 ▲614.38 ▲0.1885.35 ▼25.5681.07 ▲32.99
WP Booster /wp-admin/admin.php?page=wp-booster1,8563.6555.16106.55
🛠️PageSpeed Helper /wp-admin/admin.php?page=hlfp-settings1,8473.5752.70105.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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: 11 options
    • widget_recent-posts
    • widget_recent-comments
    • hlfp_help
    • can_compress_scripts
    • hlfp_other_plugins
    • theysaidso_admin_options
    • hlfp_scripts
    • hlfp_images
    • hlfp_settings
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/helper-lite-for-pagespeed/helper-lite-for-pagespeed.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Karenina\\HelperLightForPageSpeed\\Filter\\BaseFilter' not found in wp-content/plugins/helper-lite-for-pagespeed/src/filter/class-buffer-filter.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Karenina\\HelperLightForPageSpeed\\Filter\\BaseFilter' not found in wp-content/plugins/helper-lite-for-pagespeed/src/filter/class-light-filter.php:17

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

helper-lite-for-pagespeed/helper-lite-for-pagespeed.php 92% from 13 tests

"Helper Lite for PageSpeed" version 3.1.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 236 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,130 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP204441,1751,989
PO File21820100
JavaScript29036
JSON1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.69
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods118
▷ Static methods1916.10%
▷ Public methods10891.53%
▷ Protected methods32.54%
▷ Private methods75.93%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon_coffe_logo.png74.07KB24.04KB▼ 67.54%
img/karenina.png21.21KB8.42KB▼ 60.33%