90% heliblocks

Code Review | Heliblocks

WordPress plugin Heliblocks scored90%from 54 tests.

About plugin

  • Plugin page: heliblocks
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: Aug 13, 2022
  • Number of updates: 11
  • Update frequency: every 69.6 days
  • Top authors: goiblas (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /1,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Heliblocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.71 ▼4.49
Dashboard /wp-admin3.32 ▼0.0343.76 ▼19.55
Posts /wp-admin/edit.php3.37 ▲0.0145.01 ▼0.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.59 ▼14.09
Media Library /wp-admin/upload.php3.24 ▲0.0133.69 ▼2.55

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Heliblocks: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.18 ▼0.181.70 ▼0.1440.58 ▼0.67
Dashboard /wp-admin2,198 ▲185.62 ▼0.0387.61 ▲0.3839.20 ▼4.29
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0535.98 ▲0.2635.22 ▲1.06
Add New Post /wp-admin/post-new.php6,199 ▲4,67319.65 ▼3.42897.77 ▲176.7959.20 ▲3.93
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0493.64 ▼8.1743.24 ▼2.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: blocks, layout

heliblocks/heliblocks.php Passed 13 tests

"Heliblocks" version 2.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Use unique structures in your posts and pages, with Block editor and collection snippets of Heliblocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin208 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS153165
PHP281834
JavaScript30217
SVG2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin