Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.13ms] Passed 4 tests
Analyzing server-side resources used by Awesome Surveys
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.06 ▲5.75 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.75 ▲3.24 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.80 ▲3.19 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.52 ▼3.68 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 42.76 ▲7.50 |
New Survey /wp-admin/post-new.php?post_type=awesome-surveys | 3.50 | 48.08 |
WtWM Plugins /wp-admin/admin.php?page=wwm_plugins | 3.29 | 40.68 |
My Surveys /wp-admin/edit.php?post_type=awesome-surveys | 3.37 | 36.73 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 202 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Surveys
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.21 ▼1.16 | 6.07 ▲4.47 | 45.86 ▼1.20 |
Dashboard /wp-admin | 2,224 ▲38 | 5.88 ▼0.16 | 122.32 ▼51.06 | 73.21 ▲6.20 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.00 ▼0.02 | 44.35 ▼3.80 | 40.83 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 22.89 ▲0.01 | 726.88 ▲28.75 | 68.99 ▲9.15 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.21 ▼0.00 | 107.83 ▼1.33 | 78.85 ▲30.17 |
New Survey /wp-admin/post-new.php?post_type=awesome-surveys | 1,666 | 3.24 | 69.00 | 79.08 |
WtWM Plugins /wp-admin/admin.php?page=wwm_plugins | 807 | 2.01 | 34.74 | 36.27 |
Survey Options /wp-admin/awesome-surveys.php | 26 | 0.44 | 0.06 | 18.05 |
My Surveys /wp-admin/edit.php?post_type=awesome-surveys | 1,080 | 1.95 | 36.67 | 31.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Element_Radio' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/YesNo.php:2
- > PHP Fatal error
Uncaught Error: Class 'View' not found in wp-content/plugins/awesome-surveys/includes/PFBC/View/Vertical.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/Hidden.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element_Textbox' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/Search.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element_Textbox' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/jQueryUIDate.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element_Textarea' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/CKEditor.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/File.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element_Textarea' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/TinyMCE.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element_Textbox' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/Url.php:2
- > PHP Fatal error
Uncaught Error: Class 'Element_Textbox' not found in wp-content/plugins/awesome-surveys/includes/PFBC/Element/DateTime.php:2
- > 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/awesome-surveys.php
- > Network (severe)
wp-admin/awesome-surveys.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (The form builder), #2 (Survey form built, ready to save), #3 (Survey form output on the frontend), #4 (The thank you message displayed after the survey has been submitted), #5 (Survey results view), #6 (How to View Results - Hover your mouse, click link)
awesome-surveys/awesome-surveys.php Passed 13 tests
The principal PHP file in "Awesome Surveys" v. 2.0.10 is loaded by WordPress automatically on each request
89 characters long description:
Easily create surveys for your WordPress website and publish them with a simple shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected7,369 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 362 | 531 | 3,216 |
PO File | 6 | 802 | 1,226 | 1,601 |
JavaScript | 64 | 19 | 230 | 1,483 |
CSS | 13 | 141 | 200 | 617 |
Markdown | 1 | 97 | 0 | 236 |
Sass | 4 | 23 | 0 | 203 |
Bourne Shell | 1 | 0 | 2 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 6 | 12.50% |
▷ Concrete classes | 42 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 181 | |
▷ Static methods | 8 | 4.42% |
▷ Public methods | 156 | 86.19% |
▷ Protected methods | 21 | 11.60% |
▷ Private methods | 4 | 2.21% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.78MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
screenshot-5.png | 119.63KB | 31.06KB | ▼ 74.03% |
screenshot-1.png | 213.35KB | 69.17KB | ▼ 67.58% |
css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |