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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.35 ▼35.86 |
Dashboard /wp-admin | 2.06 ▼1.24 | 5.23 ▼42.05 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 5.81 ▼42.12 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.57 ▼84.19 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 4.97 ▼33.49 |
Settings /wp-admin/admin.php?page=settings | 2.06 | 6.76 |
List Items /wp-admin/admin.php?page=listitems | 2.06 | 6.81 |
Playlists /wp-admin/admin.php?page=playlists | 2.06 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲193 | 13.65 ▼0.72 | 4.75 ▲2.88 | 41.69 ▼4.82 |
Dashboard /wp-admin | 2,237 ▲49 | 4.85 ▼0.97 | 109.34 ▲3.76 | 42.22 ▲3.55 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.06 ▲0.05 | 39.50 ▲1.90 | 36.73 ▲3.95 |
Add New Post /wp-admin/post-new.php | 1,553 ▲29 | 22.75 ▼0.24 | 585.62 ▼49.95 | 60.44 ▲2.97 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.33 ▲0.15 | 95.22 ▼12.89 | 42.54 ▼3.74 |
Settings /wp-admin/admin.php?page=settings | 939 | 2.18 | 23.23 | 28.54 |
List Items /wp-admin/admin.php?page=listitems | 977 | 2.06 | 25.17 | 25.63 |
Playlists /wp-admin/admin.php?page=playlists | 930 | 2.15 | 27.80 | 26.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 72 | 20 | 694 |
CSS | 2 | 0 | 1 | 21 |
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 code | 0.41 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/music_play_button.png | 2.33KB | 1.32KB | ▼ 43.29% |