73% mk-auto-youtube-player

Code Review | MK Auto Youtube Player

WordPress plugin MK Auto Youtube Player scored73%from 54 tests.

About plugin

  • Plugin page: mk-auto-youtube-p...
  • Plugin version: 2014.11.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2014
  • Latest release: Nov 7, 2014
  • Number of updates: 35
  • Update frequency: every 1.4 days
  • Top authors: mkplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,449 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.22ms] Passed 4 tests

An overview of server-side resources used by MK Auto Youtube Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.89 ▼30.70
Dashboard /wp-admin2.05 ▼1.265.44 ▼39.54
Posts /wp-admin/edit.php2.05 ▼1.315.76 ▼44.97
Add New Post /wp-admin/post-new.php2.05 ▼3.845.04 ▼85.67
Media Library /wp-admin/upload.php2.05 ▼1.185.29 ▼27.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for MK Auto Youtube Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13213.46 ▼0.898.68 ▲6.9840.68 ▲1.05
Dashboard /wp-admin2,198 ▲235.63 ▼0.0783.68 ▼17.3940.30 ▼1.32
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0236.32 ▼3.2835.28 ▼1.87
Add New Post /wp-admin/post-new.php1,529 ▲323.22 ▲0.29644.60 ▼14.2453.79 ▼2.11
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.1196.43 ▼13.4941.63 ▼6.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mk-auto-youtube-player/plugin-youtube-auto-player.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 39 tag instead of maximum 10
Please take inspiration from this readme.txt

mk-auto-youtube-player/plugin-youtube-auto-player.php 85% from 13 tests

"MK Auto Youtube Player" version 2014.11.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 561 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mk-auto-youtube-player.php" instead of "plugin-youtube-auto-player.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231761

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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
No PNG files were detected