Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▼1.68ms] Passed 4 tests
Analyzing server-side resources used by Classic Quiz Feedback Survey
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.70 | 46.68 ▲3.94 |
Dashboard /wp-admin | 4.13 ▲0.82 | 52.06 ▼1.44 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 54.63 ▼2.92 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.03 | 92.34 ▼6.31 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 45.08 ▲9.61 |
Entries /wp-admin/edit.php?post_type=cqfs_entry | 4.03 | 45.12 |
Add Build /wp-admin/post-new.php?post_type=cqfs_build | 4.04 | 54.56 |
Questions /wp-admin/edit.php?post_type=cqfs_question | 4.04 | 46.78 |
Build /wp-admin/edit.php?post_type=cqfs_build | 4.04 | 41.60 |
Add Entry /wp-admin/post-new.php?post_type=cqfs_entry | 4.03 | 50.68 |
Add Question /wp-admin/post-new.php?post_type=cqfs_question | 4.14 | 57.11 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Classic Quiz Feedback Survey
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲108 | 13.57 ▼0.81 | 2.56 ▲0.75 | 42.64 ▲1.66 |
Dashboard /wp-admin | 2,269 ▲81 | 5.87 ▲0.98 | 107.83 ▼10.88 | 44.35 ▼0.88 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.04 ▲0.05 | 40.07 ▲2.77 | 35.81 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,576 ▲42 | 18.41 ▼4.90 | 646.57 ▼26.71 | 69.59 ▲5.49 |
Media Library /wp-admin/upload.php | 1,445 ▲60 | 4.26 ▲0.01 | 98.33 ▼3.01 | 41.04 ▼4.93 |
Entries /wp-admin/edit.php?post_type=cqfs_entry | 1,161 | 1.98 | 32.25 | 32.40 |
Add Build /wp-admin/post-new.php?post_type=cqfs_build | 1,931 | 2.72 | 52.04 | 63.23 |
Questions /wp-admin/edit.php?post_type=cqfs_question | 1,192 | 1.99 | 32.23 | 30.15 |
Build /wp-admin/edit.php?post_type=cqfs_build | 1,182 | 1.97 | 33.02 | 30.65 |
Add Entry /wp-admin/post-new.php?post_type=cqfs_entry | 1,828 | 2.70 | 54.14 | 79.41 |
Add Question /wp-admin/post-new.php?post_type=cqfs_question | 1,951 | 3.78 | 63.62 | 33.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ADMIN\\FORMHANDLE\\is_admin() in wp-content/plugins/classic-quiz-feedback-survey/admin/form-handle.php:409
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ADMIN\\SCRIPTS\\add_action() in wp-content/plugins/classic-quiz-feedback-survey/admin/admin-scripts.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ADMIN\\METABOXES\\BUILD\\add_action() in wp-content/plugins/classic-quiz-feedback-survey/admin/meta-boxes/metabox-build.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ROOT\\plugin_dir_path() in wp-content/plugins/classic-quiz-feedback-survey/cqfs.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/classic-quiz-feedback-survey/cqfs-templates/template-results.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ADMIN\\MENUPAGES\\is_admin() in wp-content/plugins/classic-quiz-feedback-survey/admin/menu-pages.php:402
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ADMIN\\METABOXES\\ENTRY\\add_action() in wp-content/plugins/classic-quiz-feedback-survey/admin/meta-boxes/metabox-entry.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\ADMIN\\METABOXES\\QUESTION\\add_action() in wp-content/plugins/classic-quiz-feedback-survey/admin/meta-boxes/metabox-question.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function CQFS\\INC\\SUBMIT\\add_action() in wp-content/plugins/classic-quiz-feedback-survey/inc/submission.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: survey form, quiz, classic, quiz form, questionnaire...
classic-quiz-feedback-survey/cqfs.php 85% from 13 tests
The principal PHP file in "Classic Quiz Feedback Survey" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("classic-quiz-feedback-survey.php" instead of "cqfs.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,184 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 826 | 814 | 2,701 |
CSS | 2 | 119 | 39 | 793 |
JavaScript | 2 | 268 | 295 | 657 |
Markdown | 1 | 26 | 0 | 33 |
PHP code Passed 2 tests
An short overview of 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.31 |
Average class complexity | 19.69 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 19 | 26.39% |
▷ Public methods | 70 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin