Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.63ms] Passed 4 tests
Server-side resources used by Random Posts, Mp3 Player + ShareButton
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.74 ▲1.30 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.85 ▼12.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.54 ▼4.62 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.53 ▼10.42 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.56 ▲1.06 |
Random Posts, Mp3 Player + ShareButton /wp-admin/options-general.php?page=DVS-4-in-1 | 3.18 | 27.68 |
Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-posts |
can_compress_scripts |
random_post_mp3 |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Random Posts, Mp3 Player + ShareButton: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲52 | 14.42 ▼0.03 | 1.70 ▲0.17 | 41.13 ▼0.43 |
Dashboard /wp-admin | 2,199 ▲22 | 5.54 ▼0.13 | 81.94 ▼0.91 | 38.90 ▼6.06 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.00 | 38.99 ▲4.27 | 33.62 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.62 ▲0.53 | 644.86 ▼70.88 | 43.51 ▼19.93 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.17 ▲0.04 | 98.13 ▲1.58 | 41.62 ▼2.97 |
Random Posts, Mp3 Player + ShareButton /wp-admin/options-general.php?page=DVS-4-in-1 | 1,184 | 1.35 | 8.18 | 55.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=DVS-4-in-1
- > 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=DVS-4-in-1
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=DVS-4-in-1
- > Error in wp-content/plugins/random-posts-mp3-player-sharebutton/rpost_mp3player_share.php+354
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/random-posts-mp3-player-sharebutton/rpost_mp3player_share.php:354
Stack trace:
#0 wp-includes/class-wp-hook.php(310): rpsbMp3_setting_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#5 {main}
thrown
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/random-posts-mp3-player-sharebutton/style.css.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/random-posts-mp3-player-sharebutton/webvsmobile.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/random-posts-mp3-player-sharebutton/rpost_mp3player_share.php:27
- > PHP Notice
Undefined variable: base_color in wp-content/plugins/random-posts-mp3-player-sharebutton/webvsmobile.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/random-posts-mp3-player-sharebutton/webvsmobile.php:4
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/random-posts-mp3-player-sharebutton/rpost_mp3player_share.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/random-posts-mp3-player-sharebutton/webvsmobile_notif.php:4
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/random-posts-mp3-player-sharebutton/webvsmobile_notif.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
random-posts-mp3-player-sharebutton/rpost_mp3player_share.php 85% from 13 tests
Analyzing the main PHP file in "Random Posts, Mp3 Player + ShareButton" version 1.4.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("random-posts-mp3-player-sharebutton.php" instead of "rpost_mp3player_share.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 480 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
No dangerous file extensions were detected1,085 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 31 | 86 | 619 |
JavaScript | 4 | 155 | 205 | 460 |
CSS | 1 | 2 | 8 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/facebook.png | 2.11KB | 1.72KB | ▼ 18.55% |
img/up2.png | 1.12KB | 1.18KB | 0.00% |
img/leftgree.png | 0.50KB | 0.67KB | 0.00% |
img/gmail.png | 3.96KB | 2.19KB | ▼ 44.76% |
img/rightgree.png | 0.55KB | 0.67KB | 0.00% |