84% oembed-soundcloud

Code Review | oEmbed-Soundcloud

WordPress plugin oEmbed-Soundcloud scored84%from 54 tests.

About plugin

  • Plugin page: oembed-soundcloud
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 19, 2013
  • Latest release: Aug 25, 2015
  • Number of updates: 8
  • Update frequency: every 112.0 days
  • Top authors: shutterbrandon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /9,382 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.07ms] Passed 4 tests

Analyzing server-side resources used by oEmbed-Soundcloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.28 ▲2.53
Dashboard /wp-admin3.31 ▼0.0342.61 ▼16.83
Posts /wp-admin/edit.php3.36 ▲0.0141.12 ▼2.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.78 ▼6.51
Media Library /wp-admin/upload.php3.24 ▲0.0132.03 ▼2.29

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for oEmbed-Soundcloud
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.001.56 ▲0.0138.91 ▼0.97
Dashboard /wp-admin2,192 ▲155.50 ▼0.1583.27 ▼6.1840.23 ▼2.46
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0236.13 ▲0.7839.00 ▲5.29
Add New Post /wp-admin/post-new.php1,528 ▼023.10 ▼0.06661.20 ▲16.7155.38 ▲3.76
Media Library /wp-admin/upload.php1,394 ▼34.17 ▲0.0694.73 ▼7.5941.63 ▼4.25

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× 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/oembed-soundcloud/soundcloud.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (http://i.imgur.com/LwuvfNT.jpg)
The official readme.txt is a good inspiration

oembed-soundcloud/soundcloud.php 92% from 13 tests

The main PHP script in "oEmbed-Soundcloud" version 3.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oembed-soundcloud.php" instead of "soundcloud.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
There were no executable files found in this plugin13 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JSON1008
PHP1285

PHP code Passed 2 tests

An overview 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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin