90% acf-repeater-flexible-content-collapser

Code Review | ACF Repeater & Flexible Content Collapser

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

About plugin

  • Plugin page: acf-repeater-flex...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 33
  • Update frequency: every 70.9 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active / 53,211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.94ms] Passed 4 tests

This is a short check 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.46 ▲0.0035.51 ▼9.46
Dashboard /wp-admin3.31 ▲0.0044.00 ▼6.72
Posts /wp-admin/edit.php3.36 ▲0.0050.60 ▲3.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.98 ▼11.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.77 ▲4.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Repeater & Flexible Content Collapser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.14 ▼1.051.86 ▼0.2138.21 ▼6.40
Dashboard /wp-admin2,206 ▲215.83 ▼0.10101.18 ▼15.5738.69 ▼8.47
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0039.98 ▲1.5534.36 ▲4.14
Add New Post /wp-admin/post-new.php1,520 ▼1523.16 ▲0.02674.47 ▼48.6658.97 ▲2.73
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0293.76 ▼16.7242.54 ▼3.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

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

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

Analyzing the main PHP file in "ACF Repeater & Flexible Content Collapser" version 1.2.8
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin457 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15559170
JavaScript14916121
PO File23848116
CSS19150

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin