78% acf-flexible-content-extended

Code Review | Flexible Content Extended for Advanced Custom Fields

WordPress plugin Flexible Content Extended for Advanced Custom Fields scored 78% from 54 tests.

About plugin

  • Plugin page: acf-flexible-cont...
  • Plugin version: 1.10.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.8
  • WordPress version: 5.9.2
  • First release: Aug 26, 2019
  • Latest release: Aug 26, 2021
  • Number of updates: 14
  • Update frequency: every 52.2 days
  • Top authors: jameelmoses (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,661 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼2.37MB] [CPU: ▼343.48ms] Passed 4 tests

Analyzing server-side resources used by Flexible Content Extended for Advanced Custom Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.00 ▼1.524.50 ▼46.90
Dashboard /wp-admin2.02 ▼1.395.79 ▼28.72
Posts /wp-admin/edit.php2.02 ▼1.626.10 ▼30.88
Add New Post /wp-admin/post-new.php2.02 ▼4.956.25 ▼1,267.41
Media Library /wp-admin/upload.php2.02 ▼1.285.06 ▼19.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flexible Content Extended for Advanced Custom Fields
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5515.88 ▼0.106.36 ▲0.482.48 ▼0.35
Dashboard /wp-admin2,909 ▲486.16 ▼0.03118.35 ▼14.98159.53 ▼5.28
Posts /wp-admin/edit.php2,700 ▲63.24 ▼0.0065.36 ▲1.71138.11 ▼3.75
Add New Post /wp-admin/post-new.php1,679 ▲1819.35 ▲3.42380.53 ▼66.54157.00 ▼0.14
Media Library /wp-admin/upload.php1,715 ▲175.57 ▲0.08143.57 ▲5.30182.74 ▲7.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-content/plugins/acf-flexible-content-extended/classes/requirements.php+31
    Advanced Custom Fields is a required plugin.

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/acf-flexible-content-extended/acf-flexible-content-extended.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ACF_FCE_DIR - assumed 'ACF_FCE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-flexible-content-extended/autoload.php on line 154
    • > PHP Fatal error
      Trait 'ACF_FCE\\Singleton' not found in wp-content/plugins/acf-flexible-content-extended/classes/requirements.php on line 5
    • > PHP Fatal error
      Trait 'ACF_FCE\\Singleton' not found in wp-content/plugins/acf-flexible-content-extended/classes/main.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 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
10 plugin tags: content, flexible, fields, modal, field...

acf-flexible-content-extended/acf-flexible-content-extended.php 92% from 13 tests

The main PHP file in "Flexible Content Extended for Advanced Custom Fields" ver. 1.10.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)

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
No dangerous file extensions were detected1,254 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.80
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods313.04%
▷ Public methods1565.22%
▷ Protected methods521.74%
▷ Private methods313.04%
▷ Named functions133.33%
▷ Anonymous functions266.67%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected