84% acf-fields-repeater-collapser-admin

Code Review | ACF Repeater Collapser Admin

WordPress plugin ACF Repeater Collapser Admin scored84%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: 6.3.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

50+ active /1,674 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.30ms] Passed 4 tests

This is a short check of server-side resources used by ACF Repeater Collapser Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.01 ▼1.18
Dashboard /wp-admin3.31 ▲0.0148.22 ▼2.89
Posts /wp-admin/edit.php3.36 ▲0.0146.55 ▼6.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.08 ▼13.37
Media Library /wp-admin/upload.php3.23 ▲0.0137.10 ▼2.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Repeater Collapser Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.35 ▲0.081.94 ▼0.0945.99 ▲0.29
Dashboard /wp-admin2,204 ▲275.72 ▼0.1286.96 ▼16.3842.05 ▼0.41
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0138.22 ▼0.9230.85 ▼5.96
Add New Post /wp-admin/post-new.php1,532 ▲423.02 ▼0.20627.07 ▼62.1057.98 ▼8.36
Media Library /wp-admin/upload.php1,409 ▲124.25 ▲0.11106.22 ▼3.2643.94 ▼4.08

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_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


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
4 plugin tags: custom fields, sorting, acf, custom post type

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

Analyzing the main PHP file in "ACF Repeater Collapser Admin" version 1.0.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected248 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin