84% acf-my-media-cluster

Code Review | ACF My Media Cluster

WordPress plugin ACF My Media Cluster scored84%from 54 tests.

About plugin

  • Plugin page: acf-my-media-cluster
  • Plugin version: 1.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2023
  • Latest release: Oct 13, 2023
  • Number of updates: 6
  • Update frequency: every 3.8 days
  • Top authors: kionae (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /81 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 gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.14ms] Passed 4 tests

This is a short check of server-side resources used by ACF My Media Cluster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.55 ▼1.66
Dashboard /wp-admin3.39 ▲0.0852.40 ▲0.38
Posts /wp-admin/edit.php3.44 ▲0.0850.10 ▼0.21
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.62 ▼11.08
Media Library /wp-admin/upload.php3.31 ▲0.0840.72 ▲4.36

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

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

Browser metrics Passed 4 tests

ACF My Media Cluster: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.14 ▼0.121.66 ▼0.2143.01 ▼2.91
Dashboard /wp-admin2,199 ▲225.61 ▼0.0596.80 ▲1.5241.93 ▲2.50
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0235.54 ▼1.3138.89 ▲3.51
Add New Post /wp-admin/post-new.php1,530 ▲223.06 ▼0.18689.15 ▲63.5651.54 ▲0.69
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.0598.01 ▼6.7744.74 ▼0.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-my-media-cluster/includes/acf_mc_cluster_edit_fields.php

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: acf, media, downloads, documents, pdf...

acf-my-media-cluster/acf-my-media-cluster.php 92% from 13 tests

"ACF My Media Cluster" version 1.2.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 236 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin982 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7182303747
CSS1230135
JavaScript12847100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin