74% wp-poll

Code Review | LiquidPoll - Advanced Polls for Creators and Brands

WordPress plugin LiquidPoll - Advanced Polls for Creators and Brands scored74%from 54 tests.

About plugin

  • Plugin page: wp-poll
  • Plugin version: 3.3.72
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Sep 7, 2023
  • Number of updates: 174
  • Update frequency: every 16.6 days
  • Top authors: jaedm97 (60.34%)liquidpoll (30.46%)pluginbazar (6.32%)frankopazo (4.6%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /96,337 total downloads

Benchmarks

Plugin footprint 65% 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: ▲2.78MB] [CPU: ▲24.71ms] Passed 4 tests

Analyzing server-side resources used by LiquidPoll - Advanced Polls for Creators and Brands
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.38 ▲2.9263.31 ▲25.57
Dashboard /wp-admin6.07 ▲2.7770.76 ▲25.59
Posts /wp-admin/edit.php6.12 ▲2.7768.90 ▲19.58
Add New Post /wp-admin/post-new.php8.69 ▲2.80121.51 ▲29.73
Media Library /wp-admin/upload.php6.01 ▲2.7864.94 ▲28.09
Settings /wp-admin/edit.php?post_type=poll&page=settings8.8774.21
Poll Categories /wp-admin/edit-tags.php?taxonomy=poll_cat&post_type=poll6.0059.78
All Polls /wp-admin/edit.php?post_type=poll8.9472.82
Add Poll /wp-admin/post-new.php?post_type=poll8.9285.15
Addons /wp-admin/edit.php?post_type=poll&page=addons8.8766.17
Reports /wp-admin/edit.php?post_type=poll&page=reports8.8766.94

Server storage [IO: ▲2.39MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 207 new files
Database: 3 new tables, 8 new options
New tables
wp_liquidpoll_results
wp_liquidpoll_emails
wp_liquidpoll_results_meta
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
wp_poll
widget_liquidpoll_widget_poll

Browser metrics Passed 4 tests

Checking browser requirements for LiquidPoll - Advanced Polls for Creators and Brands
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲30015.89 ▲1.5120.56 ▲18.6039.28 ▲0.48
Dashboard /wp-admin2,288 ▲976.20 ▲1.29115.01 ▲12.0838.45 ▼4.88
Posts /wp-admin/edit.php2,227 ▲1413.00 ▲0.9443.72 ▲4.3432.61 ▼7.81
Add New Post /wp-admin/post-new.php1,585 ▲6823.91 ▲6.22653.75 ▼27.1834.63 ▼25.39
Media Library /wp-admin/upload.php1,473 ▲825.44 ▲1.23109.40 ▲7.9244.44 ▼0.87
Settings /wp-admin/edit.php?post_type=poll&page=settings2,8936.2389.9559.47
Poll Categories /wp-admin/edit-tags.php?taxonomy=poll_cat&post_type=poll1,3573.0536.2526.79
All Polls /wp-admin/edit.php?post_type=poll1,5565.9171.6927.01
Add Poll /wp-admin/post-new.php?post_type=poll5,6619.74199.96134.50
Addons /wp-admin/edit.php?post_type=poll&page=addons1,2875.6867.4131.37
Reports /wp-admin/edit.php?post_type=poll&page=reports1,5405.8966.6127.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 3 tables
    • wp_liquidpoll_results_meta
    • wp_liquidpoll_emails
    • wp_liquidpoll_results
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • db_upgraded
    • widget_liquidpoll_widget_poll
    • theysaidso_admin_options
    • wp_poll
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
  • 18× 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 add_action() in wp-content/plugins/wp-poll/includes/classes/class-hooks.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function liquidpoll() in wp-content/plugins/wp-poll/includes/addons/class-addons.php:164
    • > PHP Fatal error
      Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/wp-poll/includes/wpdk/settings/classes/admin-options.class.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'LIQUIDPOLL_Widget_base' not found in wp-content/plugins/wp-poll/includes/elementor/widget-nps/widget.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/wp-poll/includes/wpdk/settings/classes/fields.class.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function liquidpoll() in wp-content/plugins/wp-poll/includes/elementor/widget-reaction/views/template-1.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function liquidpoll() in wp-content/plugins/wp-poll/includes/admin-templates/reports.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function liquidpoll() in wp-content/plugins/wp-poll/includes/elementor/widget-poll/views/template-1.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-poll/includes/admin-templates/results-edit.php:11
    • > PHP Notice
      Trying to get property 'post_type' of non-object in wp-content/plugins/wp-poll/includes/admin-templates/poll-submitbox.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 to be fixed:
  • Screenshots: Add images for these screenshots: #7 (screenshot-7.png), #8 (screenshot-8.png), #9 (screenshot-9.png), #10 (screenshot-10.png), #11 (screenshot-11.png), #12 (screenshot-12.png), #13 (screenshot-13.png), #14 (screenshot-14.png), #15 (screenshot-15.png), #16 (screenshot-16.png), #17 (screenshot-17.png)
You can look at the official readme.txt

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

The main file in "LiquidPoll - Advanced Polls for Creators and Brands" v. 3.3.72 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
It allows user to poll in your website with many awesome features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin32,923 lines of code in 182 files:
LanguageFilesBlank linesComment linesLines of code
PHP1274,8963,24715,277
CSS191,6637589,581
JavaScript171,5615557,480
SVG1710287
PO File1125133285
Markdown18013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity28.69
▷ Minimum class complexity1.00
▷ Maximum class complexity299.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes84
▷ Abstract classes22.38%
▷ Concrete classes8297.62%
▷ Final classes00.00%
Methods533
▷ Static methods499.19%
▷ Public methods48991.74%
▷ Protected methods122.25%
▷ Private methods326.00%
Functions87
▷ Named functions7383.91%
▷ Anonymous functions1416.09%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
assets/images/ui-bg_glass_55_fbf9ee_1x400.png0.38KB0.12KB▼ 67.68%
assets/images/author.png28.04KB10.77KB▼ 61.59%
assets/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%