Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.44ms] Passed 4 tests
This is a short check of server-side resources used by YOP Poll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 51.70 ▲11.85 |
Dashboard /wp-admin | 3.52 ▲0.22 | 46.61 ▼4.97 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 52.04 ▲2.06 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 94.67 ▼5.62 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.45 ▲6.77 |
Upgrade to Pro /wp-admin/admin.php?page=yop-poll-upgrade-to-pro | 3.44 | 36.26 |
All Polls /wp-admin/admin.php?page=yop-polls | 3.43 | 34.93 |
Logs /wp-admin/admin.php?page=yop-poll-logs | 3.41 | 35.77 |
Settings /wp-admin/admin.php?page=yop-poll-settings | 3.74 | 33.45 |
Add New /wp-admin/admin.php?page=yop-poll-add-poll | 4.52 | 62.40 |
Bans /wp-admin/admin.php?page=yop-poll-bans | 3.41 | 33.78 |
Server storage [IO: ▲5.25MB] [DB: ▲0.24MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 357 new files
Database: 9 new tables, 9 new options
New tables |
---|
wp_yoppoll_bans |
wp_yoppoll_other_answers |
wp_yoppoll_elements |
wp_yoppoll_subelements |
wp_yoppoll_templates |
wp_yoppoll_logs |
wp_yoppoll_votes |
wp_yoppoll_skins |
wp_yoppoll_polls |
New WordPress options |
---|
yop_poll_settings |
theysaidso_admin_options |
db_upgraded |
yop_poll_version |
can_compress_scripts |
widget_yop_poll_widget |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YOP Poll
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 14.00 ▼0.29 | 10.86 ▲9.28 | 37.89 ▲0.86 |
Dashboard /wp-admin | 2,244 ▲53 | 5.86 ▼0.04 | 110.52 ▼2.54 | 73.48 ▲34.70 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.04 ▲0.03 | 40.31 ▲1.50 | 36.53 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,708 ▲166 | 24.46 ▲6.34 | 697.31 ▲67.01 | 64.98 ▲10.51 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.21 ▼0.12 | 96.13 ▼3.82 | 74.21 ▲28.37 |
Upgrade to Pro /wp-admin/admin.php?page=yop-poll-upgrade-to-pro | 1,433 | 3.02 | 44.90 | 73.98 |
All Polls /wp-admin/admin.php?page=yop-polls | 1,386 | 3.10 | 50.09 | 57.59 |
Logs /wp-admin/admin.php?page=yop-poll-logs | 1,135 | 3.05 | 38.42 | 29.10 |
Settings /wp-admin/admin.php?page=yop-poll-settings | 2,001 | 3.11 | 42.42 | 28.84 |
Add New /wp-admin/admin.php?page=yop-poll-add-poll | 14,889 | 5.19 | 263.39 | 40.51 |
Bans /wp-admin/admin.php?page=yop-poll-bans | 1,103 | 3.07 | 43.06 | 31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 9 tables in the database
- wp_yoppoll_templates
- wp_yoppoll_bans
- wp_yoppoll_elements
- wp_yoppoll_other_answers
- wp_yoppoll_votes
- wp_yoppoll_logs
- wp_yoppoll_skins
- wp_yoppoll_subelements
- wp_yoppoll_polls
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- yop_poll_settings
- can_compress_scripts
- widget_recent-posts
- yop_poll_version
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_yop_poll_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/yop-poll/admin/views/general/upgrade-short-1.php
- > /wp-content/plugins/yop-poll/admin/views/general/upgrade-short-2.php
- > /wp-content/plugins/yop-poll/app.php
- > /wp-content/plugins/yop-poll/admin/views/polls/add/design-templates.php
- > /wp-content/plugins/yop-poll/admin/views/support/view.php
- 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yop-poll/admin/views/polls/add/options-poll.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/yop-poll/admin/views/general/upgrade-long.php:63
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yop-poll/admin/inc/ClassYOPPollWidget.php:2
- > PHP Notice
Trying to get property 'added_date' of non-object in wp-content/plugins/yop-poll/admin/views/polls/edit/main.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yop-poll/admin/views/bans/view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yop-poll/admin/views/polls/edit/design-custom-styles.php:13
- > PHP Warning
include(YOP_POLL_PATHadmin/views/polls/elements-definitions.php): failed to open stream: No such file or directory in wp-content/plugins/yop-poll/admin/views/polls/add/elements.php on line 2
- > PHP Warning
include(YOP_POLL_PATHadmin/views/polls/elements-definitions.php): failed to open stream: No such file or directory in wp-content/plugins/yop-poll/admin/views/polls/edit/elements.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yop-poll/admin/views/polls/add/options-results.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/yop-poll/admin/views/general/guide-2.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
yop-poll/yop_poll.php 85% from 13 tests
The principal PHP file in "YOP Poll" v. 6.5.29 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yop-poll.php" instead of "yop_poll.php")
- Description: The description should be shorter than 140 characters (currently 145 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin33,641 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 270 | 784 | 33,103 |
SVG | 3 | 0 | 2 | 310 |
JSON | 2 | 0 | 0 | 224 |
CSS | 2 | 0 | 22 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 304)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 95.82 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 560.00 |
Average method complexity | 5.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 304.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 518 | |
▷ Static methods | 218 | 42.08% |
▷ Public methods | 470 | 90.73% |
▷ Protected methods | 22 | 4.25% |
▷ Private methods | 26 | 5.02% |
Functions | 46 | |
▷ Named functions | 2 | 4.35% |
▷ Anonymous functions | 44 | 95.65% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
220 PNG files occupy 1.96MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/skins/minimal/purple.png | 1.11KB | 1.45KB | 0.00% |
admin/assets/images/skins/square/green@2x.png | 4.39KB | 3.10KB | ▼ 29.48% |
public/assets/captcha/images/eye.png | 1.28KB | 1.02KB | ▼ 20.53% |
public/assets/captcha/images/car@2x.png | 2.31KB | 1.75KB | ▼ 24.26% |
public/assets/captcha/images/lock@2x.png | 2.55KB | 1.97KB | ▼ 22.93% |