94% acf-fields-repeater-collapser-admin

Code Review | ACF Repeater Collapser Admin

WordPress plugin ACF Repeater Collapser Admin scored 94% from 54 tests.

About plugin

  • Plugin page: acf-fields-repeat...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 5.8.1
  • First release: Jun 27, 2016
  • Latest release: Jun 30, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: joharyjoox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,388 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by ACF Repeater Collapser Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0131.21 ▲7.58
Dashboard /wp-admin3.06 ▲0.0032.64 ▼5.94
Posts /wp-admin/edit.php3.12 ▲0.0132.42 ▲0.89
Add New Post /wp-admin/post-new.php5.43 ▼0.0175.12 ▼567.71
Media Library /wp-admin/upload.php3.01 ▲0.0121.75 ▼1.52

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Repeater Collapser Admin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,672 ▲6615.80 ▼0.276.90 ▼0.3476.83 ▲3.14
Dashboard /wp-admin2,939 ▲436.21 ▲0.08134.27 ▲1.90265.16 ▲93.77
Posts /wp-admin/edit.php2,746 ▲63.27 ▲0.0364.97 ▲2.80140.02 ▲2.55
Add New Post /wp-admin/post-new.php2,505 ▼1,30616.86 ▼2.07402.10 ▼33.31158.88 ▼2.72
Media Library /wp-admin/upload.php1,757 ▲85.86 ▲0.33153.41 ▲18.14184.32 ▼1.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-fields-repeater-collapser-admin/acf-repeater-collapser-admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: acf, custom fields, custom post type, sorting

acf-fields-repeater-collapser-admin/acf-repeater-collapser-admin.php 92% from 13 tests

"ACF Repeater Collapser Admin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-fields-repeater-collapser-admin.php" instead of "acf-repeater-collapser-admin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected248 lines of code in 4 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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin