10% easy-poll

Code Review | Easy Poll - Best WordPress Poll System & Survey Plugin

WordPress plugin Easy Poll - Best WordPress Poll System & Survey Plugin scored10%from 54 tests.

About plugin

  • Plugin page: easy-poll
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Sep 15, 2023
  • Number of updates: 21
  • Update frequency: every 18.4 days
  • Top authors: shewa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /394 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/easy-poll/easy-poll.php+183
    Uncaught Error: Class 'EasyPoll\ShortCodes\ShortCodes' not found in wp-content/plugins/easy-poll/easy-poll.php:183
    Stack trace:
    #0 wp-content/plugins/easy-poll/easy-poll.php(70): EasyPoll->load_packages()
    #1 wp-content/plugins/easy-poll/easy-poll.php(119): EasyPoll->__construct()
    #2 wp-content/plugins/easy-poll/easy-poll.php(189): EasyPoll::instance()
    #3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.93ms] Passed 4 tests

A check of server-side resources used by Easy Poll - Best WordPress Poll System & Survey Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.75 ▲4.78
Dashboard /wp-admin3.31 ▲0.0044.83 ▼2.76
Posts /wp-admin/edit.php3.36 ▲0.0045.96 ▼4.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.66 ▼6.92
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▼5.06

Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Poll - Best WordPress Poll System & Survey Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.14 ▼1.241.89 ▼0.0646.28 ▼0.43
Dashboard /wp-admin2,206 ▲155.90 ▼0.00110.47 ▲5.7041.61 ▲0.24
Posts /wp-admin/edit.php2,086 ▲152.14 ▲0.1034.46 ▼2.8129.64 ▼6.15
Add New Post /wp-admin/post-new.php1,514 ▼017.62 ▼0.00627.64 ▼62.3252.37 ▲2.07
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.0296.62 ▼8.0341.43 ▼5.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EasyPoll\\FormBuilder\\FormField' not found in wp-content/plugins/easy-poll/views/metabox/poll-builder.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-poll/templates/poll-form.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-poll/templates/poll-parts/poll-active.php on line 11
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/easy-poll/views/report/progress-bar.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'EasyPoll' not found in wp-content/plugins/easy-poll/templates/poll-parts/poll-upcoming.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-poll/views/components/notification.php:11
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/easy-poll/templates/poll-parts/poll-active.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyPoll\\Report\\Report' not found in wp-content/plugins/easy-poll/views/report/report-overview.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyPoll\\Utilities\\Utilities' not found in wp-content/plugins/easy-poll/views/report/poll-submission-lists.php:13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-poll/templates/poll-parts/poll-active.php on line 12

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: vote, feedback, contact-form, online-poll, form...

easy-poll/easy-poll.php Passed 13 tests

The principal PHP file in "Easy Poll - Best WordPress Poll System & Survey Plugin" v. 1.2.1 is loaded by WordPress automatically on each request
77 characters long description:
A simple plugin for creating polls, survey, user's feedback management system

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,818 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP727362,4023,949
CSS312710851
JavaScript403718

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 code0.32
Average class complexity6.30
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces17
Interfaces4
Traits0
Classes42
▷ Abstract classes24.76%
▷ Concrete classes4095.24%
▷ Final classes12.50%
Methods231
▷ Static methods10645.89%
▷ Public methods22798.27%
▷ Protected methods10.43%
▷ Private methods31.30%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin