83% acf-soundcloud-playlists

Code Review | ACF SoundCloud Playlists

WordPress plugin ACF SoundCloud Playlists scored83%from 54 tests.

About plugin

  • Plugin page: acf-soundcloud-pl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2015
  • Latest release: Jun 8, 2015
  • Number of updates: 6
  • Update frequency: every 15.3 days
  • Top authors: drebbits.web (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,249 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼119.96ms] Passed 4 tests

A check of server-side resources used by ACF SoundCloud Playlists
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.88 ▼9.68
Dashboard /wp-admin3.40 ▼0.0251.62 ▼457.49
Posts /wp-admin/edit.php3.52 ▲0.1653.51 ▼4.40
Add New Post /wp-admin/post-new.php5.98 ▲0.1087.13 ▼8.27
Media Library /wp-admin/upload.php3.33 ▲0.1040.52 ▲2.53
SoundCloud /wp-admin/options-general.php?page=soundcloud-settings3.2933.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ACF SoundCloud Playlists
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.76 ▲0.381.70 ▲0.1442.47 ▼9.14
Dashboard /wp-admin2,210 ▲195.85 ▲0.98103.22 ▼3.7142.58 ▲1.84
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0740.27 ▲1.2537.18 ▲2.83
Add New Post /wp-admin/post-new.php1,536 ▲2223.15 ▲5.57667.31 ▲4.8356.39 ▼5.06
Media Library /wp-admin/upload.php1,392 ▲44.29 ▲0.15110.73 ▼15.0249.30 ▲0.28
SoundCloud /wp-admin/options-general.php?page=soundcloud-settings8192.0324.4132.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-soundcloud-playlists/inc/helpers.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-soundcloud-playlists/acf-scp-v4.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-soundcloud-playlists/inc/sc-option.php:193
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acf-soundcloud-playlists/acf-scp.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-soundcloud-playlists/acf-scp-v5.php:9

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 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: soundcloud, audio, playlist, podcast, advanced custom fields...

acf-soundcloud-playlists/acf-scp.php 77% from 13 tests

The main PHP file in "ACF SoundCloud Playlists" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-soundcloud-playlists.php" instead of "acf-scp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,118 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25498822,518
PHP97169761,278
CSS2116313
HTML1009

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods5183.61%
▷ Protected methods711.48%
▷ Private methods34.92%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/sc_logo_black.png3.96KB1.41KB▼ 64.32%