Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼5.56ms] Passed 4 tests
A check of server-side resources used by NgSurvey - Powerful, feature rich self-hosted surveys
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 35.92 ▼2.73 |
Dashboard /wp-admin | 3.60 ▲0.26 | 42.83 ▼15.30 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 45.38 ▼3.29 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 91.60 ▲2.91 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 34.75 ▼0.93 |
Edit Questions /wp-admin/admin.php?page=edit_questions | 3.40 | 30.42 |
Answer Presets /wp-admin/edit.php?post_type=ngpreset | 3.59 | 36.04 |
Settings /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_settings | 3.33 | 25.07 |
Categories /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey | 3.45 | 33.03 |
Extensions /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_extensions | 3.33 | 25.44 |
View Reports /wp-admin/admin.php?page=view_reports | 3.40 | 30.31 |
Server storage [IO: ▲7.90MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 619 new files
Database: 10 new tables, 9 new options
New tables |
---|
wp_ngs_tracking |
wp_ngs_pages_questions_map |
wp_ngs_questions |
wp_ngs_responses |
wp_ngs_invitations |
wp_ngs_rules |
wp_ngs_pages |
wp_ngs_answers |
wp_ngs_response_details |
wp_ngs_countries |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
ngsurvey_licenses |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
ngsurvey_general_settings |
ngsurvey_version |
Browser metrics Passed 4 tests
NgSurvey - Powerful, feature rich self-hosted surveys: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.17 ▼0.19 | 1.65 ▲0.06 | 37.36 ▼5.00 |
Dashboard /wp-admin | 2,235 ▲61 | 5.52 ▼0.01 | 82.47 ▼4.03 | 35.96 ▼6.58 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.01 ▲0.02 | 39.21 ▼5.60 | 36.56 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,573 ▲45 | 18.16 ▼5.02 | 604.58 ▼99.92 | 65.69 ▲10.16 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.19 ▲0.03 | 95.92 ▼3.72 | 40.31 ▼3.79 |
Edit Questions /wp-admin/admin.php?page=edit_questions | 707 | 1.51 | 6.63 | 13.67 |
Answer Presets /wp-admin/edit.php?post_type=ngpreset | 1,211 | 4.57 | 81.71 | 28.11 |
Settings /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_settings | 28 | 0.42 | 0.09 | 3.77 |
Categories /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey | 1,320 | 2.12 | 25.00 | 28.66 |
Extensions /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_extensions | 28 | 0.42 | 0.07 | 3.64 |
View Reports /wp-admin/admin.php?page=view_reports | 707 | 1.24 | 6.78 | 17.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 10 tables in the database
- wp_ngs_pages
- wp_ngs_countries
- wp_ngs_answers
- wp_ngs_pages_questions_map
- wp_ngs_invitations
- wp_ngs_response_details
- wp_ngs_responses
- wp_ngs_rules
- wp_ngs_questions
- wp_ngs_tracking
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- ngsurvey_licenses
- ngsurvey_general_settings
- widget_recent-comments
- ngsurvey_version
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=view_reports
- > Notice in wp-content/plugins/ngsurvey/admin/controllers/class-controller-reports.php+46
Undefined index: _wpnonce
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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ngsurvey/includes/lib/vendor/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/ngsurvey/includes/lib/vendor/mustangostang/spyc/examples/yaml-load.php
- > /wp-content/plugins/ngsurvey/templates/public/common/loader.php
- > /wp-content/plugins/ngsurvey/admin/views/ngsurvey-admin-display.php
- 249× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:34
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Client\\AbstractClientParser' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/matomo/device-detector/Parser/Client/Browser.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/sabberworm/php-css-parser/src/Property/Import.php:12
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/woocommerce/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/symfony/css-selector/XPath/Translator.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/sabberworm/php-css-parser/src/CSSList/CSSList.php:32
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php:15
- > PHP Fatal error
Uncaught Error: Class 'Pelago\\Emogrifier\\HtmlProcessor\\AbstractHtmlProcessor' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/pelago/emogrifier/src/HtmlProcessor/HtmlPruner.php:13
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\AbstractBotParser' not found in wp-content/plugins/ngsurvey/includes/lib/vendor/matomo/device-detector/Parser/Bot.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_settings
- > Network (severe)
wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_settings - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_extensions
- > Network (severe)
wp-admin/edit-tags.php?taxonomy=ngsurveys&post_type=ngsurvey&page=ngsurvey_extensions - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: forms, polls, survey, feedback forms, surveys
ngsurvey/ngsurvey.php 92% from 13 tests
The main PHP file in "NgSurvey - Powerful, feature rich self-hosted surveys" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
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
Success! There were no dangerous files found in this plugin102,961 lines of code in 569 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 25 | 3,544 | 2,834 | 41,828 |
PHP | 467 | 8,155 | 22,790 | 36,182 |
CSS | 14 | 215 | 111 | 13,129 |
JavaScript | 24 | 878 | 903 | 7,613 |
Markdown | 18 | 700 | 0 | 2,455 |
JSON | 15 | 0 | 0 | 1,622 |
XML | 5 | 19 | 13 | 130 |
INI | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 379 | |
▷ Abstract classes | 42 | 11.08% |
▷ Concrete classes | 337 | 88.92% |
▷ Final classes | 5 | 1.48% |
Methods | 2,661 | |
▷ Static methods | 216 | 8.12% |
▷ Public methods | 2,024 | 76.06% |
▷ Protected methods | 381 | 14.32% |
▷ Private methods | 256 | 9.62% |
Functions | 81 | |
▷ Named functions | 36 | 44.44% |
▷ Anonymous functions | 45 | 55.56% |
Constants | 189 | |
▷ Global constants | 23 | 12.17% |
▷ Class constants | 166 | 87.83% |
▷ Public constants | 126 | 75.90% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/vendor/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/vendor/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/vendor/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/vendor/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |