Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.10MB] [CPU: ▲4.29ms] 75% from 4 tests
Server-side resources used by TS Poll - Best Poll Plugin for WordPress
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 969.25ms on /wp-admin/admin.php?page=ts-poll-add-ons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.59 ▲1.13 | 45.67 ▲0.53 |
Dashboard /wp-admin | 4.44 ▲1.14 | 54.41 ▲0.33 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 58.70 ▲9.51 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.09 | 101.10 ▲6.77 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 46.90 ▲12.59 |
All Polls /wp-admin/admin.php?page=ts-poll | 4.27 | 47.66 |
Add Poll /wp-admin/admin.php?page=ts-poll-builder | 4.96 | 50.33 |
Add-Ons /wp-admin/admin.php?page=ts-poll-add-ons | 4.38 | 969.25 |
Pro Features /wp-admin/admin.php?page=ts-poll-pro | 4.27 | 37.70 |
Server storage [IO: ▲4.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 128 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ts_poll_questions |
wp_ts_poll_answers |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_ts_poll_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by TS Poll - Best Poll Plugin for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,147 ▲361 | 13.61 ▼0.74 | 10.52 ▲8.34 | 37.72 ▼5.06 |
Dashboard /wp-admin | 2,421 ▲241 | 5.77 ▲0.19 | 97.35 ▼5.21 | 79.39 ▲36.00 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 2.30 ▲0.29 | 38.61 ▲1.53 | 37.09 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,590 ▲62 | 23.35 ▲0.06 | 650.43 ▼62.75 | 36.91 ▼24.79 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.14 ▼0.03 | 105.89 ▲3.15 | 63.07 ▲20.48 |
All Polls /wp-admin/admin.php?page=ts-poll | 1,195 | 1.66 | 33.41 | 51.44 |
Add Poll /wp-admin/admin.php?page=ts-poll-builder | 1,818 | 4.57 | 71.78 | 90.05 |
Add-Ons /wp-admin/admin.php?page=ts-poll-add-ons | 1,764 | 2.01 | 24.88 | 104.56 |
Pro Features /wp-admin/admin.php?page=ts-poll-pro | 1,383 | 1.99 | 23.10 | 65.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_ts_poll_answers
- wp_ts_poll_questions
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_ts_poll_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ts-poll
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
The following issues need your attention
- 64× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/poll-wp/public/css/tsp-content-css.php on line 2
- > PHP Notice
Undefined variable: ts_poll_question_params in wp-content/plugins/poll-wp/public/partials/tsp-footer-display.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/poll-wp/public/theme_partials/tsp-image-video.php:351
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/poll-wp/public/js/tsp-content-js.php on line 728
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/poll-wp/public/theme_partials/tsp-standard.php:882
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/poll-wp/public/partials/tsp-header-display.php:59
- > PHP Notice
Undefined variable: ts_poll_question_params in wp-content/plugins/poll-wp/public/js/tsp-content-js-edit.php on line 375
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/poll-wp/public/js/tsp-content-js.php on line 732
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/poll-wp/public/js/tsp-content-js-edit.php on line 452
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/poll-wp/public/js/tsp-content-js.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
7 plugin tags: image poll, wordpress poll, poll plugin, builder poll, video poll...
poll-wp/index.php 85% from 13 tests
The primary PHP file in "TS Poll - Best Poll Plugin for WordPress" version 2.2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 168 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("poll-wp.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin31,223 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 176 | 744 | 12,928 |
CSS | 14 | 1,979 | 126 | 8,906 |
JavaScript | 12 | 998 | 1,028 | 7,012 |
PO File | 4 | 860 | 1,141 | 1,884 |
SVG | 12 | 0 | 0 | 493 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 36.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 5.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 9 | 9.28% |
▷ Public methods | 91 | 93.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.19% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 PNG files occupy 1.83MB with 1.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/JSON.png | 51.11KB | 9.11KB | ▼ 82.18% |
admin/img/PDF.png | 187.15KB | 19.18KB | ▼ 89.75% |
admin/img/tsp_standard_poll.png | 7.35KB | 6.21KB | ▼ 15.59% |
admin/img/radial.png | 111.54KB | 41.01KB | ▼ 63.23% |
admin/img/ts_poll_logo_sm.png | 2.06KB | 1.27KB | ▼ 38.27% |