Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼10.88ms] Passed 4 tests
An overview of server-side resources used by WP Quizr
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 29.50 ▼16.11 |
Dashboard /wp-admin | 3.49 ▲0.14 | 52.99 ▼12.36 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.91 ▲0.01 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.46 ▼15.06 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.02 ▲3.21 |
All Quizzes /wp-admin/edit.php?post_type=wp_quizr | 3.48 | 46.08 |
WP Quizr Settings /wp-admin/edit.php?post_type=wp_quizr&page=wp_quizr_settings_menu | 3.38 | 34.85 |
Add New /wp-admin/post-new.php?post_type=wp_quizr | 3.48 | 48.17 |
Server storage [IO: ▲11.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,393 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
wp_quizr_options |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Quizr: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.72 ▲0.08 | 1.67 ▼0.14 | 40.86 ▲0.54 |
Dashboard /wp-admin | 2,229 ▲55 | 5.62 ▼0.02 | 83.83 ▼15.05 | 39.19 ▼4.00 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.04 ▲0.04 | 39.28 ▼3.39 | 36.42 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.08 ▲0.17 | 621.64 ▼25.37 | 48.13 ▼2.49 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.24 ▲0.05 | 99.34 ▼5.17 | 45.12 ▲0.24 |
All Quizzes /wp-admin/edit.php?post_type=wp_quizr | 1,280 | 4.90 | 58.33 | 28.00 |
WP Quizr Settings /wp-admin/edit.php?post_type=wp_quizr&page=wp_quizr_settings_menu | 922 | 2.00 | 23.16 | 28.12 |
Add New /wp-admin/post-new.php?post_type=wp_quizr | 1,787 | 5.66 | 74.12 | 33.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-quizr/admin/partials/wp-quizr-display-social-ids-reminder.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_outcomes_meta_box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_question_titles_meta_box.php:5
- > PHP Notice
Undefined variable: box in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_outcomes_meta_box.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_outcomes_meta_box.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-quizr/public/partials/wp_quizr_add_meta_tags.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_outcomes_meta_box.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-quizr/admin/partials/wp-quizr-display-settings-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_shortcode_meta_box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-quizr/admin/partials/wp_quizr_display_outcomes_titles_meta_box.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: buzzfeed quiz, viral quiz, quiz, viral, quizzes
wp-quizr/wp-quizr.php 92% from 13 tests
Analyzing the main PHP file in "WP Quizr" version 2.0.0
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected78,961 lines of code in 1,353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 39,825 |
YAML | 4 | 0 | 0 | 15,153 |
SVG | 1,267 | 0 | 5,024 | 10,790 |
CSS | 14 | 674 | 61 | 4,158 |
Sass | 18 | 504 | 34 | 4,064 |
LESS | 17 | 502 | 39 | 4,037 |
PHP | 19 | 591 | 561 | 751 |
JavaScript | 12 | 78 | 38 | 183 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 5 | 11.36% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 1.33MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 203.92KB | 73.87KB | ▼ 63.77% |
assets/screenshot-4.png | 445.13KB | 148.97KB | ▼ 66.53% |
public/images/unchecked.png | 0.29KB | 0.20KB | ▼ 32.56% |
assets/screenshot-3.png | 538.02KB | 179.88KB | ▼ 66.57% |
assets/screenshot-2.png | 171.71KB | 61.17KB | ▼ 64.38% |