93% acf-fold-flexible-content

Code Review | ACF Fold Flexible Content

WordPress plugin ACF Fold Flexible Content scored 93% from 54 tests.

About plugin

  • Plugin page: acf-fold-flexible...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.9.2
  • First release: Aug 10, 2014
  • Latest release: Oct 3, 2016
  • Number of updates: 55
  • Update frequency: every 14.3 days
  • Top authors: urre (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active / 15,447 total downloads


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.02MB] [CPU: ▼293.04ms] Passed 4 tests

A check of server-side resources used by ACF Fold Flexible Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.12 ▲5.43
Dashboard /wp-admin3.42 ▲0.0133.33 ▼0.63
Posts /wp-admin/edit.php3.65 ▲0.0136.48 ▼0.99
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.11 ▼1,169.92
Media Library /wp-admin/upload.php3.30 ▲0.0023.93 ▼0.63

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Fold Flexible Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4716.20 ▲0.236.24 ▲0.322.84 ▲0.03
Dashboard /wp-admin2,895 ▲376.51 ▲0.14120.74 ▼12.45156.71 ▼6.85
Posts /wp-admin/edit.php2,697 ▲123.45 ▲0.0262.52 ▼3.39140.27 ▼6.36
Add New Post /wp-admin/post-new.php1,667 ▲116.63 ▼4.20408.33 ▼15.16166.32 ▲1.40
Media Library /wp-admin/upload.php1,704 ▲95.77 ▲0.06136.08 ▼5.90209.07 ▲19.69

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-fold-flexible-content/acf-fold-flexible.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (ACF Fold Flexible Content) image required
You can take inspiration from this readme.txt

acf-fold-flexible-content/acf-fold-flexible.php 85% from 13 tests

"ACF Fold Flexible Content" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-fold-flexible-content.php" instead of "acf-fold-flexible.php")
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

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 plugin383 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png63.54KB21.32KB▼ 66.44%