Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.89ms] Passed 4 tests
Analyzing server-side resources used by SVS Quiz & Survey & Contact
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.21 ▲1.55 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.37 ▼16.16 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.20 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.46 ▼13.71 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.79 ▲1.93 |
Submissions /wp-admin/admin.php?page=svs_quiz_submissions | 3.27 | 36.57 |
Forms /wp-admin/admin.php?page=svs_quiz | 3.27 | 31.21 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_svs_quiz |
wp_svs_quiz_form_submit |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SVS Quiz & Survey & Contact
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲153 | 13.55 ▼0.82 | 7.55 ▲5.90 | 38.09 ▼2.75 |
Dashboard /wp-admin | 2,216 ▲45 | 5.51 ▼0.14 | 87.10 ▼2.68 | 40.69 ▲1.99 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.98 ▼0.01 | 34.06 ▲0.15 | 35.88 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.15 ▲0.25 | 667.66 ▼2.96 | 59.13 ▲8.99 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.17 ▼0.14 | 94.54 ▼16.27 | 43.99 ▼4.20 |
Submissions /wp-admin/admin.php?page=svs_quiz_submissions | 844 | 1.84 | 31.12 | 24.10 |
Forms /wp-admin/admin.php?page=svs_quiz | 867 | 1.84 | 28.38 | 30.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_svs_quiz_form_submit
- wp_svs_quiz
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/svs-quiz-survey-contact/svsquiz.php
- > /wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_footer.php
- > /wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php
- > /wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_form.php:10
- > PHP Notice
Undefined index: User Information in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php on line 3
- > PHP Notice
Undefined index: Name in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php on line 51
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_header.php:4
- > PHP Notice
Undefined variable: data in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_form.php on line 4
- > PHP Warning
Use of undefined constant SVS_QUIZ_IMG_DIR - assumed 'SVS_QUIZ_IMG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_header.php on line 3
- > PHP Notice
Undefined index: Phone in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php on line 11
- > PHP Notice
Undefined index: Email in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php on line 10
- > PHP Notice
Undefined index: Form in wp-content/plugins/svs-quiz-survey-contact/app/view/svs_quiz_submissions_details.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
9 plugin tags: test creator, contact, quiz, form creator, form builder...
svs-quiz-survey-contact/svsquiz.php 85% from 13 tests
"SVS Quiz & Survey & Contact" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 274 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("svs-quiz-survey-contact.php" instead of "svsquiz.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
Everything looks great! No dangerous files found in this plugin6,996 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 100 | 29 | 2,330 |
Sass | 13 | 26 | 24 | 1,352 |
LESS | 13 | 26 | 33 | 1,343 |
JavaScript | 2 | 170 | 38 | 828 |
PHP | 9 | 92 | 32 | 578 |
SVG | 1 | 0 | 0 | 565 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/svs_logo.png | 8.35KB | 4.70KB | ▼ 43.72% |