10% polldeep

Code Review | PollDeep

WordPress plugin PollDeep scored 10% from 54 tests.

About plugin

  • Plugin page: polldeep
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 5.9.2
  • First release: Sep 1, 2018
  • Latest release: Mar 11, 2020
  • Number of updates: 35
  • Update frequency: every 17.0 days
  • Top authors: smartinfosys2018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 595 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/polldeep/polldeep.php+271
    include_once(wp-content/plugins/polldeep/upload.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼2.37MB] [CPU: ▼340.26ms] Passed 4 tests

Analyzing server-side resources used by PollDeep
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.00 ▼1.514.94 ▼47.79
Dashboard /wp-admin2.02 ▼1.394.14 ▼29.15
Posts /wp-admin/edit.php2.02 ▼1.625.07 ▼31.04
Add New Post /wp-admin/post-new.php2.02 ▼4.954.39 ▼1,253.04
Media Library /wp-admin/upload.php2.02 ▼1.284.58 ▼21.36
Expired Polls /wp-admin/admin.php?page=expired-polls2.024.77
Create Poll /wp-admin/admin.php?page=create-poll2.024.29
Dashboard /wp-admin/admin.php?page=polldeep-dash2.024.92
Active Polls /wp-admin/admin.php?page=active-polls2.024.86
Polldeep /wp-admin/admin.php?page=polldeep2.025.00

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 107 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

PollDeep: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲6516.22 ▲0.945.98 ▲0.122.17 ▼0.50
Dashboard /wp-admin2,935 ▲746.12 ▲0.00113.44 ▼22.57155.86 ▼5.23
Posts /wp-admin/edit.php2,734 ▲403.24 ▲0.0262.60 ▲2.20137.03 ▼1.95
Add New Post /wp-admin/post-new.php1,782 ▲3021.68 ▲0.71429.47 ▼49.52160.98 ▼0.51
Media Library /wp-admin/upload.php1,746 ▲485.41 ▼0.11147.83 ▲7.07191.68 ▲4.93
Expired Polls /wp-admin/admin.php?page=expired-polls1,2434.5095.3995.82
Create Poll /wp-admin/admin.php?page=create-poll1,2364.2892.5983.67
Dashboard /wp-admin/admin.php?page=polldeep-dash1,2464.1592.8183.33
Active Polls /wp-admin/admin.php?page=active-polls1,2424.1690.1383.97
Polldeep /wp-admin/admin.php?page=polldeep1,2394.17103.2285.05

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
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/polldeep/polldeep.php+271
    include_once(wp-content/plugins/polldeep/upload.php): failed to open stream: No such file or directory

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=polldeep
    • > Warning in wp-content/plugins/polldeep/polldeep.php+271
    include_once(wp-content/plugins/polldeep/upload.php): failed to open stream: No such file or directory
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=polldeep
    • > Warning in wp-content/plugins/polldeep/polldeep.php+271
    include_once(): Failed opening 'wp-content/plugins/polldeep/upload.php' for inclusion (include_path='.:/usr/share/php')
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=polldeep
    • > Notice in wp-content/plugins/polldeep/polldeep.php+447
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=active-polls
    • > Warning in wp-content/plugins/polldeep/activePoll.php+9
    include_once(wp-content/plugins/polldeep/style.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=active-polls
    • > Warning in wp-content/plugins/polldeep/activePoll.php+9
    include_once(): Failed opening 'wp-content/plugins/polldeep/style.php' for inclusion (include_path='.:/usr/share/php')

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/polldeep/editPoll.php on line 246

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (polldeep/assets/authentication.png), #2 (polldeep/assets/create-poll.png), #3 (polldeep/assets/dashboard.png)
The official readme.txt might help

polldeep/polldeep.php 92% from 13 tests

The entry point to "PollDeep" version 1.3.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected28,631 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,510
CSS222341016,684
JavaScript134954064,811
PHP123512214,626

PHP code Passed 2 tests

Analyzing 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.79
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
30 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/form_title2.png0.53KB0.32KB▼ 38.63%
flat/yellow.png1.48KB1.66KB0.00%
css/images/select_bg.png0.32KB0.18KB▼ 44.04%
css/images/for.png1.66KB1.42KB▼ 14.38%
flat/orange.png1.48KB1.66KB0.00%