94% acf-page-builder-field

Code Review | ACF Page Builder Field

WordPress plugin ACF Page Builder Field scored 94% 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: 5.9.2
  • 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

700+ active / 10,100 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by ACF Page Builder Field
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0160.10 ▲5.16
Dashboard /wp-admin3.43 ▲0.0233.22 ▲0.15
Posts /wp-admin/edit.php3.65 ▲0.0144.49 ▲0.55
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.07 ▼1,187.95
Media Library /wp-admin/upload.php3.30 ▲0.0136.14 ▲10.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Page Builder Field: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3915.88 ▲0.585.96 ▼0.672.30 ▲0.01
Dashboard /wp-admin2,910 ▲506.10 ▼0.02121.05 ▼15.70191.63 ▲28.92
Posts /wp-admin/edit.php2,706 ▲153.24 ▲0.0190.51 ▲24.77141.38 ▼12.50
Add New Post /wp-admin/post-new.php1,674 ▼10518.00 ▼3.44441.88 ▼51.25181.30 ▼34.79
Media Library /wp-admin/upload.php1,716 ▲245.52 ▲0.01151.19 ▲4.74196.45 ▼74.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > 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
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

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, page builder, flexible fields, site origin page builder, flexible content...

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

The main PHP script in "ACF Page Builder Field" version 1.0.3 is automatically included on every request by WordPress
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected465 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2138159325
JavaScript1334170
JSON20034
Markdown120029
CSS1507

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin