90% acf-clone-repeater

Code Review | ACF Clone Repeater

WordPress plugin ACF Clone Repeater scored90%from 54 tests.

About plugin

  • Plugin page: acf-clone-repeater
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 27, 2021
  • Latest release: Feb 9, 2023
  • Number of updates: 9
  • Update frequency: every 62.6 days
  • Top authors: azizultex (55.56%)sumanengbd (55.56%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by ACF Clone Repeater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.66 ▼4.72
Dashboard /wp-admin3.31 ▲0.0148.05 ▼0.34
Posts /wp-admin/edit.php3.36 ▲0.0048.69 ▼2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.20 ▼13.04
Media Library /wp-admin/upload.php3.23 ▲0.0038.19 ▲4.22

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ACF Clone Repeater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.71 ▼0.1945.12 ▲0.45
Dashboard /wp-admin2,195 ▲185.63 ▼0.0291.01 ▲2.6340.12 ▲0.01
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0439.84 ▼2.6637.69 ▼3.18
Add New Post /wp-admin/post-new.php1,530 ▲322.92 ▼0.33685.32 ▼1.0850.97 ▼6.17
Media Library /wp-admin/upload.php1,397 ▼04.11 ▼0.06113.91 ▲12.3848.41 ▲6.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Everything seems fine, however this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

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
5 plugin tags: acf, repeater, clone, duplicate, acf pro

acf-clone-repeater/acf-duplicate-row.php 92% from 13 tests

The primary PHP file in "ACF Clone Repeater" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-clone-repeater.php" instead of "acf-duplicate-row.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown112021
PHP141121

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin