84% control-panel-for-soundcloud

Code Review | Control panel for SoundCloud(SoundCloud再生パネル)

WordPress plugin Control panel for SoundCloud(SoundCloud再生パネル) scored 84% from 54 tests.

About plugin

  • Plugin page: control-panel-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jun 19, 2018
  • Latest release: Jun 20, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: densuke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 734 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.74ms] Passed 4 tests

A check of server-side resources used by Control panel for SoundCloud(SoundCloud再生パネル)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.15 ▼6.60
Dashboard /wp-admin3.32 ▲0.0246.85 ▲0.31
Posts /wp-admin/edit.php3.37 ▲0.0149.07 ▲0.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.27 ▼1.53
Media Library /wp-admin/upload.php3.24 ▲0.0134.13 ▲2.43
Control panel for SoundCloud /wp-admin/tools.php?page=dn_ctrp_sndcld_menu3.2130.24

Server storage [IO: ▲0.03MB] [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: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Control panel for SoundCloud(SoundCloud再生パネル)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.55 ▼1.004.53 ▲2.8239.99 ▲0.27
Dashboard /wp-admin2,213 ▲285.90 ▲0.96109.78 ▲5.9440.54 ▼4.10
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0239.63 ▼1.7135.02 ▼0.64
Add New Post /wp-admin/post-new.php1,545 ▲3118.19 ▲0.53602.33 ▼61.7949.93 ▼8.69
Media Library /wp-admin/upload.php1,392 ▲74.29 ▲0.0293.77 ▼3.7641.87 ▼4.37
Control panel for SoundCloud /wp-admin/tools.php?page=dn_ctrp_sndcld_menu8272.0623.5125.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • 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
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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/control-panel-for-soundcloud/dn-ctrp-sndcld-plugin.php:61

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: player, soundcloud

control-panel-for-soundcloud/dn-ctrp-sndcld-plugin.php 92% from 13 tests

The main PHP file in "Control panel for SoundCloud(SoundCloud再生パネル)" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("control-panel-for-soundcloud.php" instead of "dn-ctrp-sndcld-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected486 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS21612198
JavaScript21421142
PHP12958120
PO File17226

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/panel_position_right.png0.25KB0.11KB▼ 56.03%
images/panel_position_left.png0.26KB0.11KB▼ 57.20%
images/panel_position_upper.png0.26KB0.11KB▼ 57.52%
images/panel_position_bottom.png0.25KB0.11KB▼ 57.36%
images/soundcloud_log.png2.24KB1.52KB▼ 31.89%