90% acf-admin-flexible-content-collapse

Code Review | ACF Admin Flexible Content Collapse

WordPress plugin ACF Admin Flexible Content Collapse scored 90% from 54 tests.

About plugin

  • Plugin page: acf-admin-flexibl...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 21
  • Update frequency: every 111.4 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active / 17,573 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by ACF Admin Flexible Content Collapse
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.97 ▼4.77
Dashboard /wp-admin3.31 ▲0.0044.37 ▼3.60
Posts /wp-admin/edit.php3.36 ▲0.0044.46 ▼0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.98 ▼5.64
Media Library /wp-admin/upload.php3.23 ▲0.0037.13 ▲5.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Admin Flexible Content Collapse
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.78 ▲0.491.75 ▲0.0745.08 ▼2.62
Dashboard /wp-admin2,203 ▲145.83 ▼0.10103.50 ▼0.5838.92 ▼1.40
Posts /wp-admin/edit.php2,092 ▲61.97 ▼0.0438.71 ▲3.9135.34 ▲1.50
Add New Post /wp-admin/post-new.php1,533 ▲1923.20 ▲5.69670.81 ▲49.2060.93 ▲11.25
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.03106.81 ▲9.4147.05 ▲5.26

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: advanced custom fields, acf, collapse, acfpro, flexible content field...

acf-admin-flexible-content-collapse/acf-admin-flexible-content-collapse.php 92% from 13 tests

The primary PHP file in "ACF Admin Flexible Content Collapse" version 1.3.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1292995
CSS13664
PO File1171756
JavaScript117152
SVG10016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin