74% mk-smart-player

Code Review | MK Smart Player

WordPress plugin MK Smart Player scored74%from 54 tests.

About plugin

  • Plugin page: mk-smart-player
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Aug 27, 2014
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: mkplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,000 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.73ms] Passed 4 tests

Analyzing server-side resources used by MK Smart Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.59 ▼37.24
Dashboard /wp-admin2.09 ▼1.216.41 ▼48.53
Posts /wp-admin/edit.php2.09 ▼1.276.55 ▼49.63
Add New Post /wp-admin/post-new.php2.09 ▼3.806.42 ▼87.50
Media Library /wp-admin/upload.php2.09 ▼1.145.60 ▼36.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for MK Smart Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,095 ▲34913.70 ▼0.478.08 ▲6.3344.71 ▲4.18
Dashboard /wp-admin2,422 ▲2374.87 ▼0.04113.32 ▲5.3540.98 ▲1.37
Posts /wp-admin/edit.php2,308 ▲2162.03 ▲0.0241.65 ▼1.8535.68 ▲0.83
Add New Post /wp-admin/post-new.php1,735 ▲20723.26 ▲5.05618.12 ▲0.9057.23 ▲3.17
Media Library /wp-admin/upload.php1,604 ▲2164.26 ▲0.0999.26 ▼9.6242.58 ▼2.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mk-smart-player/stuff-ur-looking-for.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mk-smart-player/stuff-ur-looking-for.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-smart-player/Shortcode.php:5

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 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
These attributes need your attention:
  • Tags: There are too many tags (39 tag instead of maximum 10)
You can take inspiration from this readme.txt

mk-smart-player/plugin-mk-smart-player.php 92% from 13 tests

The primary PHP file in "MK Smart Player" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mk-smart-player.php" instead of "plugin-mk-smart-player.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin269 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36338268
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wp-video-player-icon.png4.67KB1.63KB▼ 65.20%