84% youtube-feed-2-wp-post

Code Review | YouTube Video to WP Post

WordPress plugin YouTube Video to WP Post scored84%from 54 tests.

About plugin

  • Plugin page: youtube-feed-2-wp...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: May 1, 2016
  • Number of updates: 24
  • Update frequency: every 25.0 days
  • Top authors: sohelamin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /3,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by YouTube Video to WP Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.95 ▲1.13
Dashboard /wp-admin3.45 ▲0.1148.75 ▼14.58
Posts /wp-admin/edit.php3.57 ▲0.2150.82 ▲4.44
Add New Post /wp-admin/post-new.php6.04 ▲0.1591.84 ▼1.18
Media Library /wp-admin/upload.php3.38 ▲0.1536.87 ▲1.38
General /wp-admin/admin.php?page=youtube-video-to-wp-post3.3431.30
Settings /wp-admin/admin.php?page=youtube-video-to-wp-post-settings3.3432.37

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for YouTube Video to WP Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.36 ▼1.021.55 ▼0.3042.22 ▲0.64
Dashboard /wp-admin2,240 ▲525.88 ▲0.7997.44 ▼7.9081.38 ▲39.02
Posts /wp-admin/edit.php2,120 ▲312.03 ▲0.0239.48 ▲2.6136.03 ▼1.98
Add New Post /wp-admin/post-new.php6,418 ▲4,89922.64 ▼0.59959.60 ▲244.0851.13 ▼8.25
Media Library /wp-admin/upload.php1,422 ▲314.22 ▼0.08107.10 ▲3.4946.73 ▲3.00
General /wp-admin/admin.php?page=youtube-video-to-wp-post8042.0624.1825.12
Settings /wp-admin/admin.php?page=youtube-video-to-wp-post-settings8181.7126.9526.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/youtube-feed-2-wp-post/includes/views/dashboard.php:2

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === youtube-feed-2-wp-post === )
The official readme.txt is a good inspiration

youtube-feed-2-wp-post/youtube-video-to-wp-post.php 92% from 13 tests

Analyzing the main PHP file in "YouTube Video to WP Post" version 1.5
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-feed-2-wp-post.php" instead of "youtube-video-to-wp-post.php")

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
There were no executable files found in this plugin776 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5174397755
CSS10021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity17.33
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods412.12%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1376.47%
▷ Anonymous functions423.53%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png0.65KB0.75KB0.00%