73% acf-blocks

Code Review | Gutenberg Blocks - ACF Blocks Suite

WordPress plugin Gutenberg Blocks - ACF Blocks Suite scored73%from 54 tests.

About plugin

  • Plugin page: acf-blocks
  • Plugin version: 2.6.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2019
  • Latest release: Jul 12, 2023
  • Number of updates: 53
  • Update frequency: every 29.2 days
  • Top authors: munirkamal (83.02%)deliciousbrains (18.87%)

Code review

54 tests

User reviews

13 reviews

Install metrics

500+ active /29,356 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲5.43MB] [CPU: ▲27.48ms] 75% from 4 tests

Server-side resources used by Gutenberg Blocks - ACF Blocks Suite
Please fix the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.43MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.24 ▲5.7873.89 ▲32.73
Dashboard /wp-admin9.26 ▲5.9684.61 ▲30.74
Posts /wp-admin/edit.php9.26 ▲5.9176.78 ▲21.06
Add New Post /wp-admin/post-new.php9.96 ▲4.07130.41 ▲25.39
Media Library /wp-admin/upload.php9.26 ▲6.0374.28 ▲38.76
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2662.92

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 376 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
fs_accounts
fs_debug_mode
fs_active_plugins
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gutenberg Blocks - ACF Blocks Suite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.20 ▼1.234.49 ▲2.6731.52 ▼13.61
Dashboard /wp-admin2,238 ▲505.85 ▼0.08101.30 ▼6.4840.20 ▼6.16
Posts /wp-admin/edit.php2,127 ▲382.02 ▼0.0438.69 ▼2.7234.77 ▼1.77
Add New Post /wp-admin/post-new.php1,536 ▲323.00 ▼0.41609.29 ▼87.7644.45 ▼10.62
Media Library /wp-admin/upload.php1,423 ▲384.26 ▲0.04100.38 ▼9.4942.17 ▼7.58
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0851.7724.5429.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/acf-blocks/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • fs_debug_mode
    • can_compress_scripts
    • fs_accounts
    • fs_active_plugins
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-random-image.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function parse_link() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-toggle.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function parse_link() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-accordion.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function parse_link() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-posts.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-fb-like-button.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function parse_link() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-multibuttons.php:2
    • > PHP Notice
      Undefined variable: block in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-random-image.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function parse_link() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-team.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function parse_link() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-image-slider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acfb_margin_name() in wp-content/plugins/acf-blocks/acfblocks-templates/free/acfb-fb-like-button.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: acf block, gutenberg, editor, gutenberg block, block...

acf-blocks/acf-blocks.php 85% from 13 tests

The main PHP script in "Gutenberg Blocks - ACF Blocks Suite" version 2.6.10 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 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 detected65,930 lines of code in 244 files:
LanguageFilesBlank linesComment linesLines of code
PHP1479,25018,31936,589
JSON410023,076
CSS196911884,215
JavaScript256133432,038
SVG120012

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity84.72
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods1,288
▷ Static methods19715.30%
▷ Public methods89969.80%
▷ Protected methods171.32%
▷ Private methods37228.88%
Functions157
▷ Named functions13384.71%
▷ Anonymous functions2415.29%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.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
89 PNG files occupy 1.38MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/is/style26.png1.05KB1.05KB0.00%
img/is/style42.png1.08KB1.08KB0.00%
img/is/style3.png1.03KB1.03KB0.00%
img/is/style14.png1.11KB1.11KB0.00%
img/gthree-six.png0.47KB0.10KB▼ 77.78%