Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.36MB] [CPU: ▼17.94ms] Passed 4 tests
A check of server-side resources used by GG Polls
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 39.30 ▼1.08 |
Dashboard /wp-admin | 3.70 ▲0.35 | 54.91 ▼12.22 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 51.98 ▲10.57 |
Add New Post /wp-admin/post-new.php | 3.49 ▼2.40 | 38.05 ▼62.01 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 34.30 ▲3.57 |
Variants /wp-admin/edit.php?post_type=ns_gg_variant | 3.63 | 40.47 |
Pairs /wp-admin/edit.php?post_type=ns_gg_pair | 3.63 | 38.72 |
Create new poll /wp-admin/admin.php?page=ns-polls | 3.60 | 38.94 |
Polls /wp-admin/edit.php?post_type=ns_gg_poll | 3.63 | 43.41 |
Server storage [IO: ▲1.10MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
GG Polls: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲245 | 14.63 ▲0.28 | 1.80 ▲0.17 | 43.98 ▼7.46 |
Dashboard /wp-admin | 2,380 ▲203 | 6.14 ▲0.46 | 106.42 ▲14.43 | 38.13 ▲0.68 |
Posts /wp-admin/edit.php | 2,305 ▲205 | 3.37 ▲1.35 | 44.10 ▲4.16 | 33.02 ▼5.59 |
Add New Post /wp-admin/post-new.php | 1,564 ▲27 | 23.07 ▲5.16 | 660.11 ▲30.55 | 36.60 ▼32.78 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.16 ▼0.04 | 77.63 ▼22.14 | 40.09 ▲0.13 |
Polls settings /wp-admin/ns-poll-settings.php | 26 | 0.42 | 0.07 | 14.00 |
Variants /wp-admin/edit.php?post_type=ns_gg_variant | 1,278 | 3.39 | 41.83 | 27.78 |
Pairs /wp-admin/edit.php?post_type=ns_gg_pair | 1,278 | 3.23 | 45.11 | 26.73 |
Create new poll /wp-admin/admin.php?page=ns-polls | 1,663 | 3.73 | 49.12 | 66.85 |
Polls /wp-admin/edit.php?post_type=ns_gg_poll | 1,278 | 3.33 | 42.90 | 26.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gg-polls/template-parts/forms/text.php
- > /wp-content/plugins/gg-polls/template-parts/forms/checkbox.php
- > /wp-content/plugins/gg-polls/template-parts/forms/select.php
- > /wp-content/plugins/gg-polls/template-parts/forms/textarea.php
- 35× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: fieldName in wp-content/plugins/gg-polls/template-parts/forms/textarea.php on line 3
- > PHP Notice
Undefined variable: h in wp-content/plugins/gg-polls/template-parts/forms/img.php on line 3
- > PHP Notice
Undefined variable: w in wp-content/plugins/gg-polls/template-parts/forms/img.php on line 3
- > PHP Notice
Undefined variable: fieldID in wp-content/plugins/gg-polls/template-parts/forms/textarea.php on line 1
- > PHP Notice
Undefined variable: fieldTitle in wp-content/plugins/gg-polls/template-parts/forms/select.php on line 1
- > PHP Notice
Undefined variable: fieldID in wp-content/plugins/gg-polls/template-parts/forms/select.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gg-polls/templates/archive-poll.php:3
- > PHP Notice
Undefined variable: fieldName in wp-content/plugins/gg-polls/template-parts/forms/text.php on line 2
- > PHP Notice
Undefined variable: fieldValue in wp-content/plugins/gg-polls/template-parts/forms/textarea.php on line 5
- > PHP Notice
Undefined variable: fieldTitle in wp-content/plugins/gg-polls/template-parts/forms/img.php on line 2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/ns-poll-settings.php
- > Network (severe)
wp-admin/ns-poll-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wordpress poll, polling, poll, poll plugin, vote...
gg-polls/ggpolls.php 85% from 13 tests
The main PHP file in "GG Polls" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gg-polls.php" instead of "ggpolls.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,318 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 358 | 150 | 1,724 |
HTML | 2 | 49 | 53 | 360 |
PO File | 1 | 77 | 80 | 170 |
JavaScript | 5 | 6 | 50 | 60 |
CSS | 3 | 1 | 10 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 63.16% |
▷ Protected methods | 13 | 34.21% |
▷ Private methods | 1 | 2.63% |
Functions | 15 | |
▷ Named functions | 12 | 80.00% |
▷ Anonymous functions | 3 | 20.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 51.39KB | 17.47KB | ▼ 66.01% |
assets/screenshot-1.png | 29.66KB | 12.69KB | ▼ 57.24% |
images/image-upload-field.png | 22.33KB | 24.19KB | 0.00% |