Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▼3.59ms] Passed 4 tests
A check of server-side resources used by Wp Easy Survey
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 43.74 ▲3.65 |
Dashboard /wp-admin | 4.13 ▲0.78 | 50.52 ▼9.31 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 52.79 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 89.59 ▼9.05 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 41.38 ▲5.69 |
New Survey /wp-admin/post-new.php?post_type=wpes_survey | 4.05 | 46.93 |
Surveys /wp-admin/edit.php?post_type=wpes_survey | 4.03 | 41.86 |
Server storage [IO: ▲8.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 204 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wpes_options |
Browser metrics Passed 4 tests
Checking browser requirements for Wp Easy Survey
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲316 | 14.79 ▲0.82 | 1.90 ▲0.09 | 43.73 ▼0.75 |
Dashboard /wp-admin | 2,455 ▲275 | 5.93 ▲0.32 | 89.80 ▼8.84 | 36.63 ▼7.00 |
Posts /wp-admin/edit.php | 2,342 ▲242 | 2.26 ▲0.25 | 44.90 ▲2.09 | 37.45 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,592 ▲75 | 23.48 ▲4.81 | 623.81 ▲95.63 | 33.34 ▼12.74 |
Media Library /wp-admin/upload.php | 1,704 ▲304 | 4.69 ▲0.45 | 99.10 ▼5.57 | 42.23 ▲0.34 |
New Survey /wp-admin/post-new.php?post_type=wpes_survey | 1,726 | 2.96 | 57.67 | 68.27 |
Surveys /wp-admin/edit.php?post_type=wpes_survey | 1,306 | 2.44 | 43.12 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- wpes_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-easy-survey/templates/backend/final-survey-result/html2pdf-styles.css.php
- > /wp-content/plugins/wp-easy-survey/modules/html2pdf/_tcpdf_5.0.002/fonts/utils/makefont.php
- 70× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: item in wp-content/plugins/wp-easy-survey/templates/backend/nestable_tree/node.php on line 3
- > PHP Notice
Undefined variable: current_evaluation_state in wp-content/plugins/wp-easy-survey/templates/backend/final-survey/export-link.php on line 4
- > PHP Warning
Use of undefined constant HTML2PDF_USED_TCPDF_VERSION - assumed 'HTML2PDF_USED_TCPDF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-easy-survey/modules/html2pdf/_class/myPdf.class.php on line 13
- > PHP Notice
Undefined variable: final_survey_id in wp-content/plugins/wp-easy-survey/templates/backend/final-survey/export-link.php on line 3
- > PHP Notice
Undefined index: evaluation_id in wp-content/plugins/wp-easy-survey/templates/backend/final-survey-result/view.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-easy-survey/modules/issue.class.php:12
- > PHP Notice
Undefined variable: parent_id in wp-content/plugins/wp-easy-survey/templates/backend/nestable_tree/node_container.php on line 1
- > PHP Notice
Undefined variable: survey_id in wp-content/plugins/wp-easy-survey/templates/backend/final-survey/export-link.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wp-easy-survey/templates/backend/metabox-association.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-easy-survey/templates/backend/final-survey/answer-waiting.php on line 1
- > PHP Notice
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 96% from 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
5 plugin tags: survey, evaluation, answer, issues, audit
wp-easy-survey/wp-easy-survey.php 92% from 13 tests
The main PHP file in "Wp Easy Survey" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/wp-easy-survey/modules/html2pdf/_tcpdf_5.0.002/fonts/utils/pfm2afm.exe
- ☣ wp-content/plugins/wp-easy-survey/modules/html2pdf/_tcpdf_5.0.002/fonts/utils/ttf2ufm.exe
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-easy-survey/modules/html2pdf/_tcpdf_5.0.002/tcpdf.crt
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 4,018 | 14,506 | 148,331 |
CSS | 5 | 74 | 29 | 2,041 |
JavaScript | 5 | 128 | 127 | 992 |
PO File | 2 | 338 | 401 | 829 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,477)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 366)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 235.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,477.00 |
Average method complexity | 7.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 366.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 967 | |
▷ Static methods | 3 | 0.31% |
▷ Public methods | 532 | 55.02% |
▷ Protected methods | 431 | 44.57% |
▷ Private methods | 4 | 0.41% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 211 | |
▷ Global constants | 206 | 97.63% |
▷ Class constants | 5 | 2.37% |
▷ Public constants | 5 | 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
10 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/common/medias/ajouter-question.png | 0.99KB | 1.04KB | 0.00% |
templates/common/medias/arrow.png | 0.44KB | 0.28KB | ▼ 36.59% |
templates/common/medias/dissocier.png | 0.96KB | 1.01KB | 0.00% |
templates/common/medias/darkdenim3.png | 22.07KB | 24.09KB | 0.00% |
templates/common/medias/no_picture.png | 0.38KB | 0.26KB | ▼ 32.40% |