84% acf-repeater-for-elementor

Code Review | ACF Repeater For Elementor

WordPress plugin ACF Repeater For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: acf-repeater-for-...
  • Plugin version: 1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Dec 27, 2020
  • Latest release: Feb 24, 2021
  • Number of updates: 7
  • Update frequency: every 10.1 days
  • Top authors: idocoh (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active /5,344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by ACF Repeater For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.79 ▼6.43
Dashboard /wp-admin3.32 ▼0.0248.71 ▼19.10
Posts /wp-admin/edit.php3.38 ▲0.0246.20 ▼6.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.01 ▼20.04
Media Library /wp-admin/upload.php3.25 ▲0.0236.92 ▲1.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ACF Repeater For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.031.72 ▼0.1145.12 ▲2.92
Dashboard /wp-admin2,192 ▲155.64 ▲0.0485.85 ▼18.0740.84 ▼1.93
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0136.43 ▲0.3935.60 ▼0.68
Add New Post /wp-admin/post-new.php1,528 ▲223.32 ▲0.15684.32 ▲10.7956.84 ▲8.51
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.01103.99 ▼8.3044.40 ▼2.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 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-repeater-for-elementor/acf-repeater-for-elementor.php:16

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: elementor, repeater, acf

acf-repeater-for-elementor/acf-repeater-for-elementor.php Passed 13 tests

The main file in "ACF Repeater For Elementor" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Easy and simple way to use acf pro repeater in elementor.

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
Success! There were no dangerous files found in this plugin283 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
SVG100218
PHP1142865

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png22.23KB11.30KB▼ 49.16%