89% simple-youtube-responsive

Code Review | Simple YouTube Responsive

WordPress plugin Simple YouTube Responsive scored89%from 54 tests.

About plugin

  • Plugin page: simple-youtube-re...
  • Plugin version: 3.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Jul 19, 2023
  • Number of updates: 107
  • Update frequency: every 22.1 days
  • Top authors: eirudo (59.81%)Dark Ard (41.12%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /39,788 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Simple YouTube Responsive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1443.12 ▲1.27
Dashboard /wp-admin3.46 ▲0.1249.99 ▼15.68
Posts /wp-admin/edit.php3.58 ▲0.2249.60 ▼0.15
Add New Post /wp-admin/post-new.php6.05 ▲0.1687.93 ▼11.58
Media Library /wp-admin/upload.php3.39 ▲0.1540.25 ▲6.70
Shortcode /wp-admin/admin.php?page=eirudo_ytresponsive_shortcode3.3530.64
About /wp-admin/admin.php?page=eirudo_ytresponsive_about3.3534.14
Configure /wp-admin/admin.php?page=eirudo_ytresponsive_options3.3534.32

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple YouTube Responsive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.20 ▼0.171.76 ▲0.0342.29 ▼1.58
Dashboard /wp-admin2,226 ▲485.67 ▼0.0688.74 ▼17.4040.54 ▲0.05
Posts /wp-admin/edit.php2,131 ▲281.98 ▲0.0137.13 ▲0.5537.28 ▲3.07
Add New Post /wp-admin/post-new.php1,551 ▲2522.96 ▼0.23676.30 ▲51.7554.64 ▲0.26
Media Library /wp-admin/upload.php1,434 ▲344.19 ▼0.0398.16 ▼3.3943.92 ▼1.31
Shortcode /wp-admin/admin.php?page=eirudo_ytresponsive_shortcode1,1592.0923.3045.67
About /wp-admin/admin.php?page=eirudo_ytresponsive_about1,0562.1224.5642.58
Configure /wp-admin/admin.php?page=eirudo_ytresponsive_options1,0602.1324.3629.63

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
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • _erdyt_ver
    • _erdyt_options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

simple-youtube-responsive/eirudo-ytresponsive.php 92% from 13 tests

This is the main PHP file of "Simple YouTube Responsive" version 3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-youtube-responsive.php" instead of "eirudo-ytresponsive.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin982 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1487.50%
▷ Anonymous functions212.50%
▷ Global constants3100.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
There were not PNG files found in your plugin