84% acf-page-builder-field

Code Review | ACF Page Builder Field

WordPress plugin ACF Page Builder Field scored84%from 54 tests.

About plugin

  • Plugin page: acf-page-builder-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: May 10, 2017
  • Number of updates: 25
  • Update frequency: every 20.4 days
  • Top authors: pekz0r (84%)ViktorFroberg (20%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /11,660 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.95ms] Passed 4 tests

A check of server-side resources used by ACF Page Builder Field
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.12 ▼6.13
Dashboard /wp-admin3.32 ▲0.0143.97 ▲0.49
Posts /wp-admin/edit.php3.37 ▲0.0148.05 ▲0.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.73 ▲5.86
Media Library /wp-admin/upload.php3.24 ▲0.0134.02 ▲1.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Page Builder Field
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.59 ▼0.821.67 ▼0.1943.93 ▲0.92
Dashboard /wp-admin2,220 ▲355.81 ▼0.2199.34 ▼8.5339.06 ▼0.06
Posts /wp-admin/edit.php2,103 ▲142.05 ▲0.0442.06 ▲5.5437.34 ▲1.64
Add New Post /wp-admin/post-new.php1,523 ▼1317.90 ▼5.40587.52 ▼15.0757.40 ▲3.97
Media Library /wp-admin/upload.php1,396 ▲144.26 ▲0.07102.22 ▲5.6442.42 ▲0.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/acf-page-builder-field/acf-page-builder-field.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-page-builder-field/acf-page-builder-field-v5.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: acf flexible content, acf, page builder, flexible fields, flexible content...

acf-page-builder-field/acf-page-builder-field.php Passed 13 tests

The primary PHP file in "ACF Page Builder Field" version 1.0.3 is used by WordPress to initiate all plugin functionality
67 characters long description:
This plugin will add a page builder field in Advanced custom fields

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected465 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity33.00
▷ Minimum class complexity3.00
▷ Maximum class complexity63.00
Average method complexity6.17
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
▷ Named functions250.00%
▷ Anonymous functions250.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin