83% cluevo-lms-extension-oembed-modules

Code Review | CLUEVO LMS Extension: Video Tutorial Manager for YouTube (and other oEmbed providers)

WordPress plugin CLUEVO LMS Extension: Video Tutorial Manager for YouTube (and other oEmbed providers) scored83%from 54 tests.

About plugin

  • Plugin page: cluevo-lms-extens...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.11.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2019
  • Latest release: Aug 12, 2023
  • Number of updates: 20
  • Update frequency: every 73.3 days
  • Top authors: cluevo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.68ms] Passed 4 tests

This is a short check of server-side resources used by CLUEVO LMS Extension: Video Tutorial Manager for YouTube (and other oEmbed providers)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.55 ▲2.11
Dashboard /wp-admin3.31 ▲0.0050.78 ▼12.53
Posts /wp-admin/edit.php3.36 ▲0.0051.38 ▼4.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.51 ▼7.65
Media Library /wp-admin/upload.php3.23 ▲0.0037.41 ▼2.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for CLUEVO LMS Extension: Video Tutorial Manager for YouTube (and other oEmbed providers)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.561.68 ▲0.0839.07 ▼3.26
Dashboard /wp-admin2,195 ▲185.59 ▼0.10109.18 ▲17.6841.98 ▼1.58
Posts /wp-admin/edit.php2,103 ▼02.02 ▼0.0933.69 ▼9.3828.80 ▼11.50
Add New Post /wp-admin/post-new.php1,545 ▼023.35 ▼0.15686.62 ▼9.7161.22 ▲7.47
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.01101.83 ▼8.5143.05 ▼5.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cluevo-lms-extension-oembed-modules/cluevo-lms-extension-oembed-modules.php:300

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

cluevo-lms-extension-oembed-modules/cluevo-lms-extension-oembed-modules.php 77% from 13 tests

The main file in "CLUEVO LMS Extension: Video Tutorial Manager for YouTube (and other oEmbed providers)" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "1.11.0")
  • Plugin Name: A shorter plugin name is better (currently 85 characters long instead of max. 70)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected490 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12914277
PO File24476128
JavaScript14185

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods14100.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/WordPress-EXTENSION_VTM_ICON_256x256.png5.38KB3.65KB▼ 32.12%