Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.57MB] [CPU: ▼28.65ms] Passed 4 tests
This is a short check of server-side resources used by Quick Questionnaire
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.60 ▼21.95 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.90 ▼7.70 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 54.63 ▼10.74 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.60 | 40.58 ▼74.19 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.07 ▲0.15 |
Quick Questionnaire /wp-admin/edit.php?post_type=quick-questionnaire | 3.37 | 36.11 |
Add New /wp-admin/post-new.php?post_type=quick-questionnaire | 3.27 | 44.72 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quick Questionnaire
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.28 ▼1.09 | 1.97 ▼1.15 | 40.38 ▼26.90 |
Dashboard /wp-admin | 2,236 ▲51 | 4.86 ▼0.02 | 117.90 ▼48.68 | 47.77 ▼15.67 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 1.99 ▼0.01 | 43.31 ▼8.19 | 38.20 ▼7.96 |
Add New Post /wp-admin/post-new.php | 1,706 ▲176 | 22.33 ▼0.85 | 584.71 ▼62.11 | 49.88 ▼0.76 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.18 ▼0.04 | 95.15 ▼9.27 | 42.76 ▼5.37 |
Quick Questionnaire /wp-admin/edit.php?post_type=quick-questionnaire | 1,086 | 2.00 | 30.87 | 27.85 |
Add New /wp-admin/post-new.php?post_type=quick-questionnaire | 1,474 | 16.68 | 848.43 | 32.38 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=quick-questionnaire
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. The REST API route definition for qq/v1/quick-questionnaire/(?\d+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
- > GET request to /wp-admin/post-new.php?post_type=quick-questionnaire
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. The REST API route definition for qq/v1/quick-questionnaire/(?\d+)/(?\d+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-questionnaire/quick_questionnaire.php:24
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: exercise, test, practice
quick-questionnaire/quick_questionnaire.php 92% from 13 tests
"Quick Questionnaire" version 2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("quick-questionnaire.php" instead of "quick_questionnaire.php")
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
No dangerous file extensions were detected581 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 69 | 116 | 330 |
JavaScript | 2 | 25 | 1 | 185 |
CSS | 2 | 14 | 17 | 37 |
JSON | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 12 | 57.14% |
▷ Anonymous functions | 9 | 42.86% |
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
No PNG images were found in this plugin