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.05MB] [CPU: ▼3.47ms] Passed 4 tests
An overview of server-side resources used by Website survey widget by Startquestion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.65 ▼5.39 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.79 ▼4.91 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 52.22 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.28 ▼3.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.29 ▼0.43 |
Startquestion widget /wp-admin/options-general.php?page=website-survey-widget-startquestion | 3.24 | 33.89 |
Server storage [IO: ▲0.18MB] [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: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Website survey widget by Startquestion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 13.27 ▼1.08 | 4.24 ▲2.57 | 43.27 ▲4.73 |
Dashboard /wp-admin | 2,208 ▲28 | 5.56 ▼0.14 | 85.14 ▼7.43 | 38.62 ▼5.56 |
Posts /wp-admin/edit.php | 2,120 ▲23 | 2.00 ▲0.02 | 37.67 ▲2.78 | 37.03 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.10 ▲0.16 | 678.80 ▼22.13 | 51.20 ▲0.57 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.30 ▲0.10 | 97.74 ▼5.84 | 42.94 ▼2.71 |
Startquestion widget /wp-admin/options-general.php?page=website-survey-widget-startquestion | 893 | 1.99 | 25.21 | 31.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WebsiteSurveyWidgetStartquestion\\is_admin() in wp-content/plugins/website-survey-widget-startquestion/plugin.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Widget preview - various different types of questions: NPS, single-, multi-choice, text, rating and e-mail.) image not found
website-survey-widget-startquestion/plugin.php 85% from 13 tests
"Website survey widget by Startquestion" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("website-survey-widget-startquestion.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin256 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 52 | 14 | 180 |
JavaScript | 1 | 7 | 0 | 43 |
CSS | 1 | 2 | 0 | 21 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 3 | 18.75% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.14MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 2.70KB | 2.82KB | 0.00% |
assets/widget.png | 69.43KB | 73.92KB | 0.00% |
assets/screenshot-1.png | 69.43KB | 73.92KB | 0.00% |