84% youtube-video-feed

Code Review | YouTube Feed

WordPress plugin YouTube Feed scored84%from 54 tests.

About plugin

  • Plugin page: youtube-video-feed
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2013
  • Latest release: Jul 31, 2013
  • Number of updates: 7
  • Update frequency: every 3.4 days
  • Top authors: plumwd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.36ms] Passed 4 tests

An overview of server-side resources used by YouTube Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.74 ▼1.09
Dashboard /wp-admin3.33 ▲0.0345.30 ▼1.47
Posts /wp-admin/edit.php3.38 ▲0.0343.53 ▼3.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.22 ▼23.21
Media Library /wp-admin/upload.php3.26 ▲0.0343.88 ▲12.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for YouTube Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.23 ▼1.181.99 ▲0.1942.52 ▼6.76
Dashboard /wp-admin2,220 ▲324.92 ▼1.0995.30 ▼8.8178.01 ▲34.92
Posts /wp-admin/edit.php2,103 ▲142.01 ▲0.0032.87 ▼6.8831.81 ▼2.34
Add New Post /wp-admin/post-new.php1,683 ▲15522.14 ▲3.83766.20 ▲158.9974.18 ▲25.16
Media Library /wp-admin/upload.php1,399 ▲84.21 ▲0.04110.47 ▲8.5369.85 ▲27.73

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 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/youtube-video-feed/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: youtube video feed, youtube shortcode

youtube-video-feed/index.php 92% from 13 tests

The main PHP script in "YouTube Feed" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("youtube-video-feed.php" instead of "index.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
Good job! No executable or dangerous file extensions detected192 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12710154
JavaScript11118
CSS21111
HTML1109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/youtube-16.png1.53KB0.95KB▼ 37.84%
images/plumeria.png2.82KB1.54KB▼ 45.33%
images/youtube.png1.21KB1.38KB0.00%