Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.64MB] [CPU: ▼20.99ms] Passed 4 tests
Analyzing server-side resources used by Best Quiz Plugin for WordPress: WP Quiz
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.97 | 46.27 ▲7.84 |
Dashboard /wp-admin | 4.72 ▲1.41 | 39.19 ▼9.51 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 36.36 ▼11.04 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 34.75 ▼64.17 |
Media Library /wp-admin/upload.php | 4.72 ▲1.49 | 34.59 ▲0.75 |
Add new quiz /wp-admin/admin.php?page=wp-quiz-new | 4.72 | 32.37 |
Import/Export /wp-admin/edit.php?post_type=wp_quiz&page=wp_quiz_ie | 4.72 | 31.44 |
All Quizzes /wp-admin/edit.php?post_type=wp_quiz | 4.72 | 33.13 |
Add New Quiz /wp-admin/post-new.php?post_type=wp_quiz | 4.72 | 31.94 |
Server storage [IO: ▲3.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 575 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wp_quiz_play_data |
New WordPress options |
---|
wp_quiz_old_slug |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
wp_quiz_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Best Quiz Plugin for WordPress: WP Quiz
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.31 ▼0.90 | 1.88 ▲0.15 | 45.80 ▲2.77 |
Dashboard /wp-admin | 2,237 ▲46 | 4.88 ▼0.02 | 107.19 ▲5.11 | 40.44 ▼3.32 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.06 ▲0.04 | 39.55 ▼2.02 | 34.75 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,562 ▲48 | 23.37 ▲5.79 | 659.74 ▲41.81 | 55.82 ▲3.71 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.24 ▲0.02 | 95.02 ▼4.90 | 42.51 ▼0.14 |
Add new quiz /wp-admin/admin.php?page=wp-quiz-new | 834 | 2.06 | 23.43 | 23.99 |
Import/Export /wp-admin/edit.php?post_type=wp_quiz&page=wp_quiz_ie | 1,011 | 1.88 | 31.05 | 31.98 |
All Quizzes /wp-admin/edit.php?post_type=wp_quiz | 1,109 | 1.93 | 29.84 | 30.47 |
Add New Quiz /wp-admin/post-new.php?post_type=wp_quiz | 911 | 1.86 | 29.07 | 28.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/helper-functions.php+44
include_once(wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
- Zombie tables were found after uninstall: 1 table
- wp_wp_quiz_play_data
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- wp_quiz_db_version
- wp_quiz_old_slug
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% 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)
These errors were triggered by the plugin
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp_quiz
- > Warning in wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/helper-functions.php+44
include_once(wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp_quiz
- > Warning in wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/helper-functions.php+44
include_once(): Failed opening 'wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/CMB2_Hookup.php' for inclusion (include_path='.:/usr/share/php')
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp_quiz
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'CMB2_Hookup' not found
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 take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-quiz/templates/global/progress-bar.php
- > /wp-content/plugins/wp-quiz/templates/global/quiz-close.php
- 139× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: quiz in wp-content/plugins/wp-quiz/templates/quiz-types/flip/questions/question.php on line 13
- > PHP Notice
Undefined variable: cmb in wp-content/plugins/wp-quiz/includes/Admin/views/quiz-types/trivia/tab-content.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Notice
Undefined variable: cmb in wp-content/plugins/wp-quiz/includes/Admin/views/quiz-types/trivia/tab-settings.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_quiz_type() on null in wp-content/plugins/wp-quiz/templates/quiz-types/personality/questions/question.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPQuiz\\Modules\\Subscription\\MailServices\\MailService' not found in wp-content/plugins/wp-quiz/includes/Modules/Subscription/MailServices/GetResponse.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/wp-quiz/templates/quiz-types/flip/custom-css.php:11
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/wp-quiz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function add_field() on null in wp-content/plugins/wp-quiz/includes/Admin/views/quiz-types/personality/tab-content.php:10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wp-quiz/wp-quiz.php 92% from 13 tests
"Best Quiz Plugin for WordPress: WP Quiz" version 2.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected64,128 lines of code in 406 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 175 | 3,936 | 11,015 | 15,503 |
CSS | 20 | 787 | 1,204 | 7,515 |
Sass | 47 | 882 | 66 | 3,838 |
JavaScript | 33 | 816 | 1,083 | 3,601 |
Markdown | 4 | 277 | 0 | 865 |
JSON | 6 | 1 | 0 | 469 |
SVG | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 128 | |
▷ Abstract classes | 14 | 10.94% |
▷ Concrete classes | 114 | 89.06% |
▷ Final classes | 0 | 0.00% |
Methods | 996 | |
▷ Static methods | 169 | 16.97% |
▷ Public methods | 804 | 80.72% |
▷ Protected methods | 187 | 18.78% |
▷ Private methods | 5 | 0.50% |
Functions | 39 | |
▷ Named functions | 36 | 92.31% |
▷ Anonymous functions | 3 | 7.69% |
Constants | 17 | |
▷ Global constants | 4 | 23.53% |
▷ Class constants | 13 | 76.47% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
assets/admin/images/dropdown.png | 1.21KB | 0.15KB | ▼ 87.33% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/libs/cmb-field-select2/screenshot-3.png | 3.22KB | 3.26KB | 0.00% |
assets/frontend/images/spritesheet.png | 9.69KB | 5.37KB | ▼ 44.52% |