10% visio-playlist

Code Review | Visio Playlist

WordPress plugin Visio Playlist scored10%from 54 tests.

About plugin

  • Plugin page: visio-playlist
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: innovativeroots (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,884 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/visio-playlist/visio-playlist.php+164
    Function create_function() is deprecated

Server metrics [RAM: ▼1.95MB] [CPU: ▼51.06ms] Passed 4 tests

Server-side resources used by Visio Playlist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.35 ▼35.86
Dashboard /wp-admin2.06 ▼1.245.23 ▼42.05
Posts /wp-admin/edit.php2.06 ▼1.295.81 ▼42.12
Add New Post /wp-admin/post-new.php2.06 ▼3.825.57 ▼84.19
Media Library /wp-admin/upload.php2.06 ▼1.174.97 ▼33.49
Settings /wp-admin/admin.php?page=settings2.066.76
List Items /wp-admin/admin.php?page=listitems2.066.81
Playlists /wp-admin/admin.php?page=playlists2.066.97

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: 2 new tables, 12 new options
New tables
wp_visio_playlists
wp_visio_playlists_lists
New WordPress options
widget_visio_playlist_plugin
visio_playlist_artist_name
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
visio_playlist_order_by
db_upgraded
visio_playlist_first_column
can_compress_scripts
visio_playlist_show_headings
...

Browser metrics Passed 4 tests

Visio Playlist: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.65 ▼0.724.75 ▲2.8841.69 ▼4.82
Dashboard /wp-admin2,237 ▲494.85 ▼0.97109.34 ▲3.7642.22 ▲3.55
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0539.50 ▲1.9036.73 ▲3.95
Add New Post /wp-admin/post-new.php1,553 ▲2922.75 ▼0.24585.62 ▼49.9560.44 ▲2.97
Media Library /wp-admin/upload.php1,416 ▲284.33 ▲0.1595.22 ▼12.8942.54 ▼3.74
Settings /wp-admin/admin.php?page=settings9392.1823.2328.54
List Items /wp-admin/admin.php?page=listitems9772.0625.1725.63
Playlists /wp-admin/admin.php?page=playlists9302.1527.8026.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/visio-playlist/visio-playlist.php+164
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_visio_playlist_plugin
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Deprecated in wp-content/plugins/visio-playlist/visio-playlist.php+164
    Function create_function() is deprecated
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in visio_playlist_plugin is deprecated since version 4.3.0! Use __construct() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Warning in wp-content/plugins/visio-playlist/visio-playlist.php+50
    Use of undefined constant ir_visio_playlist_display_settings - assumed 'ir_visio_playlist_display_settings' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Warning in wp-content/plugins/visio-playlist/visio-playlist.php+51
    Use of undefined constant ir_visio_playlist_display_playlists - assumed 'ir_visio_playlist_display_playlists' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Warning in wp-content/plugins/visio-playlist/visio-playlist.php+52
    Use of undefined constant ir_visio_playlist_display_listitems - assumed 'ir_visio_playlist_display_listitems' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Notice in wp-content/plugins/visio-playlist/includes/playlists.php+131
    Undefined variable: success
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Notice in wp-content/plugins/visio-playlist/includes/playlists.php+122
    Undefined variable: error_found
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Notice in wp-content/plugins/visio-playlist/includes/playlists.php+171
    Undefined variable: data
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Notice in wp-content/plugins/visio-playlist/includes/playlists.php+171
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=playlists
    • > Notice in wp-content/plugins/visio-playlist/includes/playlists.php+139
    Undefined index: msgid

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/visio-playlist/includes/settings.php
    • > /wp-content/plugins/visio-playlist/includes/listitems.php
    • > /wp-content/plugins/visio-playlist/includes/playlists.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/visio-playlist/visio-playlist.php:15

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

visio-playlist/visio-playlist.php 92% from 13 tests

The main PHP file in "Visio Playlist" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin715 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP47220694
CSS20121

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
images/music_play_button.png2.33KB1.32KB▼ 43.29%