93% acf-repeater-editor-accordion

Code Review | ACF Repeater Editor Accordion

WordPress plugin ACF Repeater Editor Accordion scored 93% from 54 tests.

About plugin

  • Plugin page: acf-repeater-edit...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: Sep 20, 2015
  • Latest release: Sep 21, 2015
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: jeremywar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 4,277 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by ACF Repeater Editor Accordion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0028.11 ▲0.06
Dashboard /wp-admin3.07 ▼0.0037.09 ▼3.23
Posts /wp-admin/edit.php3.12 ▲0.0135.58 ▲2.76
Add New Post /wp-admin/post-new.php5.43 ▼0.0173.76 ▼591.39
Media Library /wp-admin/upload.php3.01 ▲0.0025.36 ▼2.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Repeater Editor Accordion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.59 ▼0.445.53 ▲0.6978.68 ▲4.34
Dashboard /wp-admin2,933 ▲406.11 ▼0.06113.69 ▼20.25163.28 ▼9.30
Posts /wp-admin/edit.php2,737 ▼33.25 ▲0.0164.12 ▼0.25137.69 ▼0.01
Add New Post /wp-admin/post-new.php3,743 ▼018.84 ▼0.08401.17 ▼25.98160.55 ▼21.59
Media Library /wp-admin/upload.php1,749 ▼35.52 ▲0.05153.80 ▲8.28197.46 ▲19.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-repeater-editor-accordion/acf-repeater-accordion.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === acf-repeater-editor-accordion === )
You can look at the official readme.txt

acf-repeater-editor-accordion/acf-repeater-accordion.php 85% from 13 tests

The main PHP file in "ACF Repeater Editor Accordion" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-repeater-editor-accordion.php" instead of "acf-repeater-accordion.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 detected36 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13116
CSS10010
PHP131110

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/acfAccordionExpanded.png1.01KB0.19KB▼ 81.33%
images/acfAccordionCollapsed.png1.01KB0.17KB▼ 83.16%