84% oembed-external-video

Code Review | oEmbed External Video

WordPress plugin oEmbed External Video scored84%from 54 tests.

About plugin

  • Plugin page: oembed-external-v...
  • Plugin version: 2.3.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2014
  • Latest release: Mar 13, 2023
  • Number of updates: 40
  • Update frequency: every 79.2 days
  • Top authors: parorrey (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /14,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.95ms] Passed 4 tests

Server-side resources used by oEmbed External Video
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.03 ▼0.39
Dashboard /wp-admin3.35 ▲0.0554.11 ▲1.93
Posts /wp-admin/edit.php3.46 ▲0.1153.22 ▲2.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0499.73 ▼8.27
Media Library /wp-admin/upload.php3.27 ▲0.0436.27 ▼1.07
oEmbed Video /wp-admin/options-general.php?page=oembed-external-video-settings3.2433.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for oEmbed External Video
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.27 ▲0.001.87 ▼0.0343.71 ▲3.68
Dashboard /wp-admin2,199 ▲285.54 ▲0.0386.27 ▼8.8741.88 ▲0.05
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0239.60 ▲2.5235.36 ▼4.20
Add New Post /wp-admin/post-new.php1,530 ▲222.92 ▼0.15678.99 ▲5.7155.64 ▲3.69
Media Library /wp-admin/upload.php1,407 ▲74.17 ▲0.07100.64 ▼1.8244.79 ▲0.51
oEmbed Video /wp-admin/options-general.php?page=oembed-external-video-settings9212.0223.9326.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • wp_oev_settings
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/oembed-external-video/oEmbed-external-video.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: mp4, video, oembed, html5, external video

oembed-external-video/oEmbed-external-video.php 85% from 13 tests

Analyzing the main PHP file in "oEmbed External Video" version 2.3.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oembed-external-video.php" instead of "oEmbed-external-video.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)

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
Everything looks great! No dangerous files found in this plugin261 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15537175
PO File2243086

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.22KB7.64KB▼ 55.66%
screenshot-2.png19.97KB8.25KB▼ 58.68%
screenshot-3.png141.39KB57.96KB▼ 59.01%