100% acf-media-cluster

Code Review | ACF Media Cluster

WordPress plugin ACF Media Cluster scored 100% from 54 tests.

About plugin

  • Plugin page: acf-media-cluster
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.8
  • WordPress version: 5.8.1
  • First release: Jul 28, 2021
  • Latest release: Aug 7, 2021
  • Number of updates: 12
  • Update frequency: every 0.8 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 154 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼180.53ms] Passed 4 tests

This is a short check of server-side resources used by ACF Media Cluster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0524.80 ▼5.11
Dashboard /wp-admin3.11 ▲0.0445.16 ▲2.23
Posts /wp-admin/edit.php3.17 ▲0.0536.56 ▲1.34
Add New Post /wp-admin/post-new.php5.47 ▲0.0374.67 ▼720.56
Media Library /wp-admin/upload.php3.06 ▲0.0533.87 ▲6.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Media Cluster
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,672 ▲7115.72 ▲0.045.14 ▼0.1275.57 ▲1.83
Dashboard /wp-admin2,935 ▲406.29 ▲0.26115.59 ▼11.11165.12 ▼6.75
Posts /wp-admin/edit.php2,745 ▲23.36 ▲0.1363.31 ▼0.03141.34 ▲7.70
Add New Post /wp-admin/post-new.php3,703 ▼11218.17 ▼0.89481.45 ▲45.24178.11 ▲6.63
Media Library /wp-admin/upload.php1,754 ▲25.55 ▲0.07180.31 ▲32.58200.16 ▲17.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: media, documents, acf, images, pdf...

acf-media-cluster/acf-media-cluster.php Passed 13 tests

This is the main PHP file of "ACF Media Cluster" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
100 characters long description:
An extension for Advance Custom Fields which provides the ability to add multiple media into a post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin612 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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 files were detected