84% acf-duplicate-repeater

Code Review | ACF Duplicate Repeater

WordPress plugin ACF Duplicate Repeater scored84%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: 6.3.1
  • 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

1,000+ active /26,315 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.10ms] Passed 4 tests

Server-side resources used by ACF Duplicate Repeater
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.78 ▲1.90
Dashboard /wp-admin3.37 ▲0.0346.19 ▼12.78
Posts /wp-admin/edit.php3.48 ▲0.1349.34 ▲0.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.61 ▼5.82
Media Library /wp-admin/upload.php3.29 ▲0.0736.53 ▲2.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Duplicate Repeater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.18 ▼1.192.09 ▲0.1144.17 ▼0.64
Dashboard /wp-admin2,226 ▲386.06 ▲0.19106.76 ▲2.9343.01 ▼0.46
Posts /wp-admin/edit.php2,109 ▲201.98 ▼0.0440.81 ▲5.6736.84 ▲0.96
Add New Post /wp-admin/post-new.php1,557 ▲2918.43 ▲0.06605.12 ▼26.8451.86 ▼10.68
Media Library /wp-admin/upload.php1,405 ▲174.23 ▼0.0398.03 ▼5.7242.80 ▼0.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-duplicate-repeater/include/autoload.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/Plugin.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Asset/Asset.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/ComponentInterface.php
    • > /wp-content/plugins/acf-duplicate-repeater/index.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/Singleton.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/Core.php
    • > /wp-content/plugins/acf-duplicate-repeater/include/ACFDuplicateRepeater/Core/CoreInterface.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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: acf, repeater, acf pro, flexible content, duplicate...

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
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same 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 | There should be no dangerous file extensions present in any WordPress plugin
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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin