71% ultra-blocks-free-by-fest

Code Review | UltraBlocks - Advanced Blocks for WP Gutenberg

WordPress plugin UltraBlocks - Advanced Blocks for WP Gutenberg scored71%from 54 tests.

About plugin

  • Plugin page: ultra-blocks-free...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2018
  • Latest release: Mar 21, 2019
  • Number of updates: 21
  • Update frequency: every 10.1 days
  • Top authors: festplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /2,365 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼9.97ms] Passed 4 tests

A check of server-side resources used by UltraBlocks - Advanced Blocks for WP Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1743.49 ▼1.49
Dashboard /wp-admin3.45 ▲0.1451.66 ▲2.62
Posts /wp-admin/edit.php3.50 ▲0.1456.59 ▲4.50
Add New Post /wp-admin/post-new.php4.96 ▼0.9362.04 ▼45.51
Media Library /wp-admin/upload.php3.37 ▲0.1443.19 ▲4.83
Support /wp-admin/admin.php?page=fest-ultra-addons-gutenberg-support3.3435.90
About /wp-admin/admin.php?page=fest-ultra-addons-gutenberg-about3.4131.94
Settings /wp-admin/admin.php?page=fest-ultra-addons-gutenberg3.3439.07

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

Filesystem and database footprint
It is recommended to fix the following issues
  • The filesystem usage should be lower than 25MB (currently using 35.10MB)
Filesystem: 650 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by UltraBlocks - Advanced Blocks for WP Gutenberg
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18514.78 ▲0.507.02 ▲5.0443.13 ▲0.38
Dashboard /wp-admin2,259 ▲825.55 ▼0.06108.25 ▲14.6341.22 ▲0.65
Posts /wp-admin/edit.php2,244 ▲1472.70 ▲0.6946.17 ▲8.8437.74 ▲1.30
Add New Post /wp-admin/post-new.php1,724 ▲19825.13 ▲1.40702.73 ▲1.7637.23 ▼13.82
Media Library /wp-admin/upload.php1,470 ▲735.03 ▲0.84107.94 ▼2.8746.51 ▲0.81
Support /wp-admin/admin.php?page=fest-ultra-addons-gutenberg-support9102.3236.9456.28
About /wp-admin/admin.php?page=fest-ultra-addons-gutenberg-about1,4552.3231.1759.48
Settings /wp-admin/admin.php?page=fest-ultra-addons-gutenberg2,2812.3831.1661.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ultra-blocks-free-by-fest/help/about-template.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ultra-blocks-free-by-fest/fw-templates/ub-fw-no-sidebar.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ub_fw_no_content_get_header() in wp-content/plugins/ultra-blocks-free-by-fest/fw-templates/ub-fw-no-header-footer.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultra-blocks-free-by-fest/bundler.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ultra-blocks-free-by-fest/help/about-template.php:140
    • > PHP Warning
      require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ultra-blocks-free-by-fest/bundler.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultra-blocks-free-by-fest/fw-templates/helpers.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ultra-blocks-free-by-fest/fw-templates/ub-fw-fullwidth.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fest-ultra-addons-gutenberg
    • > Console-api (warning) in unknown
    http://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

ultra-blocks-free-by-fest/ultra-blocks.php 77% from 13 tests

The entry point to "UltraBlocks - Advanced Blocks for WP Gutenberg" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultra-blocks-free-by-fest.php" instead of "ultra-blocks.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 343 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected35,923 lines of code in 423 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2843,56529128,280
Sass521,033225,307
PHP4234,10354,0601,869
Markdown31010337
JSON20089
SVG380038
CSS2003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.18
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods156
▷ Static methods74.49%
▷ Public methods15599.36%
▷ Protected methods00.00%
▷ Private methods10.64%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
58 PNG files occupy 1.48MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
help/countdown.png46.35KB21.77KB▼ 53.04%
images/logos/logo3.png14.01KB7.28KB▼ 48.04%
images/features/f3.png2.89KB1.93KB▼ 33.27%
images/flip-box/question.png3.32KB3.82KB0.00%
images/features/f1.png2.69KB1.59KB▼ 40.94%