84% acf-page-builder

Code Review | Advanced Custom Fields Page Builder

WordPress plugin Advanced Custom Fields Page Builder scored84%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: 6.3.1
  • 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

100+ active /9,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.28ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.03 ▼2.11
Dashboard /wp-admin3.36 ▲0.0143.90 ▼17.80
Posts /wp-admin/edit.php3.47 ▲0.1146.91 ▼0.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.68 ▲4.32
Media Library /wp-admin/upload.php3.28 ▲0.0534.82 ▼1.04

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Custom Fields Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.27 ▼1.154.72 ▲2.7139.78 ▼0.64
Dashboard /wp-admin2,206 ▲145.77 ▲0.86100.36 ▼12.5238.94 ▼8.59
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0539.33 ▲4.4136.61 ▲0.37
Add New Post /wp-admin/post-new.php1,533 ▲1923.05 ▲5.53573.85 ▼129.3154.73 ▲0.40
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0594.88 ▼6.7342.03 ▼1.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
The following issues need your attention
  • 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/public/functions.php:54
    • > 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/trunk/admin/functions.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-page-builder/admin/functions.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: custom fields, build pages, page builder, advanced custom fields

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

This is the main PHP file of "Advanced Custom Fields Page Builder" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,350 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON2001,021
PHP6220150248
Markdown135065
CSS13014
JavaScript1102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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