100% acf-admin-flexible-content-collapse

Code Review | ACF Admin Flexible Content Collapse

WordPress plugin ACF Admin Flexible Content Collapse scored 100% from 54 tests.

About plugin

  • Plugin page: acf-admin-flexibl...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 5.9.2
  • First release: Mar 14, 2017
  • Latest release: Aug 22, 2020
  • Number of updates: 15
  • Update frequency: every 83.5 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 10,226 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.38ms] Passed 4 tests

Server-side resources used by ACF Admin Flexible Content Collapse
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.18 ▲7.53
Dashboard /wp-admin3.41 ▲0.0032.33 ▼0.63
Posts /wp-admin/edit.php3.64 ▲0.0036.86 ▼0.39
Add New Post /wp-admin/post-new.php6.88 ▼0.0990.94 ▼1,178.71
Media Library /wp-admin/upload.php3.29 ▲0.0024.04 ▼1.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Admin Flexible Content Collapse
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.83 ▲0.185.57 ▼0.262.96 ▲0.56
Dashboard /wp-admin2,895 ▲406.08 ▼0.11116.27 ▼19.17155.69 ▼11.51
Posts /wp-admin/edit.php2,691 ▼33.24 ▲0.0161.57 ▼2.38141.51 ▲2.76
Add New Post /wp-admin/post-new.php1,690 ▼7019.32 ▲1.73386.49 ▼36.08159.37 ▼2.75
Media Library /wp-admin/upload.php1,698 ▼05.42 ▼0.11147.08 ▲8.24189.67 ▲4.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: expand, advanced custom fields, flexible content field, acf, acfpro...

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

This is the main PHP file of "ACF Admin Flexible Content Collapse" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin342 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File1171756

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin