83% liquid-blocks

Code Review | LIQUID BLOCKS GALLERY 37+ Free Designs

WordPress plugin LIQUID BLOCKS GALLERY 37+ Free Designs scored83%from 54 tests.

About plugin

  • Plugin page: liquid-blocks
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: Nov 5, 2022
  • Number of updates: 25
  • Update frequency: every 44.6 days
  • Top authors: lqd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /30,483 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▲1,063.37ms] 50% from 4 tests

An overview of server-side resources used by LIQUID BLOCKS GALLERY 37+ Free Designs
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,315.41ms on /wp-admin/options-general.php?page=liquid-blocks)
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 1,063.37ms on /wp-admin/options-general.php?page=liquid-blocks)
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.94 ▲0.45
Dashboard /wp-admin3.48 ▲0.181,554.99 ▲1,502.96
Posts /wp-admin/edit.php3.54 ▲0.181,369.74 ▲1,320.78
Add New Post /wp-admin/post-new.php5.41 ▼0.481,755.41 ▲1,653.66
Media Library /wp-admin/upload.php3.35 ▲0.121,461.99 ▲1,429.30
LIQUID BLOCKS /wp-admin/options-general.php?page=liquid-blocks3.321,315.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LIQUID BLOCKS GALLERY 37+ Free Designs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.58 ▼1.224.74 ▲2.8038.55 ▼11.40
Dashboard /wp-admin2,210 ▲224.81 ▼0.0799.71 ▼13.6339.04 ▼4.05
Posts /wp-admin/edit.php2,096 ▲72.08 ▲0.0734.27 ▼2.6133.47 ▼0.50
Add New Post /wp-admin/post-new.php1,773 ▲25921.61 ▲3.98689.84 ▼22.0731.65 ▼35.09
Media Library /wp-admin/upload.php1,395 ▲74.11 ▼0.1292.30 ▼21.5940.60 ▼11.40
LIQUID BLOCKS /wp-admin/options-general.php?page=liquid-blocks1,0702.0525.5336.58

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/liquid-blocks/liquid-blocks.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can take inspiration from this readme.txt

liquid-blocks/liquid-blocks.php Passed 13 tests

"LIQUID BLOCKS GALLERY 37+ Free Designs" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
A magic tool to master WordPress blocks.

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
No dangerous file extensions were detected4,544 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON3002,783
JavaScript33112942
PHP22535395
CSS2910326
PO File1527098

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.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
41 compressed PNG files occupy 0.61MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/CTA/2.png9.25KB8.85KB▼ 4.37%
images/Price/3.png13.28KB13.00KB▼ 2.10%
images/Headlines/8.png18.81KB18.39KB▼ 2.20%
images/Layouts/5.png18.12KB16.91KB▼ 6.71%
images/bear.png21.00KB20.73KB▼ 1.28%