62% yoplayer

Code Review | Yoplayer

WordPress plugin Yoplayer scored62%from 54 tests.

About plugin

  • Plugin page: yoplayer
  • Plugin version: 4.1.33.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.3
  • WordPress version: 6.3.1
  • First release: Jul 23, 2014
  • Latest release: Feb 25, 2016
  • Number of updates: 41
  • Update frequency: every 18.2 days
  • Top authors: yospace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,205 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼16.95ms] Passed 4 tests

This is a short check of server-side resources used by Yoplayer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.47 ▲0.11
Dashboard /wp-admin3.41 ▲0.0650.64 ▼11.86
Posts /wp-admin/edit.php3.52 ▲0.1655.10 ▲5.28
Add New Post /wp-admin/post-new.php3.26 ▼2.6338.56 ▼57.36
Media Library /wp-admin/upload.php3.33 ▲0.1038.85 ▲1.32
Yoplayer Defaults /wp-admin/options-general.php?page=yoplayer-defaults3.2733.15

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_yoplayer_metadata
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Yoplayer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.38 ▲0.232.89 ▲0.9644.93 ▼0.96
Dashboard /wp-admin2,205 ▲255.50 ▼0.1490.48 ▼10.9340.30 ▼2.23
Posts /wp-admin/edit.php2,107 ▲102.02 ▲0.0139.79 ▲0.2436.10 ▼0.43
Add New Post /wp-admin/post-new.php1,537 ▲1023.08 ▼0.10669.28 ▼21.0348.13 ▼11.30
Media Library /wp-admin/upload.php1,407 ▲44.22 ▲0.02107.62 ▲3.0046.96 ▲0.62
Yoplayer Defaults /wp-admin/options-general.php?page=yoplayer-defaults9902.1723.8737.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_yoplayer_metadata
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=yoplayer-defaults
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=yoplayer-defaults
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/yoplayer/yoplayer.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/yoplayer/yoplayer.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoplayer/admin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: yoplayer, yospace, video

yoplayer/yoplayer.php 92% from 13 tests

The entry point to "Yoplayer" version 4.1.33.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 511 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin532 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33763514
XML10017
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/ControlBar-TopRight.png0.29KB0.27KB▼ 8.39%
skins/ControlBar-TopLeft.png0.27KB0.25KB▼ 4.74%
skins/ControlBar-Left.png0.20KB0.14KB▼ 28.99%
skins/ControlBar-Fill.png0.19KB0.12KB▼ 34.90%
skins/ControlBar-Top.png0.22KB0.17KB▼ 25.55%