10% blockons

Code Review | Blockons - Gutenberg blocks for WordPress and WooCommerce websites

WordPress plugin Blockons - Gutenberg blocks for WordPress and WooCommerce websites scored10%from 54 tests.

About plugin

  • Plugin page: blockons
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Sep 13, 2023
  • Number of updates: 10
  • Update frequency: every 31.6 days
  • Top authors: Kaira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,668 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/blockons/blockons.php+82
    Trying to get property 'blocks' of non-object

Server metrics [RAM: ▲0.89MB] [CPU: ▲2.75ms] Passed 4 tests

Server-side resources used by Blockons - Gutenberg blocks for WordPress and WooCommerce websites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲1.0143.67 ▲2.69
Dashboard /wp-admin4.20 ▲0.9049.80 ▲1.17
Posts /wp-admin/edit.php4.25 ▲0.9054.68 ▲7.81
Add New Post /wp-admin/post-new.php7.11 ▲1.2292.98 ▼0.69
Media Library /wp-admin/upload.php3.96 ▲0.7340.76 ▲9.79
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius4.3338.00
Blockons Settings /wp-admin/options-general.php?page=blockons-settings4.2043.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 349 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
blockons_options
widget_recent-comments
widget_recent-posts
fs_accounts
fs_active_plugins
theysaidso_admin_options
widget_theysaidso_widget
fs_debug_mode
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Blockons - Gutenberg blocks for WordPress and WooCommerce websites
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲24913.75 ▼0.8817.34 ▲15.3619.74 ▼30.19
Dashboard /wp-admin2,253 ▲654.81 ▼1.07107.50 ▼1.9647.28 ▲2.39
Posts /wp-admin/edit.php2,121 ▲322.05 ▲0.0137.15 ▼0.2537.23 ▲3.35
Add New Post /wp-admin/post-new.php6,752 ▲5,23127.54 ▲4.02917.18 ▲309.7539.82 ▼9.93
Media Library /wp-admin/upload.php1,417 ▲354.24 ▲0.0295.62 ▼5.8144.45 ▲0.04
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0791.8423.8928.15
Blockons Settings /wp-admin/options-general.php?page=blockons-settings1,0032.7281.8061.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/blockons/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • fs_debug_mode
    • can_compress_scripts
    • fs_active_plugins
    • blockons_plugin_version
    • blockons_default_options
    • db_upgraded
    • widget_recent-posts
    • fs_accounts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 61× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/blockons/build/video-slider/template.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blockons/build/image-carousel/template.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/blockons/build/image-carousel/template.php:32
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/blockons/build/testimonials/template.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blockons/build/image-carousel/template.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/blockons/build/slider/template.php:30
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/blockons/build/testimonials/template.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blockons/build/testimonials/template.php on line 11
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/blockons/build/image-carousel/template.php on line 17
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/blockons/build/image-carousel/template.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gutenberg, page builder, editor blocks, woocommerce, slider

blockons/blockons.php Passed 13 tests

"Blockons - Gutenberg blocks for WordPress and WooCommerce websites" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
WordPress & WooCommerce editor blocks for you to use when building your website

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin62,705 lines of code in 289 files:
LanguageFilesBlank linesComment linesLines of code
PHP1668,19317,84134,495
JavaScript464,6016,75517,186
CSS592,5241858,975
JSON17002,033
XML13016

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity85.81
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods1,301
▷ Static methods20115.45%
▷ Public methods90869.79%
▷ Protected methods171.31%
▷ Private methods37628.90%
Functions129
▷ Named functions12798.45%
▷ Anonymous functions21.55%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/square.png0.92KB0.09KB▼ 89.75%
assets/images/43rectangle.png0.91KB0.09KB▼ 89.73%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/images/169panoramic.png1.19KB0.11KB▼ 90.83%
assets/images/placeholder.png25.58KB11.78KB▼ 53.95%