Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/emp-song-selector/emp-song-selector-free.php+1486
Undefined variable: new_array
Server metrics [RAM: ▲0.42MB] [CPU: ▲2.90ms] Passed 4 tests
This is a short check of server-side resources used by EMP Song Selector Tool for Mobile DJs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 40.70 ▼0.69 |
Dashboard /wp-admin | 3.74 ▲0.43 | 52.67 ▲1.47 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 61.09 ▲11.99 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 95.93 ▲1.42 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 47.83 ▲9.41 |
Manage Songs /wp-admin/edit.php?post_type=songs | 3.70 | 42.84 |
Import Songs /wp-admin/edit.php?post_type=songs&page=import-songs | 3.63 | 38.16 |
Add New Song /wp-admin/post-new.php?post_type=songs | 3.71 | 47.34 |
Add-Ons /wp-admin/edit.php?post_type=songs&page=dsdj-ms-add-ons | 3.72 | 39.24 |
Memberships /wp-admin/edit.php?post_type=songs&page=dsdj-ms-memberships | 3.72 | 36.90 |
Settings /wp-admin/edit.php?post_type=songs&page=dsdj-ms-settings | 3.72 | 36.04 |
Dashboard /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard | 3.72 | 35.31 |
Server storage [IO: ▲8.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 313 new files
Database: no new tables, 9 new options
New WordPress options |
---|
zc_ms_stats |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
zc_ms_settings |
theysaidso_admin_options |
db_upgraded |
zc_ms_version |
Browser metrics Passed 4 tests
A check of browser resources used by EMP Song Selector Tool for Mobile DJs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲315 | 13.30 ▼1.29 | 2.42 ▲0.56 | 42.97 ▼3.62 |
Dashboard /wp-admin | 2,430 ▲242 | 5.18 ▲0.31 | 108.67 ▼4.49 | 62.88 ▲21.91 |
Posts /wp-admin/edit.php | 2,399 ▲307 | 2.26 ▲0.27 | 42.17 ▲0.02 | 36.24 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,893 ▲379 | 23.11 ▲5.61 | 595.06 ▼66.15 | 35.61 ▼20.16 |
Media Library /wp-admin/upload.php | 1,621 ▲230 | 4.41 ▲0.24 | 103.04 ▲1.00 | 83.55 ▲37.19 |
Manage Songs /wp-admin/edit.php?post_type=songs | 1,501 | 2.26 | 34.66 | 32.44 |
Import Songs /wp-admin/edit.php?post_type=songs&page=import-songs | 956 | 1.71 | 27.01 | 43.34 |
Add New Song /wp-admin/post-new.php?post_type=songs | 1,927 | 3.75 | 77.88 | 104.94 |
Add-Ons /wp-admin/edit.php?post_type=songs&page=dsdj-ms-add-ons | 2,431 | 4.15 | 81.49 | 66.80 |
Memberships /wp-admin/edit.php?post_type=songs&page=dsdj-ms-memberships | 2,465 | 4.29 | 77.85 | 119.56 |
Settings /wp-admin/edit.php?post_type=songs&page=dsdj-ms-settings | 2,428 | 4.19 | 84.33 | 95.19 |
Dashboard /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard | 2,450 | 4.17 | 82.02 | 120.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/emp-song-selector/emp-song-selector-free.php+1459
Array to string conversion
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- db_upgraded
- zc_ms_settings
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- zc_ms_version
- zc_ms_stats
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=songs
- > Notice in wp-content/plugins/emp-song-selector/emp-song-selector-free.php+1155
Trying to get property 'post_type' of non-object
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard
- > Notice in wp-content/plugins/emp-song-selector/php/settings_ui.php+16
Undefined index: custom_msg
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/emp-song-selector/emp-song-selector-free.php+248
Undefined index: post__in
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-add-ons
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/emp-song-selector/emp-song-selector-free.php+693
Undefined index: seconds
- 173 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-add-ons
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/emp-song-selector/php/mpdf/classes/otl.php+5636
Array and string offset access syntax with curly braces is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-add-ons
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/emp-song-selector/php/mpdf/mpdf.php+30572
A non well formed numeric value encountered
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-add-ons
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/emp-song-selector/php/mpdf/mpdf.php+10894
The each() function is deprecated. This message will be suppressed on further calls
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/emp-song-selector/php/mpdf/compress.php
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emp-song-selector/php/mpdf/graph.php on line 23
- > PHP Warning
include_once(): Failed opening '_JPGRAPH_PATHjpgraph_pie.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/emp-song-selector/php/mpdf/graph.php on line 28
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emp-song-selector/php/mpdf/graph.php on line 28
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emp-song-selector/php/mpdf/graph.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function register_post_type() in wp-content/plugins/emp-song-selector/php/songs-cpt.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_plugin_option() on null in wp-content/plugins/emp-song-selector/php/settings_ui.php:7
- > PHP Warning
include_once(_JPGRAPH_PATHjpgraph_scatter.php): failed to open stream: No such file or directory in wp-content/plugins/emp-song-selector/php/mpdf/graph.php on line 26
- > PHP Notice
Undefined index: dest in wp-content/plugins/emp-song-selector/php/mpdf/includes/out.php on line 12
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emp-song-selector/php/mpdf/graph.php on line 27
- > PHP Notice
Undefined index: filename in wp-content/plugins/emp-song-selector/php/mpdf/includes/out.php on line 5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=songs
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/emp-song-selector/js/library.js?ver=6.3.1:30:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/edit.php?post_type=songs&page=import-songs
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/emp-song-selector//js/import.js?ver=6.3.1:4:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=songs
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/emp-song-selector/js/library.js?ver=6.3.1:30:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=songs
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLInputElement.\u003Canonymous> (/wp-content/plugins/emp-song-selector/js/settings.js?ver=6.3.1:103:15)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/emp-song-selector/js/settings.js?ver=6.3.1:102:27)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=songs&page=dsdj-ms-dashboard
- > Network (severe)
wp-content/plugins/emp-song-selector-full/images/loading.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
emp-song-selector/emp-song-selector-free.php 92% from 13 tests
The main PHP file in "EMP Song Selector Tool for Mobile DJs" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("emp-song-selector.php" instead of "emp-song-selector-free.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin97,344 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 7,227 | 7,701 | 84,633 |
CSS | 10 | 232 | 53 | 8,429 |
SVG | 2 | 0 | 0 | 2,959 |
JavaScript | 9 | 581 | 152 | 1,218 |
JSON | 1 | 12 | 0 | 40 |
Markdown | 1 | 19 | 0 | 33 |
XML | 1 | 3 | 0 | 16 |
YAML | 1 | 4 | 0 | 16 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 8,314)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 1,542)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 560.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8,314.00 |
Average method complexity | 21.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,542.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 828 | |
▷ Static methods | 70 | 8.45% |
▷ Public methods | 806 | 97.34% |
▷ Protected methods | 21 | 2.54% |
▷ Private methods | 1 | 0.12% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 369 | |
▷ Global constants | 59 | 15.99% |
▷ Class constants | 310 | 84.01% |
▷ Public constants | 310 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pdf-icon-small.png | 0.63KB | 0.39KB | ▼ 38.00% |
images/close_icon.png | 3.35KB | 0.44KB | ▼ 86.75% |
images/header-bg.png | 0.20KB | 0.08KB | ▼ 57.35% |
images/emp-logo.png | 2.38KB | 1.99KB | ▼ 16.23% |
images/try-me-youtube.png | 1.58KB | 1.32KB | ▼ 16.41% |