Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'UVis_Plugin' not found
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.93ms] Passed 4 tests
A check of server-side resources used by UVisualize!
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.46 ▼2.32 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.12 ▼14.49 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.12 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.28 ▼11.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.82 ▲1.31 |
Modules /wp-admin/admin.php?page=uvis-admin-modules | 3.22 | 35.91 |
Settings /wp-admin/admin.php?page=uvis-options | 3.21 | 29.98 |
UVisualize! /wp-admin/admin.php?page=uvis-admin | 3.23 | 31.65 |
Server storage [IO: ▲4.76MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 338 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
uvis_playlist_dropdown_number |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for UVisualize!
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 14.51 ▲0.25 | 7.69 ▲5.98 | 41.51 ▲1.99 |
Dashboard /wp-admin | 2,231 ▲45 | 5.08 ▼0.94 | 115.28 ▲0.37 | 42.66 ▼1.01 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.38 ▲0.38 | 40.41 ▼0.41 | 37.48 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6,309 ▲4,781 | 23.67 ▲0.32 | 886.84 ▲246.15 | 37.33 ▼10.58 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.46 ▲0.22 | 95.60 ▼7.10 | 42.97 ▼0.72 |
Modules /wp-admin/admin.php?page=uvis-admin-modules | 1,019 | 2.14 | 31.05 | 27.99 |
Settings /wp-admin/admin.php?page=uvis-options | 1,011 | 2.44 | 43.11 | 34.95 |
UVisualize! /wp-admin/admin.php?page=uvis-admin | 964 | 2.03 | 27.29 | 30.96 |
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
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'UVis_Plugin' not found
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- uvis_playlist_dropdown_number
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvis-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvis-options
- > 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/admin.php?page=uvis-options
- > Warning in wp-content/plugins/uvisualize/includes/uvis-options.php+547
Invalid argument supplied for foreach()
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 take a closer look at the following
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/uvisualize/modules/map/images/tick.php
- > /wp-content/plugins/uvisualize/modules/map/images/play.php
- > /wp-content/plugins/uvisualize/modules/map/images/Lmapmarker.php
- > /wp-content/plugins/uvisualize/modules/map/images/default.php
- > /wp-content/plugins/uvisualize/modules/map/images/speaker.php
- > /wp-content/plugins/uvisualize/modules/map/images/wifi.php
- > /wp-content/plugins/uvisualize/uvis.php
- > /wp-content/plugins/uvisualize/modules/map/images/tent.php
- > /wp-content/plugins/uvisualize/modules/map/images/tower.php
- > /wp-content/plugins/uvisualize/modules/layers/images/layersarrow.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/uvisualize/modules/playlist/templates/playlist.tpl.php on line 8
- > PHP Notice
Undefined index: col in wp-content/plugins/uvisualize/modules/map/images/speaker.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/uvisualize/theme_files/single-uvis_visualization.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uvisualize/modules/example/example.php:23
- > PHP Notice
Undefined variable: playlist_id in wp-content/plugins/uvisualize/modules/visualizer/templates/metabox.tpl.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uvisualize/modules/layers/layers.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uvisualize/modules/playlist/playlist.php:559
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/uvisualize/theme_files/archive-uvis_playlist.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uvisualize/modules/visualizer/visualizer.php:1027
- > PHP Notice
Undefined variable: playlist_id in wp-content/plugins/uvisualize/modules/visualizer/templates/metabox.tpl.php on line 3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=uvis-options
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=uvis-options 327:38 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/admin.php?page=uvis-options
- > 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-admin/admin.php?page=uvis-options:240:35)\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/admin.php?page=uvis-options
- > 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
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
uvisualize/uvis.php 85% from 13 tests
The primary PHP file in "UVisualize!" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("uvisualize.php" instead of "uvis.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected45,162 lines of code in 268 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 146 | 7,187 | 15,719 | 30,260 |
CSS | 45 | 360 | 300 | 9,581 |
PHP | 25 | 1,022 | 984 | 2,476 |
HTML | 26 | 124 | 78 | 812 |
PO File | 2 | 341 | 438 | 808 |
Markdown | 6 | 228 | 0 | 448 |
SVG | 8 | 0 | 7 | 299 |
JSON | 8 | 0 | 0 | 271 |
LESS | 2 | 17 | 9 | 207 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 46.80 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 5.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 55 | 94.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.17% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
25 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/timeline/css/themes/timeline-texture.png | 40.07KB | 44.06KB | 0.00% |
modules/playlist/images/btn-trash.png | 1.28KB | 0.46KB | ▼ 64.03% |
vendor/timeline/css/timeline@2x.png | 40.06KB | 22.30KB | ▼ 44.33% |
vendor/leaflet-dev/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
modules/playlist/images/btn-edit-playlist.png | 1.62KB | 0.65KB | ▼ 59.66% |