62% gtg-advanced-blocks

Code Review | GutenGeek Free Gutenberg Blocks for WordPress

WordPress plugin GutenGeek Free Gutenberg Blocks for WordPress scored 62% from 54 tests.

About plugin

  • Plugin page: gtg-advanced-blocks
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Dec 12, 2020
  • Number of updates: 49
  • Update frequency: every 4.8 days
  • Top authors: gutengeek (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active / 2,911 total downloads

Benchmarks

Plugin footprint 65% 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: ▲4.09MB] [CPU: ▲42.76ms] 75% from 4 tests

Analyzing server-side resources used by GutenGeek Free Gutenberg Blocks for WordPress
Please have a look at the following items
  • RAM: Total memory usage must be kept under 10MB (currently 10.93MB on /wp-admin/admin.php?page=gutengeek-about)
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3242.85 ▼1.55
Dashboard /wp-admin10.95 ▲7.65140.32 ▲94.57
Posts /wp-admin/edit.php11.03 ▲7.68164.84 ▲118.51
Add New Post /wp-admin/post-new.php6.62 ▲0.7366.08 ▼24.86
Media Library /wp-admin/upload.php10.97 ▲7.75135.50 ▲102.87
Custom Fonts /wp-admin/admin.php?page=gutengeek-custom-fonts10.98148.96
Settings /wp-admin/admin.php?page=gutengeek10.93136.30
Custom Icons /wp-admin/admin.php?page=gutengeek-custom-icons10.93138.77
About /wp-admin/admin.php?page=gutengeek-about10.93132.11
Upgrade /wp-admin/admin.php?page=gutengeek-upgrade3.3125.60

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 272 new files
Database: 4 new tables, 7 new options
New tables
wp_gtg_block_icons
wp_gtg_block_fonts
wp_gtg_block_font_items
wp_gtg_block_font_item_attachments
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
_gtg_global_settings
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for GutenGeek Free Gutenberg Blocks for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,145 ▲37425.14 ▲10.8542.64 ▲40.3943.76 ▼2.83
Dashboard /wp-admin2,416 ▲22815.54 ▲9.64334.67 ▲221.5969.28 ▲26.67
Posts /wp-admin/edit.php2,391 ▲30215.80 ▲13.81132.88 ▲91.2634.86 ▼0.54
Add New Post /wp-admin/post-new.php1,680 ▲16629.89 ▲12.32859.97 ▲182.5144.90 ▼25.98
Media Library /wp-admin/upload.php1,568 ▲18316.37 ▲12.18156.55 ▲52.5044.56 ▼1.25
Custom Fonts /wp-admin/admin.php?page=gutengeek-custom-fonts1,15912.38129.1326.94
Settings /wp-admin/admin.php?page=gutengeek1,43316.41141.0148.59
Custom Icons /wp-admin/admin.php?page=gutengeek-custom-icons1,19715.52107.0323.41
About /wp-admin/admin.php?page=gutengeek-about1,23615.49126.4761.90
Upgrade /wp-admin/admin.php?page=gutengeek-upgrade1832.5430.9243.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_gtg_block_font_items
    • wp_gtg_block_fonts
    • wp_gtg_block_icons
    • wp_gtg_block_font_item_attachments
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • _gtg_global_settings
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% 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 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gtg-advanced-blocks/templates/admin/settings.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/gtg-advanced-blocks/templates/admin/about.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Gtg_Advanced_Blocks\\Abstracts\\Import' not found in wp-content/plugins/gtg-advanced-blocks/inc/Imports/Theme.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gtg-advanced-blocks/templates/template-fullwidth.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/gtg-advanced-blocks/templates/template-offcanvas.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Gtg_Advanced_Blocks\\Admin\\add_action() in wp-content/plugins/gtg-advanced-blocks/inc/Admin/Settings_Page.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Gtg_Advanced_Blocks\\Abstracts\\Api' not found in wp-content/plugins/gtg-advanced-blocks/inc/API/Template_Library.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Gtg_Advanced_Blocks\\Abstracts\\Api' not found in wp-content/plugins/gtg-advanced-blocks/inc/API/Core.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gtg-advanced-blocks/templates/admin/admin.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_post_terms() in wp-content/plugins/gtg-advanced-blocks/templates/blocks/post/category.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Gtg_Advanced_Blocks\\Abstracts\\AbstractCLI' not found in wp-content/plugins/gtg-advanced-blocks/inc/CLI/Icon.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=gutengeek
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    `position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.
    • > GET request to /wp-admin/admin.php?page=gutengeek-upgrade
    • > Other (warning) in unknown
    https://www.google.com/adsense/domains/caf.js 223 Unrecognized feature: 'attribution-reporting'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #2, #3, #4, #5, #6, #8, #9 in gtg-advanced-blocks/assets to your readme.txt
The official readme.txt might help

gtg-advanced-blocks/plugin.php 92% from 13 tests

"GutenGeek Free Gutenberg Blocks for WordPress" version 1.1.3'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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gtg-advanced-blocks.php" instead of "plugin.php")

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 plugin58,742 lines of code in 254 files:
LanguageFilesBlank linesComment linesLines of code
JSON60044,982
PHP881,4241,9467,626
CSS135422513,298
SVG12817302,125
Markdown11210553
JavaScript181367158

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.53
Average class complexity19.33
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces13
Interfaces1
Traits0
Classes47
▷ Abstract classes510.64%
▷ Concrete classes4289.36%
▷ Final classes24.76%
Methods377
▷ Static methods5715.12%
▷ Public methods33488.59%
▷ Protected methods174.51%
▷ Private methods266.90%
Functions55
▷ Named functions5192.73%
▷ Anonymous functions47.27%
Constants20
▷ Global constants1995.00%
▷ Class constants15.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/styles/google-map/silver.png2.96KB2.90KB▼ 2.01%
assets/images/styles/google-map/night.png2.94KB2.88KB▼ 2.26%
assets/images/styles/google-map/dark.png2.85KB2.76KB▼ 2.95%
assets/images/styles/google-map/aubergine.png3.49KB3.35KB▼ 4.00%
assets/images/styles/testimonial/dot-style-2.png1.78KB0.57KB▼ 67.75%