94% acf-duplicate-repeater

Code Review | ACF Duplicate Repeater

WordPress plugin ACF Duplicate Repeater scored 94% from 54 tests.

About plugin

  • Plugin page: acf-duplicate-rep...
  • Plugin version: 2.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 5.9.2
  • First release: Aug 22, 2019
  • Latest release: Aug 31, 2020
  • Number of updates: 9
  • Update frequency: every 41.7 days
  • Top authors: podpirate (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 23,417 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼300.34ms] Passed 4 tests

This is a short check of server-side resources used by ACF Duplicate Repeater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1456.87 ▲0.95
Dashboard /wp-admin3.48 ▲0.0834.39 ▼1.35
Posts /wp-admin/edit.php3.71 ▲0.0738.76 ▼1.33
Add New Post /wp-admin/post-new.php6.94 ▼0.0395.34 ▼1,168.85
Media Library /wp-admin/upload.php3.36 ▲0.0623.61 ▼29.82

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ACF Duplicate Repeater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲7716.22 ▲0.185.94 ▲0.293.12 ▲1.02
Dashboard /wp-admin2,923 ▲626.10 ▼0.03130.43 ▼18.38211.04 ▲46.66
Posts /wp-admin/edit.php2,719 ▲343.25 ▼0.0068.94 ▲0.99162.00 ▲10.93
Add New Post /wp-admin/post-new.php1,680 ▲1916.99 ▼3.94448.61 ▲6.87163.25 ▲2.04
Media Library /wp-admin/upload.php1,726 ▲285.54 ▲0.02151.73 ▲11.31276.71 ▲80.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/ComponentInterface.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/CoreInterface.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Asset/Asset.php
    • > /wp-content/plugins/acf-duplicate-repeater/index.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/Plugin.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/autoload.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/Core.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/Singleton.php

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: flexible content, acf pro, clone, duplicate, repeater...

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

The principal PHP file in "ACF Duplicate Repeater" v. 2.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-duplicate-repeater.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected545 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP9168289401
PO File22026110
XML14332
CSS1001
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces3
Interfaces2
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods43
▷ Static methods49.30%
▷ Public methods3581.40%
▷ Protected methods36.98%
▷ Private methods511.63%
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
PNG images were not found in this plugin