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
Install script ran successfully
Server metrics [RAM: ▲3.21MB] [CPU: ▲14.64ms] Passed 4 tests
This is a short check of server-side resources used by Survey Maker - Best WordPress Survey Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.63 ▲3.16 | 59.73 ▲18.99 |
Dashboard /wp-admin | 6.53 ▲3.23 | 65.54 ▲16.71 |
Posts /wp-admin/edit.php | 6.57 ▲3.21 | 71.29 ▲22.90 |
Add New Post /wp-admin/post-new.php | 9.26 ▲3.37 | 105.48 ▼0.06 |
Media Library /wp-admin/upload.php | 6.47 ▲3.24 | 57.82 ▲23.50 |
Survey Categories /wp-admin/admin.php?page=survey-maker-survey-categories | 6.57 | 62.34 |
Our products /wp-admin/admin.php?page=survey-maker-our-products | 6.54 | 58.21 |
Submissions /wp-admin/admin.php?page=survey-maker-submissions | 6.58 | 61.12 |
Export / Import /wp-admin/admin.php?page=survey-maker-export-import | 6.54 | 58.07 |
Surveys /wp-admin/admin.php?page=survey-maker | 6.58 | 84.38 |
Frontend Requests /wp-admin/admin.php?page=survey-maker-requests | 6.54 | 71.12 |
/wp-admin/admin.php?page=survey-maker-each-submission | 6.82 | 57.07 |
How to use /wp-admin/admin.php?page=survey-maker-dashboard | 6.56 | 60.52 |
PRO Features /wp-admin/admin.php?page=survey-maker-survey-features | 6.62 | 69.04 |
General Settings /wp-admin/admin.php?page=survey-maker-settings | 7.04 | 63.76 |
Server storage [IO: ▲7.47MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 257 new files
Database: 10 new tables, 10 new options
New tables |
---|
wp_ayssurvey_surveys |
wp_ayssurvey_answers |
wp_ayssurvey_submissions |
wp_ayssurvey_question_categories |
wp_ayssurvey_sections |
wp_ayssurvey_settings |
wp_ayssurvey_survey_categories |
wp_ayssurvey_submissions_questions |
wp_ayssurvey_questions |
wp_ayssurvey_popup_surveys |
New WordPress options |
---|
widget_theysaidso_widget |
ays_survey_sale_btn |
can_compress_scripts |
ays_survey_banner_time |
widget_recent-comments |
survey_flush_version |
widget_recent-posts |
ays_survey_db_version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Survey Maker - Best WordPress Survey Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲114 | 14.67 ▼0.04 | 1.72 ▼0.04 | 30.29 ▼17.52 |
Dashboard /wp-admin | 2,264 ▲84 | 5.57 ▲0.04 | 96.95 ▲8.16 | 98.26 ▲63.68 |
Posts /wp-admin/edit.php | 2,187 ▲84 | 1.96 ▲0.02 | 39.14 ▼0.38 | 37.47 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,742 | 19.19 ▼3.87 | 919.54 ▲272.91 | 37.41 ▼29.60 |
Media Library /wp-admin/upload.php | 1,484 ▲84 | 4.17 ▲0.05 | 95.36 ▲0.07 | 78.19 ▲37.21 |
Survey Categories /wp-admin/admin.php?page=survey-maker-survey-categories | 1,839 | 5.66 | 125.24 | 154.29 |
Our products /wp-admin/admin.php?page=survey-maker-our-products | 1,631 | 5.45 | 110.68 | 109.11 |
Submissions /wp-admin/admin.php?page=survey-maker-submissions | 2,023 | 5.50 | 83.16 | 119.29 |
Export / Import /wp-admin/admin.php?page=survey-maker-export-import | 2,081 | 12.01 | 335.69 | 158.37 |
Surveys /wp-admin/admin.php?page=survey-maker | 2,480 | 12.28 | 302.58 | 131.06 |
Frontend Requests /wp-admin/admin.php?page=survey-maker-requests | 1,612 | 5.42 | 76.77 | 101.38 |
/wp-admin/admin.php?page=survey-maker-each-submission | 2,020 | 5.43 | 80.55 | 112.98 |
How to use /wp-admin/admin.php?page=survey-maker-dashboard | 2,286 | 11.81 | 311.07 | 167.97 |
PRO Features /wp-admin/admin.php?page=survey-maker-survey-features | 3,062 | 5.30 | 79.80 | 132.93 |
General Settings /wp-admin/admin.php?page=survey-maker-settings | 6,268 | 6.63 | 130.04 | 166.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- ays_survey_banner_time
- widget_recent-posts
- widget_recent-comments
- ays_survey_sale_btn
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- survey_flush_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=survey-maker-each-submission
- > Notice in wp-content/plugins/survey-maker/includes/lists/class-survey-maker-each-submission-list-table.php+56
Undefined index: survey
- > GET request to /wp-admin/admin.php?page=survey-maker-each-submission
- > Notice in wp-content/plugins/survey-maker/admin/partials/submissions/survey-maker-each-submission-display.php+119
Trying to access array offset on value of type null
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=survey-maker-each-submission
- > Notice in wp-content/plugins/survey-maker/admin/partials/submissions/survey-maker-each-submission-display.php+570
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/survey-maker/public/partials/survey-maker-public-display.php
- > /wp-content/plugins/survey-maker/admin/partials/subscribe/survey-maker-subscribe-email-display.php
- 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: ays_tab in wp-content/plugins/survey-maker/admin/partials/surveys/actions/partials/survey-maker-surveys-actions-tab3.php on line 1
- > PHP Warning
Use of undefined constant SURVEY_MAKER_ADMIN_PATH - assumed 'SURVEY_MAKER_ADMIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/survey-maker/admin/partials/surveys/actions/survey-maker-survey-categories-actions.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'SURVEY_MAKER_ADMIN_PATH/partials/surveys/actions/survey-maker-survey-categories-actions-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/survey-maker/admin/partials/surveys/actions/survey-maker-survey-categories-actions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/survey-maker/admin/partials/surveys/actions/partials/survey-maker-surveys-actions-tab2.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/survey-maker/admin/partials/surveys/actions/partials/survey-maker-surveys-actions-tab9.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/survey-maker/admin/partials/surveys/actions/partials/survey-maker-surveys-actions-tab3.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/survey-maker/admin/partials/surveys/actions/partials/survey-maker-survey-categories-actions-tab1.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/survey-maker/admin/partials/export-import/survey-maker-export-import-display.php:16
- > PHP Fatal error
Uncaught Error: Class 'Survey_Maker_Admin' not found in wp-content/plugins/survey-maker/admin/partials/surveys/survey-maker-surveys-display.php:7
- > PHP Warning
require_once(SURVEY_MAKER_ADMIN_PATH/partials/surveys/actions/survey-maker-surveys-actions-options.php): failed to open stream: No such file or directory in wp-content/plugins/survey-maker/admin/partials/surveys/actions/survey-maker-surveys-actions.php on line 2
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: form builder, forms, questionnaire, form, feedback...
survey-maker/survey-maker.php Passed 13 tests
The entry point to "Survey Maker - Best WordPress Survey Plugin" version 3.9.3 is a PHP file that has certain tags in its header comment area
107 characters long description:
Survey Maker plugin allows you to create unlimited surveys with unlimited sections and unlimited questions.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected63,925 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 3,789 | 3,575 | 25,479 |
PO File | 6 | 5,476 | 9,158 | 14,198 |
CSS | 29 | 2,040 | 1,817 | 11,602 |
JavaScript | 26 | 1,140 | 965 | 8,849 |
SVG | 46 | 0 | 2 | 2,887 |
JSON | 5 | 8 | 0 | 910 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 624)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 129.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 834.00 |
Average method complexity | 7.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 624.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 436 | |
▷ Static methods | 114 | 26.15% |
▷ Public methods | 417 | 95.64% |
▷ Protected methods | 10 | 2.29% |
▷ Private methods | 9 | 2.06% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
61 PNG files occupy 0.54MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/icon-popup-128x128.png | 11.65KB | 8.54KB | ▼ 26.73% |
admin/images/icons/pd-logo-128x128.png | 4.23KB | 2.93KB | ▼ 30.77% |
admin/images/integrations/stripe_logo.png | 1.82KB | 1.74KB | ▼ 4.45% |
admin/images/integrations/sendgrid_logo.png | 0.49KB | 0.45KB | ▼ 8.80% |
admin/images/integrations/klaviyo-logo.png | 0.57KB | 0.54KB | ▼ 5.01% |