100% acf-repeater-flexible-content-collapser

Code Review | ACF Repeater & Flexible Content Collapser

WordPress plugin ACF Repeater & Flexible Content Collapser scored 100% from 54 tests.

About plugin

  • Plugin page: acf-repeater-flex...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 5.9.2
  • First release: Mar 19, 2017
  • Latest release: Aug 22, 2020
  • Number of updates: 25
  • Update frequency: every 50.0 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active / 32,503 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by ACF Repeater & Flexible Content Collapser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.25 ▲0.12
Dashboard /wp-admin3.41 ▲0.0035.14 ▼8.37
Posts /wp-admin/edit.php3.64 ▲0.0039.87 ▼0.31
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.35 ▼1,238.40
Media Library /wp-admin/upload.php3.29 ▲0.0032.76 ▲3.68

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Repeater & Flexible Content Collapser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5315.08 ▼0.496.17 ▼0.512.58 ▲0.32
Dashboard /wp-admin2,895 ▲356.17 ▲0.03126.08 ▼1.30193.40 ▲31.99
Posts /wp-admin/edit.php2,691 ▲33.23 ▼0.1263.31 ▼2.12147.15 ▼8.70
Add New Post /wp-admin/post-new.php1,690 ▼020.99 ▲0.49452.01 ▲7.61166.51 ▼50.96
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.03149.64 ▲1.90202.51 ▼57.18

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
7 plugin tags: collapse, advanced custom fields, expand, acf, flexible content...

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

This is the main PHP file of "ACF Repeater & Flexible Content Collapser" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected511 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP16870224
JavaScript15316121
PO File23848116
CSS19150

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin