77% epoll-wp-voting

Code Review | WP Poll Maker - Best WordPress Poll Plugin for Voting Contest

WordPress plugin WP Poll Maker - Best WordPress Poll Plugin for Voting Contest scored77%from 54 tests.

About plugin

  • Plugin page: epoll-wp-voting
  • Plugin version: 3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2017
  • Latest release: Jul 18, 2023
  • Number of updates: 442
  • Update frequency: every 5.3 days
  • Top authors: infotheme.com (67.42%)plingoo (32.81%)

Code review

54 tests

User reviews

17 reviews

Install metrics

2,000+ active /43,532 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.85MB] [CPU: ▲1.07ms] 75% from 4 tests

An overview of server-side resources used by WP Poll Maker - Best WordPress Poll Plugin for Voting Contest
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,387.27ms on /wp-admin/admin.php?page=epoll_docs)
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8749.17 ▲4.91
Dashboard /wp-admin4.18 ▲0.8861.90 ▲10.71
Posts /wp-admin/edit.php4.22 ▲0.8758.24 ▲12.67
Add New Post /wp-admin/post-new.php6.72 ▲0.84108.64 ▼24.00
Media Library /wp-admin/upload.php4.04 ▲0.8150.55 ▲16.01
Options /wp-admin/admin.php?page=epoll_options4.0849.35
Voting /wp-admin/edit.php?post_type=it_epoll_poll4.1446.78
Support & Faqs /wp-admin/admin.php?page=epoll_faq4.101,754.56
Templates /wp-admin/admin.php?page=epoll_templates4.111,685.28
Poll /wp-admin/edit.php?post_type=it_epoll_opinion4.1444.81
Add-ons /wp-admin/admin.php?page=epoll_addons4.111,169.94
How To Guide /wp-admin/admin.php?page=epoll_docs4.101,387.27
Dashboard /wp-admin/admin.php?page=epoll_dashboard4.0345.00

Server storage [IO: ▲2.02MB] [DB: ▲0.03MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Poll Maker - Best WordPress Poll Plugin for Voting Contest
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲27414.30 ▲0.057.12 ▲5.3637.00 ▼10.06
Dashboard /wp-admin2,276 ▲875.32 ▲0.39105.00 ▼17.2969.62 ▲22.93
Posts /wp-admin/edit.php2,187 ▲1192.43 ▲0.4443.64 ▲9.0159.51 ▲25.11
Add New Post /wp-admin/post-new.php6,274 ▲4,75524.69 ▲1.54892.80 ▲221.6236.59 ▼15.49
Media Library /wp-admin/upload.php1,475 ▲874.55 ▲0.2593.88 ▼13.3678.47 ▲34.24
Options /wp-admin/admin.php?page=epoll_options1,5962.2240.2543.93
Voting /wp-admin/edit.php?post_type=it_epoll_poll1,2232.3635.0043.64
Support & Faqs /wp-admin/admin.php?page=epoll_faq1,0142.1529.1234.22
Templates /wp-admin/admin.php?page=epoll_templates9982.1730.1627.95
Poll /wp-admin/edit.php?post_type=it_epoll_opinion1,2232.3634.3141.24
Add-ons /wp-admin/admin.php?page=epoll_addons1,1182.3030.4827.21
How To Guide /wp-admin/admin.php?page=epoll_docs1,0032.1628.3234.66
Dashboard /wp-admin/admin.php?page=epoll_dashboard9692.1526.4431.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/epoll-wp-voting/core/admin/addons.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoll-wp-voting/backend/addons/default/frontend/form_action.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/epoll-wp-voting/core/admin/dashboard/overview.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoll-wp-voting/backend/actions/it_epoll_poll.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoll-wp-voting/backend/addons/default/backend/results.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/epoll-wp-voting/backend/addons/default/backend/results/view_reports.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoll-wp-voting/backend/addons/poll-duplicator/backend/enque_scripts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function it_epoll_init_unique_vote_session() in wp-content/plugins/epoll-wp-voting/frontend/templates/default/cpt/it_epoll_poll.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoll-wp-voting/backend/addons/google-analytics-poll/backend/option.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/epoll-wp-voting/core/admin/options.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=epoll_docs
    • > Network (severe)
    https://ps.w.org/epoll-wp-voting/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #16, #17, #18 in epoll-wp-voting/assets to your readme.txt
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
The official readme.txt might help

epoll-wp-voting/it-epoll.php 77% from 13 tests

The main PHP file in "WP Poll Maker - Best WordPress Poll Plugin for Voting Contest" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 337 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("epoll-wp-voting.php" instead of "it-epoll.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin28,788 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
PO File266,9689,30815,548
PHP461,1534605,390
CSS8435163,830
SVG2131,919
HTML129041,441
JavaScript915548660

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions118
▷ Named functions118100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
frontend/templates/default/icon.png10.99KB5.27KB▼ 52.08%
backend/addons/default/backend/actions/mini_logo.png6.49KB2.40KB▼ 63.05%
backend/addons/google-analytics-poll/icon.png19.59KB7.91KB▼ 59.65%
backend/addons/poll-duplicator/icon.png14.19KB5.30KB▼ 62.65%
backend/addons/default/icon.png7.45KB4.00KB▼ 46.26%