88% youtube-content

Code Review | Youtube Content

WordPress plugin Youtube Content scored 88% from 54 tests.

About plugin

  • Plugin page: youtube-content
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.4.1
  • WordPress version: 5.8.1
  • First release: Dec 21, 2013
  • Latest release: Jan 9, 2016
  • Number of updates: 10
  • Update frequency: every 76.4 days
  • Top authors: almos20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,216 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼147.18ms] Passed 4 tests

An overview of server-side resources used by Youtube Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.58 ▲2.32
Dashboard /wp-admin3.08 ▲0.0346.13 ▼4.82
Posts /wp-admin/edit.php3.14 ▲0.0340.72 ▼5.88
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.09 ▼572.19
Media Library /wp-admin/upload.php3.03 ▲0.0231.84 ▼5.84
Youtube Content /wp-admin/edit.php?page=simple-simple-youtube_content3.0030.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Youtube Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.88 ▼0.0910.69 ▲2.0246.96 ▲3.62
Dashboard /wp-admin2,977 ▲465.99 ▲0.04148.55 ▼14.05109.04 ▲4.85
Posts /wp-admin/edit.php2,746 ▲72.70 ▼0.0066.27 ▼1.4784.73 ▼1.59
Add New Post /wp-admin/post-new.php1,677 ▼619.08 ▲0.32385.57 ▼24.62115.45 ▲5.12
Media Library /wp-admin/upload.php1,817 ▲105.01 ▼0.01159.09 ▲0.77113.95 ▼2.21
Youtube Content /wp-admin/edit.php?page=simple-simple-youtube_content1,0972.2155.4287.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 50% 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 | 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-content/simple-youtube-content.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?page=simple-simple-youtube_content
    • > Network (severe)
    wp-content/plugins/youtube-content/simple-sticky-footer.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

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
3 plugin tags: post, youtube, content generator

youtube-content/simple-youtube-content.php 92% from 13 tests

The main PHP file in "Youtube Content" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-content.php" instead of "simple-youtube-content.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14538113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in 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%
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
There are no PNG files in this plugin