Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▲3.83ms] Passed 4 tests
This is a short check of server-side resources used by HD Quiz
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 45.25 ▲4.96 |
Dashboard /wp-admin | 3.87 ▲0.57 | 51.07 ▼1.40 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 49.78 ▲5.19 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 91.27 ▲6.57 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 44.72 ▲8.09 |
Addons /wp-admin/admin.php?page=hdq_addons | 3.77 | 356.78 |
Tools /wp-admin/admin.php?page=hdq_tools | 3.70 | 32.85 |
Quizzes /wp-admin/admin.php?page=hdq_quizzes | 3.76 | 39.04 |
About / Options /wp-admin/admin.php?page=hdq_options | 3.71 | 38.62 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
hdq_new_addon |
can_compress_scripts |
hdq_data_upgraded |
theysaidso_admin_options |
HDQ_PLUGIN_VERSION |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HD Quiz
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲76 | 14.01 ▼0.70 | 1.72 ▲0.06 | 44.62 ▲1.63 |
Dashboard /wp-admin | 2,231 ▲56 | 5.63 ▼0.02 | 82.64 ▼29.83 | 36.58 ▼9.87 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.99 ▲0.02 | 37.28 ▲0.96 | 33.10 ▼5.03 |
Add New Post /wp-admin/post-new.php | 6,390 ▲4,864 | 27.67 ▲6.44 | 919.35 ▲256.83 | 55.55 ▲2.47 |
Media Library /wp-admin/upload.php | 1,433 ▲39 | 4.27 ▲0.07 | 94.05 ▼3.55 | 39.80 ▼1.96 |
Addons /wp-admin/admin.php?page=hdq_addons | 1,014 | 1.80 | 27.68 | 59.84 |
Tools /wp-admin/admin.php?page=hdq_tools | 926 | 1.87 | 26.65 | 45.58 |
Quizzes /wp-admin/admin.php?page=hdq_quizzes | 1,437 | 6.85 | 125.22 | 72.25 |
About / Options /wp-admin/admin.php?page=hdq_options | 1,272 | 1.77 | 28.10 | 70.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- hdq_data_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- hdq_new_addon
- widget_recent-posts
- HDQ_PLUGIN_VERSION
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hd-quiz/index.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/hd-quiz/includes/template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function hdq_user_permission() in wp-content/plugins/hd-quiz/includes/hdq_quizzes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/hd-quiz/includes/templates/title.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hd-quiz/includes/addons.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hd-quiz/includes/tools.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function hdq_print_question_title() in wp-content/plugins/hd-quiz/includes/templates/image.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hd-quiz/includes/post-type.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hd-quiz/includes/tools/csv_import.php:284
- > PHP Fatal error
Uncaught Error: Call to undefined function hdq_print_question_title() in wp-content/plugins/hd-quiz/includes/templates/select-all-text.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function hdq_user_permission() in wp-content/plugins/hd-quiz/includes/settings/questions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #5 is missing in hd-quiz/assets to your readme.txt
- Tags: You are using too many tags: 17 tag instead of maximum 10
hd-quiz/index.php 92% from 13 tests
The main file in "HD Quiz" v. 1.8.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hd-quiz.php" instead of "index.php")
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
There were no executable files found in this plugin8,337 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 550 | 245 | 4,460 |
JavaScript | 5 | 162 | 85 | 2,308 |
CSS | 2 | 278 | 4 | 1,569 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 122 | |
▷ Named functions | 121 | 99.18% |
▷ Anonymous functions | 1 | 0.82% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/hd-logo.png | 2.88KB | 2.84KB | ▼ 1.43% |
includes/images/hd_patreon.png | 11.12KB | 9.14KB | ▼ 17.76% |
includes/images/fbshare.png | 3.47KB | 2.29KB | ▼ 34.08% |
includes/images/share.png | 1.81KB | 1.74KB | ▼ 3.89% |
includes/images/twshare.png | 5.31KB | 2.04KB | ▼ 61.52% |