83% acf-repeater-editor-accordion

Code Review | ACF Repeater Editor Accordion

WordPress plugin ACF Repeater Editor Accordion scored 83% 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: 6.3.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

200+ active / 4,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by ACF Repeater Editor Accordion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.65 ▼6.43
Dashboard /wp-admin3.31 ▲0.0044.82 ▼5.48
Posts /wp-admin/edit.php3.36 ▲0.0044.21 ▼5.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.41 ▼10.53
Media Library /wp-admin/upload.php3.24 ▲0.0037.25 ▲3.24

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ACF Repeater Editor Accordion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.051.82 ▲0.2143.14 ▲6.42
Dashboard /wp-admin2,209 ▲215.83 ▼0.07106.15 ▲2.5841.25 ▼2.22
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0136.04 ▼5.1332.10 ▼4.72
Add New Post /wp-admin/post-new.php1,535 ▲1123.27 ▲0.19659.24 ▲8.2055.47 ▲2.40
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0793.80 ▼8.9143.49 ▲0.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 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-editor-accordion/acf-repeater-accordion.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === acf-repeater-editor-accordion === )
The official readme.txt might help

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

The principal PHP file in "ACF Repeater Editor Accordion" v. 1.0 is loaded by WordPress automatically on each request
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-repeater-editor-accordion.php" instead of "acf-repeater-accordion.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)

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
No dangerous file extensions were detected36 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13116
CSS10010
PHP131110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
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%