Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.30ms] Passed 4 tests
An overview of server-side resources used by WP Easy Poll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 44.60 ▲6.86 |
Dashboard /wp-admin | 3.60 ▲0.25 | 44.93 ▼11.81 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 48.91 ▲0.76 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 87.07 ▼9.14 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.94 ▲2.99 |
Poll Settings /wp-admin/admin.php?page=easy_poll_afo | 3.44 | 35.63 |
Polls /wp-admin/admin.php?page=easy_polls | 3.41 | 33.44 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 50 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_easy_poll_a |
wp_easy_poll_q |
wp_easy_poll_votes |
New WordPress options |
---|
theysaidso_admin_options |
widget_poll_wid |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Easy Poll: 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,978 ▲207 | 13.99 ▼0.02 | 8.45 ▲6.57 | 41.49 ▲0.26 |
Dashboard /wp-admin | 2,249 ▲61 | 5.11 ▼0.77 | 111.59 ▲5.94 | 39.16 ▼2.94 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.36 ▲0.38 | 48.57 ▲10.10 | 36.21 ▲4.66 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.35 ▼0.08 | 674.25 ▲16.64 | 40.37 ▼20.19 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.34 ▲0.16 | 101.33 ▲4.02 | 46.86 ▲2.15 |
Poll Settings /wp-admin/admin.php?page=easy_poll_afo | 1,125 | 1.99 | 38.93 | 32.61 |
Polls /wp-admin/admin.php?page=easy_polls | 909 | 1.92 | 27.30 | 25.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_easy_poll_votes
- wp_easy_poll_q
- wp_easy_poll_a
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_poll_wid
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=easy_polls
- > Warning in wp-content/plugins/wp-easy-poll-afo/functions.php+6
session_start(): Cannot start session when headers already sent
- > GET request to /wp-admin/admin.php?page=easy_polls
- > Notice in wp-content/plugins/wp-easy-poll-afo/includes/class-poll.php+290
Undefined index: paged
- > GET request to /wp-admin/admin.php?page=easy_polls
- > Notice in wp-content/plugins/wp-easy-poll-afo/view/admin/poll-search.php+6
Undefined index: p_ques
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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-easy-poll-afo/view/admin/pro-add.php
- 14× 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 wp_nonce_field() in wp-content/plugins/wp-easy-poll-afo/view/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-easy-poll-afo/view/admin/donate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-easy-poll-afo/view/admin/shortcodes.php:4
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-easy-poll-afo/wp-easy-poll.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-easy-poll-afo/wp-easy-poll.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-easy-poll-afo/view/admin/help.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-easy-poll-afo/view/admin/poll-edit.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-easy-poll-afo/view/admin/poll-report.php:1
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-easy-poll-afo/wp-easy-poll.php on line 25
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-easy-poll-afo/wp-easy-poll.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
10 plugin tags: user poll, poll, wp poll, user vote, vote...
wp-easy-poll-afo/wp-easy-poll.php 85% from 13 tests
The entry point to "WP Easy Poll" version 2.2.9 is a PHP file that has certain tags in its header comment area
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 ("wp-easy-poll-afo.php" instead of "wp-easy-poll.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,970 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 207 | 287 | 1,821 |
PHP | 22 | 192 | 32 | 1,506 |
CSS | 3 | 69 | 50 | 579 |
PO File | 1 | 31 | 0 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 4 | 5.00% |
▷ Public methods | 80 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
images/edit.png | 0.54KB | 0.60KB | 0.00% |
assets/css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
images/delete.png | 0.56KB | 0.53KB | ▼ 6.09% |