Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests
An overview of server-side resources used by Snappy Surveys
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.18 ▼1.32 |
Dashboard /wp-admin | 3.33 ▲0.03 | 41.78 ▼9.28 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.58 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.40 ▼9.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.28 ▼4.51 |
Stats /wp-admin/admin.php?page=ssp_stats_page | 3.21 | 28.62 |
Welcome /wp-admin/admin.php?page=ssp_welcome_page | 3.21 | 26.82 |
Surveys /wp-admin/edit.php?post_type=ssp_survey | 3.30 | 35.08 |
Server storage [IO: ▲0.03MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Snappy Surveys: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲206 | 13.99 ▼0.39 | 5.09 ▲3.37 | 38.29 ▼8.67 |
Dashboard /wp-admin | 2,239 ▲51 | 4.88 ▼1.02 | 118.18 ▲9.27 | 42.23 ▲2.30 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.02 ▲0.02 | 37.99 ▲0.74 | 33.35 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 17.34 ▼5.76 | 654.19 ▼20.56 | 57.42 ▲1.65 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.20 ▲0.00 | 92.68 ▼11.47 | 42.15 ▼2.20 |
Stats /wp-admin/admin.php?page=ssp_stats_page | 810 | 2.04 | 28.70 | 31.07 |
Welcome /wp-admin/admin.php?page=ssp_welcome_page | 812 | 2.07 | 26.60 | 28.59 |
Surveys /wp-admin/edit.php?post_type=ssp_survey | 1,077 | 2.02 | 34.28 | 27.82 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ssp_stats_page
- > Notice in wp-content/plugins/snappy-surveys/snappy-surveys.php+929
Undefined variable: select_html
SRP 50% 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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snappy-surveys/cpt/ssp_survey.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snappy-surveys/snappy-surveys.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
snappy-surveys/snappy-surveys.php Passed 13 tests
This is the main PHP file of "Snappy Surveys" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
123 characters long description:
Get to know your audience. Create simple surveys that capture annonymous data. See insightful statistics from your surveys.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected569 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 340 | 222 | 460 |
JavaScript | 2 | 33 | 32 | 105 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 25 | |
▷ Named functions | 25 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin