84% awesome-youtube-embed

Code Review | Awesome YouTube Embed

WordPress plugin Awesome YouTube Embed scored84%from 54 tests.

About plugin

  • Plugin page: awesome-youtube-e...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: Mar 24, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: optimalplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.78ms] Passed 4 tests

This is a short check of server-side resources used by Awesome YouTube Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0132.66 ▼6.75
Dashboard /wp-admin3.32 ▲0.0245.10 ▼5.37
Posts /wp-admin/edit.php3.37 ▲0.0145.18 ▼3.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.04 ▼7.18
Media Library /wp-admin/upload.php3.24 ▲0.0133.01 ▼1.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome YouTube Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.21 ▼1.174.30 ▲2.5838.05 ▼4.90
Dashboard /wp-admin2,209 ▲215.91 ▲1.0396.40 ▼21.8438.36 ▼5.16
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0036.95 ▲1.3732.00 ▼3.45
Add New Post /wp-admin/post-new.php1,514 ▼717.58 ▼5.62616.31 ▼89.9660.85 ▲6.83
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0196.12 ▼1.3043.45 ▲0.24

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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_filter() in wp-content/plugins/awesome-youtube-embed/youtube-embed-for-wp.php:12

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 require attention:
  • Screenshots: Add an image for screenshot #1 (Additional settings of [Awesome YouTube Embed Pro](http://demo.optimalplugins.com/awesome-youtube-embed-pro))
The official readme.txt might help

awesome-youtube-embed/youtube-embed-for-wp.php 92% from 13 tests

"Awesome YouTube Embed" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-youtube-embed.php" instead of "youtube-embed-for-wp.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
Success! There were no dangerous files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161243

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.30
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin