93% acf-soundcloud-playlists

Code Review | ACF SoundCloud Playlists

WordPress plugin ACF SoundCloud Playlists scored 93% 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: 5.9.2
  • 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

20+ active / 1,972 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by ACF SoundCloud Playlists
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1654.39 ▲4.50
Dashboard /wp-admin3.52 ▲0.1133.59 ▼0.06
Posts /wp-admin/edit.php3.74 ▲0.1038.61 ▲1.69
Add New Post /wp-admin/post-new.php6.98 ▲0.0194.53 ▼1,162.34
Media Library /wp-admin/upload.php3.39 ▲0.1023.36 ▲0.92
SoundCloud /wp-admin/options-general.php?page=soundcloud-settings3.3622.95

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF SoundCloud Playlists: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2615.88 ▲0.256.02 ▲0.202.43 ▲0.15
Dashboard /wp-admin2,893 ▲326.16 ▲0.10113.41 ▼20.82155.30 ▼7.42
Posts /wp-admin/edit.php2,690 ▼13.23 ▲0.0068.13 ▲5.50146.45 ▲2.88
Add New Post /wp-admin/post-new.php1,671 ▲1018.34 ▲2.70392.95 ▼23.16157.08 ▲7.95
Media Library /wp-admin/upload.php1,700 ▲25.50 ▲0.04137.32 ▼4.47186.87 ▲0.09
SoundCloud /wp-admin/options-general.php?page=soundcloud-settings1,0632.3754.13138.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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: 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-v5.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 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: podcast, advanced custom fields, acf, soundcloud, playlist...

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

This is the main PHP file of "ACF SoundCloud Playlists" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-soundcloud-playlists.php" instead of "acf-scp.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)

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
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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%