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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.06ms] Passed 4 tests
A check of server-side resources used by RS Survey
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.55 ▲2.43 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.55 ▼1.05 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.74 ▼3.78 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.09 ▼5.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.81 ▲4.95 |
Settings /wp-admin/admin.php?page=settings | 3.23 | 32.77 |
Add Survey /wp-admin/admin.php?page=add-survey | 3.23 | 31.67 |
RS Survey /wp-admin/admin.php?page=survey-settings | 3.24 | 31.37 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for RS Survey
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.54 ▼1.08 | 12.32 ▲10.50 | 71.05 ▲24.26 |
Dashboard /wp-admin | 2,223 ▲45 | 5.56 ▼0.15 | 80.90 ▼34.58 | 39.64 ▼3.77 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.96 ▼0.04 | 36.34 ▼0.40 | 33.63 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 17.99 ▼5.47 | 628.36 ▼6.05 | 70.45 ▲18.19 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.19 ▲0.00 | 95.64 ▼1.51 | 43.99 ▲2.76 |
Settings /wp-admin/admin.php?page=settings | 828 | 2.05 | 25.22 | 26.14 |
Add Survey /wp-admin/admin.php?page=add-survey | 825 | 2.00 | 25.42 | 28.06 |
RS Survey /wp-admin/admin.php?page=survey-settings | 804 | 1.69 | 25.94 | 25.17 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=survey-settings
- > Notice in wp-content/plugins/rs-survey/rs_settings.php+36
Undefined index: paged
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=survey-settings
- > Notice in wp-content/plugins/rs-survey/rs_settings.php+168
Undefined index: action
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rs-survey/take_survey.php
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rs-survey/survey.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-survey/quest.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-survey/results.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rs-survey/start.php:2
- > PHP Notice
Undefined variable: survey_q in wp-content/plugins/rs-survey/take_survey.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-survey/view_question.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/rs-survey/settings.php:9
- > PHP Warning
sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/rs-survey/take_survey.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rs-survey/take_survey.php on line 12
- > PHP Notice
Undefined variable: survey_q in wp-content/plugins/rs-survey/take_survey.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Donate link: Please fix this invalid URI: ""
rs-survey/survey.php 92% from 13 tests
The entry point to "RS Survey" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rs-survey.php" instead of "survey.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,915 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 9 | 23 | 7,059 |
JavaScript | 3 | 577 | 197 | 1,563 |
PHP | 17 | 283 | 33 | 1,005 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 files were detected