78% youmax-channel-embeds-for-youtube-businesses

Code Review | Youtube Video Grid | Youmax

WordPress plugin Youtube Video Grid | Youmax scored78%from 54 tests.

About plugin

  • Plugin page: youmax-channel-em...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2016
  • Latest release: Mar 22, 2023
  • Number of updates: 26
  • Update frequency: every 88.4 days
  • Top authors: codehandling (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /3,376 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.74ms] Passed 4 tests

Analyzing server-side resources used by Youtube Video Grid | Youmax
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.10 ▼11.29
Dashboard /wp-admin3.36 ▲0.0249.69 ▼21.43
Posts /wp-admin/edit.php3.41 ▲0.0649.10 ▼0.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.04 ▼4.12
Media Library /wp-admin/upload.php3.29 ▲0.0637.51 ▼2.13
Add New /wp-admin/admin.php?page=youmax-single3.2332.36
Youmax /wp-admin/admin.php?page=youmax3.2836.49

Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Youtube Video Grid | Youmax
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲14114.85 ▲0.482.08 ▲0.1742.96 ▲1.63
Dashboard /wp-admin2,260 ▲544.96 ▲0.0898.07 ▼18.6336.53 ▼7.01
Posts /wp-admin/edit.php2,136 ▲392.26 ▲0.2335.02 ▼2.1136.14 ▼0.50
Add New Post /wp-admin/post-new.php1,556 ▲2523.65 ▲0.41664.98 ▼15.6568.78 ▲16.24
Media Library /wp-admin/upload.php1,439 ▲394.31 ▲0.18102.12 ▼8.6045.39 ▼0.95
Add New /wp-admin/admin.php?page=youmax-single1,1271.9934.8382.33
Youmax /wp-admin/admin.php?page=youmax9691.7627.8126.25

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=youmax-single
    • > Notice in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/admin/admin.php+298
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=youmax-single
    • > Notice in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/admin/admin.php+299
    Undefined index: instance

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
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/admin/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/youmax-wordpress.php:13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/admin/list.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/admin/list.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/youmax-channel-embeds-for-youtube-businesses/admin/list.php on line 5

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: video, vimeo, youtube, embed, gallery...

youmax-channel-embeds-for-youtube-businesses/youmax-wordpress.php 92% from 13 tests

The main file in "Youtube Video Grid | Youmax" v. 1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("youmax-channel-embeds-for-youtube-businesses.php" instead of "youmax-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected5,546 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS74213113,445
JavaScript65291411,168
SVG100520
PHP319431413

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin