84% simple-yt-video-feeds

Code Review | Simple Yt Video Feeds

WordPress plugin Simple Yt Video Feeds scored84%from 54 tests.

About plugin

  • Plugin page: simple-yt-video-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: amybeagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /589 total downloads

Benchmarks

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.04MB] [CPU: ▼2.96ms] Passed 4 tests

An overview of server-side resources used by Simple Yt Video Feeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.70 ▲2.74
Dashboard /wp-admin3.35 ▲0.0158.05 ▼5.52
Posts /wp-admin/edit.php3.40 ▲0.0552.62 ▲1.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.58 ▼10.92
Media Library /wp-admin/upload.php3.28 ▲0.0540.18 ▲9.62
Simple Yt Video Feeds /wp-admin/options-general.php?page=simple-yt-video-feeds/simple-yt-video-feeds.php3.2434.17

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple Yt Video Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.37 ▲0.022.48 ▲0.8742.40 ▲1.13
Dashboard /wp-admin2,201 ▲245.62 ▼0.0190.49 ▼0.7340.12 ▼3.16
Posts /wp-admin/edit.php2,106 ▲61.98 ▲0.0435.84 ▼0.2033.63 ▼1.22
Add New Post /wp-admin/post-new.php1,545 ▲1923.05 ▼0.05658.49 ▼15.8153.90 ▼4.77
Media Library /wp-admin/upload.php1,409 ▲124.18 ▼0.02101.03 ▼3.0048.46 ▲3.74
Simple Yt Video Feeds /wp-admin/options-general.php?page=simple-yt-video-feeds/simple-yt-video-feeds.php8572.0125.2732.19

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
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-yt-video-feeds/simple-yt-video-feeds.php:118

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: youtube widget, youtube slider, embed youtube, simple yt video feeds, youtube profile widget plugin...

simple-yt-video-feeds/simple-yt-video-feeds.php Passed 13 tests

This is the main PHP file of "Simple Yt Video Feeds" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Simple Yt Video Feeds - An awesome youtube hosted video slider.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin332 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15723191
CSS170137
HTML1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/syvf_icon.png1.78KB0.98KB▼ 45.02%