90% acf-media-cluster

Code Review | ACF Media Cluster

WordPress plugin ACF Media Cluster scored90%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-6.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2021
  • Latest release: Nov 2, 2022
  • Number of updates: 13
  • Update frequency: every 35.5 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.65ms] Passed 4 tests

This is a short check of server-side resources used by ACF Media Cluster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.42 ▲1.04
Dashboard /wp-admin3.36 ▲0.0552.76 ▲0.95
Posts /wp-admin/edit.php3.41 ▲0.0551.27 ▼1.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.09 ▼9.04
Media Library /wp-admin/upload.php3.28 ▲0.0539.10 ▼1.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Media Cluster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.044.72 ▲2.6444.09 ▼0.65
Dashboard /wp-admin2,213 ▲254.87 ▲0.00100.70 ▼17.8838.60 ▼5.74
Posts /wp-admin/edit.php2,093 ▲42.15 ▲0.1639.08 ▲3.0634.55 ▼2.95
Add New Post /wp-admin/post-new.php1,518 ▼123.15 ▼0.01660.15 ▲38.4763.96 ▲9.79
Media Library /wp-admin/upload.php1,392 ▲44.17 ▲0.05111.00 ▼3.9646.21 ▲1.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
6 plugin tags: media, word, documents, pdf, acf...

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

The main PHP script in "ACF Media Cluster" version 1.0.0 is automatically included on every request by WordPress
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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin612 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP67697431
CSS117098
JavaScript1253383

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
No PNG images were found in this plugin