Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▲4.49ms] Passed 4 tests
A check of server-side resources used by Ultimate Viral Quiz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 40.63 ▼1.88 |
Dashboard /wp-admin | 4.22 ▲0.92 | 53.19 ▲8.60 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 59.47 ▲10.51 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.92 | 101.13 ▲2.05 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 43.15 ▲9.20 |
Settings /wp-admin/admin.php?page=uvq-settings | 4.14 | 47.20 |
Add List /wp-admin/admin.php?page=uvq-add-list | 4.11 | 41.54 |
Add PersonalityQuiz /wp-admin/admin.php?page=uvq-add-personalityquiz | 4.11 | 44.10 |
Add TriviaQuiz /wp-admin/admin.php?page=uvq-add-triviaquiz | 4.11 | 42.34 |
All Quizzes /wp-admin/admin.php?page=uvq-all-quizzes | 4.14 | 44.02 |
Add Rank /wp-admin/admin.php?page=uvq-add-rank | 4.11 | 39.84 |
Add Poll /wp-admin/admin.php?page=uvq-add-poll | 4.11 | 44.03 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 344 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_uvq_listbuzzes |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate Viral Quiz
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,262 ▲527 | 17.75 ▲3.14 | 17.26 ▲15.33 | 39.02 ▼5.12 |
Dashboard /wp-admin | 2,496 ▲305 | 7.54 ▲2.71 | 159.89 ▲54.76 | 125.43 ▲84.88 |
Posts /wp-admin/edit.php | 2,411 ▲322 | 4.81 ▲2.84 | 63.97 ▲29.28 | 86.96 ▲55.70 |
Add New Post /wp-admin/post-new.php | 1,671 ▲151 | 18.99 ▼4.17 | 698.44 ▲18.54 | 36.33 ▼15.33 |
Media Library /wp-admin/upload.php | 1,547 ▲162 | 5.97 ▲1.71 | 101.56 ▲1.01 | 90.05 ▲45.51 |
Settings /wp-admin/admin.php?page=uvq-settings | 1,357 | 4.54 | 59.46 | 114.23 |
Add List /wp-admin/admin.php?page=uvq-add-list | 2,569 | 14.16 | 309.53 | 101.37 |
Add PersonalityQuiz /wp-admin/admin.php?page=uvq-add-personalityquiz | 3,190 | 14.76 | 342.82 | 120.84 |
Add TriviaQuiz /wp-admin/admin.php?page=uvq-add-triviaquiz | 2,940 | 11.36 | 290.64 | 113.75 |
All Quizzes /wp-admin/admin.php?page=uvq-all-quizzes | 1,286 | 5.10 | 71.89 | 95.37 |
Add Rank /wp-admin/admin.php?page=uvq-add-rank | 2,475 | 14.42 | 265.94 | 106.53 |
Add Poll /wp-admin/admin.php?page=uvq-add-poll | 2,646 | 12.49 | 287.44 | 107.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_uvq_listbuzzes
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvq-add-poll
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ultimate-viral-quiz/bestbugcore/classes/fields/hidden.view.php
- > /wp-content/plugins/ultimate-viral-quiz/bestbugcore/classes/index.php
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WideImage_Exception' not found in wp-content/plugins/ultimate-viral-quiz/includes/libs/wideimage/OperationFactory.php:28
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-viral-quiz/includes/admin/templates/quizzes.view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/ultimate-viral-quiz/includes/shortcodes/view/user_forgot_password.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/ultimate-viral-quiz/includes/shortcodes/view/quiz_list.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function bb_esc_html() in wp-content/plugins/ultimate-viral-quiz/bestbugcore/classes/fields/textfield.view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function bb_esc_html() in wp-content/plugins/ultimate-viral-quiz/bestbugcore/classes/fields/dropdown.view.php:1
- > PHP Fatal error
Uncaught Error: Class 'WideImage_Image' not found in wp-content/plugins/ultimate-viral-quiz/includes/libs/wideimage/PaletteImage.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-viral-quiz/includes/shortcodes/view/editor_control.view.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function bb_esc_html() in wp-content/plugins/ultimate-viral-quiz/bestbugcore/classes/fields/toggle.view.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-viral-quiz/includes/shortcodes/view/quiz_personalityquiz.view.php:1
- > PHP Fatal error
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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvq-add-poll
- > Javascript (severe) in unknown
/wp-content/plugins/ultimate-viral-quiz/bestbugcore//assets/admin/js/script.js?ver=1.0 289:23 Uncaught TypeError: $(...).live is not a function
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvq-add-poll
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jcrop&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ultimate-viral-quiz//assets/admin/js/script.js?ver=1.0:6:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jcrop&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,jcrop&ver=6.3.1:2:27292)" undefined
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvq-add-poll
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jcrop&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=uvq-add-poll
- > Other (warning) in unknown
https://www.youtube.com/s/player/f7e1823a/www-widgetapi.vflset/www-widgetapi.js 1223 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #2 in ultimate-viral-quiz/assets to your readme.txt
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
ultimate-viral-quiz/index.php 85% from 13 tests
Analyzing the main PHP file in "Ultimate Viral Quiz" version 1.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-viral-quiz.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin44,596 lines of code in 307 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 33 | 515 | 53 | 13,090 |
CSS | 15 | 1,258 | 55 | 11,960 |
PHP | 112 | 1,749 | 2,851 | 9,814 |
JavaScript | 144 | 1,151 | 1,510 | 9,341 |
SVG | 3 | 1 | 0 | 391 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 2 | 2.38% |
▷ Concrete classes | 82 | 97.62% |
▷ Final classes | 0 | 0.00% |
Methods | 447 | |
▷ Static methods | 51 | 11.41% |
▷ Public methods | 422 | 94.41% |
▷ Protected methods | 19 | 4.25% |
▷ Private methods | 6 | 1.34% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 45 | |
▷ Global constants | 36 | 80.00% |
▷ Class constants | 9 | 20.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bestbugcore/assets/admin/images/15_15_15_15_15.png | 1.04KB | 0.13KB | ▼ 87.74% |
bestbugcore/assets/admin/images/logo-white.png | 1.23KB | 0.56KB | ▼ 54.46% |
assets/admin/images/logo.png | 1.42KB | 0.78KB | ▼ 44.95% |
bestbugcore/assets/admin/images/switch.png | 0.53KB | 0.64KB | 0.00% |
bestbugcore/assets/admin/images/logo.png | 1.87KB | 0.57KB | ▼ 69.83% |