94% acf-page-builder

Code Review | Advanced Custom Fields Page Builder

WordPress plugin Advanced Custom Fields Page Builder scored 94% from 54 tests.

About plugin

  • Plugin page: acf-page-builder
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.6.1
  • WordPress version: 5.9.2
  • First release: Feb 17, 2016
  • Latest release: Oct 2, 2016
  • Number of updates: 12
  • Update frequency: every 19.0 days
  • Top authors: owenr88 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 9,378 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼304.91ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0853.96 ▲1.28
Dashboard /wp-admin3.46 ▲0.0633.46 ▼3.23
Posts /wp-admin/edit.php3.69 ▲0.0537.46 ▼2.33
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.92 ▼1,214.32
Media Library /wp-admin/upload.php3.34 ▲0.0524.06 ▲0.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1115.94 ▲0.236.75 ▲1.003.03 ▲0.15
Dashboard /wp-admin2,888 ▲346.13 ▼0.03117.31 ▼18.75155.95 ▼4.70
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0063.68 ▼3.91140.12 ▼2.39
Add New Post /wp-admin/post-new.php1,661 ▼016.08 ▲0.54441.09 ▲39.87158.78 ▲3.80
Media Library /wp-admin/upload.php1,695 ▲35.49 ▼0.02140.73 ▼1.06184.79 ▼5.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-page-builder/admin/functions.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-page-builder/trunk/admin/functions.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-page-builder/trunk/public/functions.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-page-builder/public/functions.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: page builder, advanced custom fields, build pages, custom fields

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

The main PHP script in "Advanced Custom Fields Page Builder" version 1.1.4 is automatically included on every request by WordPress
98 characters long description:
A powerful and easy to use page builder, using the Advanced Custom Fields Flexible Content module.

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
Success! There were no dangerous files found in this plugin1,350 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON2001,021
PHP6220150248
Markdown135065
CSS13014
JavaScript1102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1041.67%
▷ Protected methods00.00%
▷ Private methods1458.33%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin