10% soundcloud-latest-tracks

Code Review | Soundcloud Latest Tracks

WordPress plugin Soundcloud Latest Tracks scored 10% from 54 tests.

About plugin

  • Plugin page: soundcloud-latest...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 19, 2014
  • Latest release: Feb 2, 2015
  • Number of updates: 17
  • Update frequency: every 4.7 days
  • Top authors: ph08n1x (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 5,243 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/soundcloud-latest-tracks/soundcloud-latest-tracks.php+245
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.53ms] Passed 4 tests

An overview of server-side resources used by Soundcloud Latest Tracks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.39 ▼35.88
Dashboard /wp-admin2.05 ▼1.266.34 ▼39.90
Posts /wp-admin/edit.php2.05 ▼1.315.83 ▼41.30
Add New Post /wp-admin/post-new.php2.05 ▼3.845.54 ▼89.02
Media Library /wp-admin/upload.php2.05 ▼1.186.86 ▼27.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-comments
slt_button_text
theysaidso_admin_options
slt_button_class
widget_theysaidso_widget
can_compress_scripts
widget_slt_plugin
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Soundcloud Latest Tracks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.58 ▼1.041.75 ▼0.1845.36 ▼4.55
Dashboard /wp-admin2,219 ▲315.90 ▲0.01103.49 ▼4.8140.47 ▼0.45
Posts /wp-admin/edit.php2,102 ▲102.06 ▲0.0439.22 ▼2.1632.45 ▼4.68
Add New Post /wp-admin/post-new.php1,527 ▲1317.36 ▼0.18696.71 ▲34.7748.42 ▼11.81
Media Library /wp-admin/upload.php1,407 ▲224.21 ▼0.0498.21 ▼6.0243.86 ▼0.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/soundcloud-latest-tracks/soundcloud-latest-tracks.php+245
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 9 options
    • can_compress_scripts
    • widget_slt_plugin
    • theysaidso_admin_options
    • slt_button_class
    • widget_theysaidso_widget
    • slt_button_text
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/soundcloud-latest-tracks/soundcloud-latest-tracks.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: tracks, music, soundcloud

soundcloud-latest-tracks/soundcloud-latest-tracks.php 92% from 13 tests

This is the main PHP file of "Soundcloud Latest Tracks" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 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 plugin187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12734186
JavaScript1041

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin