73% curator-studio-youtube

Code Review | Curator Studio - YouTube - Show videos from channels, playlists and more

WordPress plugin Curator Studio - YouTube - Show videos from channels, playlists and more scored73%from 54 tests.

About plugin

  • Plugin page: curator-studio-yo...
  • Plugin version: 0.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2020
  • Latest release: May 2, 2021
  • Number of updates: 14
  • Update frequency: every 14.9 days
  • Top authors: plugin.builders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /966 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼6.75ms] Passed 4 tests

This is a short check of server-side resources used by Curator Studio - YouTube - Show videos from channels, playlists and more
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.1945.65 ▼5.50
Dashboard /wp-admin3.76 ▲0.1252.89 ▼14.23
Posts /wp-admin/edit.php3.81 ▲0.1351.53 ▼1.66
Add New Post /wp-admin/post-new.php6.62 ▲0.4796.11 ▼5.59
Media Library /wp-admin/upload.php3.62 ▲0.1338.84 ▲3.33
YouTube /wp-admin/admin.php?page=curator-studio-youtube3.5935.77
Curator Studio /wp-admin/admin.php?page=curator-studio3.4933.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 149 new files
Database: 3 new tables, 6 new options
New tables
wp_cstudio_items
wp_cstudio_apps
wp_cstudio_sources
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Curator Studio - YouTube - Show videos from channels, playlists and more
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.26 ▲0.072.48 ▲0.3743.51 ▲1.38
Dashboard /wp-admin2,222 ▲455.65 ▼0.05100.11 ▲11.9741.89 ▲3.44
Posts /wp-admin/edit.php2,127 ▲272.01 ▼0.0135.60 ▼0.7234.39 ▼2.89
Add New Post /wp-admin/post-new.php1,548 ▲1717.66 ▼5.55599.60 ▼107.7349.66 ▼9.09
Media Library /wp-admin/upload.php1,427 ▲334.20 ▼0.0396.73 ▼1.3645.25 ▲1.82
YouTube /wp-admin/admin.php?page=curator-studio-youtube1,0405.59118.5767.97
Curator Studio /wp-admin/admin.php?page=curator-studio1,0645.59136.9365.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_cstudio_items
    • wp_cstudio_apps
    • wp_cstudio_sources
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 17× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/curator-studio-youtube/platform/YouTube.php
    • > /wp-content/plugins/curator-studio-youtube/platform/BaseSource.php
    • > /wp-content/plugins/curator-studio-youtube/utils/Utils.php
    • > /wp-content/plugins/curator-studio-youtube/utils/URL/Vimeo.php
    • > /wp-content/plugins/curator-studio-youtube/platform/Platform.php
    • > /wp-content/plugins/curator-studio-youtube/core/Infra.php
    • > /wp-content/plugins/curator-studio-youtube/core/Streamer.php
    • > /wp-content/plugins/curator-studio-youtube/utils/URL/Twitter.php
    • > /wp-content/plugins/curator-studio-youtube/db/DB.php
    • > /wp-content/plugins/curator-studio-youtube/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in curator-studio-youtube/assets to your readme.txt
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

curator-studio-youtube/start.php 92% from 13 tests

Analyzing the main PHP file in "Curator Studio - YouTube - Show videos from channels, playlists and more" version 0.1.3
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("curator-studio-youtube.php" instead of "start.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected14,032 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript851,2554427,956
PHP196022873,081
Vuejs Component4241992,995

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.34
Average class complexity22.12
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods243
▷ Static methods7430.45%
▷ Public methods22492.18%
▷ Protected methods104.12%
▷ Private methods93.70%
Functions52
▷ Named functions815.38%
▷ Anonymous functions4484.62%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin