10% rather-simple-youtube

Code Review | Rather Simple YouTube

WordPress plugin Rather Simple YouTube scored10%from 54 tests.

About plugin

  • Plugin page: rather-simple-you...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Mar 10, 2013
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: Jorijn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /794 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/rather-simple-youtube/rather-simple-youtube.php+110
    Methods with the same name as their class will not be constructors in a future version of PHP; SYT_Video_Widget has a deprecated constructor

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

Server-side resources used by Rather Simple YouTube
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.55 ▼3.71
Dashboard /wp-admin3.32 ▼0.0343.49 ▼12.71
Posts /wp-admin/edit.php3.37 ▲0.0145.29 ▼2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.38 ▼7.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.82 ▼2.23
Simple YouTube /wp-admin/options-general.php?page=syt-settings3.1827.57

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_syt_video_widget
widget_recent-comments

Browser metrics Passed 4 tests

Rather Simple YouTube: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.141.72 ▲0.0443.05 ▲3.37
Dashboard /wp-admin2,210 ▲195.85 ▲0.98101.54 ▲0.4538.32 ▼5.49
Posts /wp-admin/edit.php2,093 ▲221.97 ▼0.0333.74 ▼1.6136.56 ▲2.99
Add New Post /wp-admin/post-new.php1,545 ▲1218.10 ▼5.43649.74 ▼0.4856.97 ▲4.04
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.03100.11 ▼14.5647.38 ▼0.88
Simple YouTube /wp-admin/options-general.php?page=syt-settings7982.0623.6924.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_syt_video_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=syt-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=syt-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rather-simple-youtube/rather-simple-youtube.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Configuring the selected YouTube user), #2 (Inserting a video)
Please take inspiration from this readme.txt

rather-simple-youtube/rather-simple-youtube.php Passed 13 tests

The entry point to "Rather Simple YouTube" version 1.0 is a PHP file that has certain tags in its header comment area
84 characters long description:
YouTube plug-in which makes you enter a channel and offers a pick-style video widget

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
Good job! No executable or dangerous file extensions detected147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12521147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png24.80KB7.20KB▼ 70.96%
assets/screenshot-1.png24.47KB7.33KB▼ 70.06%