78% acf-flexible-content-extended

Code Review | Flexible Content Extended for Advanced Custom Fields

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

About plugin

  • Plugin page: acf-flexible-cont...
  • Plugin version: 2.0.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2019
  • Latest release: Aug 24, 2022
  • Number of updates: 16
  • Update frequency: every 68.4 days
  • Top authors: jameelmoses (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /15,962 total downloads

Benchmarks

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: ▲0.00MB] [CPU: ▼6.85ms] Passed 4 tests

This is a short check of server-side resources used by Flexible Content Extended for Advanced Custom Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.40 ▼2.83
Dashboard /wp-admin3.31 ▲0.0050.17 ▼4.08
Posts /wp-admin/edit.php3.36 ▲0.0050.26 ▲0.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.49 ▼19.30
Media Library /wp-admin/upload.php3.23 ▲0.0035.84 ▼1.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Flexible Content Extended for Advanced Custom Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.041.60 ▼0.1240.66 ▼1.67
Dashboard /wp-admin2,198 ▲185.64 ▲0.0791.52 ▲1.0541.26 ▼3.97
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0433.71 ▼2.7635.02 ▼4.64
Add New Post /wp-admin/post-new.php1,526 ▼023.70 ▲0.65645.83 ▼0.0451.74 ▲2.87
Media Library /wp-admin/upload.php1,403 ▲94.15 ▼0.0296.49 ▼14.9743.08 ▼2.27

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'ACF_FCE\\Singleton' not found in wp-content/plugins/acf-flexible-content-extended/classes/requirements.php on line 5
    • > 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/main.php on line 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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: modal, preview, addon, acf, custom...

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

The primary PHP file in "Flexible Content Extended for Advanced Custom Fields" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,278 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
Markdown31850654
CSS170259
PHP6100214243
JavaScript16321122

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.40
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods1565.22%
▷ Protected methods521.74%
▷ Private methods313.04%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.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