Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.46ms] Passed 4 tests
An overview of server-side resources used by WP Survey Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.42 ▼8.64 |
Dashboard /wp-admin | 3.39 ▲0.09 | 61.45 ▲10.72 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.87 ▼3.30 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 91.63 ▼10.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 38.53 ▲4.53 |
Display Survey Form /wp-admin/admin.php?page=display_survey_form | 3.29 | 29.67 |
Add New Survey Form /wp-admin/admin.php?page=add_new_survey_form | 3.30 | 37.12 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_survey_form_data_count |
wp_survey_form_data |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Survey Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.68 ▼0.75 | 6.35 ▲4.43 | 56.09 ▲10.53 |
Dashboard /wp-admin | 2,234 ▲49 | 5.89 ▲0.01 | 98.99 ▼6.37 | 36.84 ▼9.84 |
Posts /wp-admin/edit.php | 2,120 ▲30 | 2.05 ▼0.00 | 38.19 ▲1.16 | 36.54 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.10 ▲5.48 | 679.09 ▲56.01 | 52.50 ▲2.72 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.16 ▼0.05 | 97.55 ▼4.35 | 44.02 ▼4.20 |
Display Survey Form /wp-admin/admin.php?page=display_survey_form | 786 | 2.05 | 29.32 | 24.26 |
Add New Survey Form /wp-admin/admin.php?page=add_new_survey_form | 904 | 1.74 | 26.14 | 28.78 |
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
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_survey_form_data
- wp_survey_form_data_count
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=display_survey_form
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=display_survey_form
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-survey-form/admin/HTML/DisplaySurveyForm.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-survey-form/public/class-wp-survey-form-public.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-survey-form/admin/HTML/DisplaySurveyForm.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-survey-form/wp-survey-form.php:17
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-survey-form/admin/HTML/AddNewSurveyForm.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-survey-form/admin/HTML/AddNewSurveyForm.php:9
- > PHP Notice
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 Passed 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: survey form generator, take survey, survey form
wp-survey-form/wp-survey-form.php Passed 13 tests
"WP Survey Form" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Just another survey form plugin. Simple but flexible.
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 detected1,672 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 183 | 109 | 1,140 |
PHP | 6 | 83 | 139 | 447 |
CSS | 2 | 3 | 5 | 64 |
Markdown | 1 | 6 | 0 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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