84% poll-survey-form-builder-by-zigpoll

Code Review | Poll, Survey & Form Builder by Zigpoll

WordPress plugin Poll, Survey & Form Builder by Zigpoll scored84%from 54 tests.

About plugin

  • Plugin page: poll-survey-form-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8
  • WordPress version: 6.3.1
  • First release: Feb 4, 2020
  • Latest release: Dec 28, 2021
  • Number of updates: 3
  • Update frequency: every 231.0 days
  • Top authors: zigpoll (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.23ms] Passed 4 tests

An overview of server-side resources used by Poll, Survey & Form Builder by Zigpoll
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.60 ▼6.84
Dashboard /wp-admin3.32 ▲0.0245.17 ▼1.15
Posts /wp-admin/edit.php3.37 ▲0.0248.76 ▲3.85
Add New Post /wp-admin/post-new.php5.90 ▲0.02103.48 ▲16.96
Media Library /wp-admin/upload.php3.24 ▲0.0238.23 ▲3.20

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Poll, Survey & Form Builder by Zigpoll: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8813.62 ▼0.982.67 ▲0.4848.17 ▼0.93
Dashboard /wp-admin2,222 ▲344.85 ▼0.9794.12 ▼21.5740.14 ▼2.43
Posts /wp-admin/edit.php2,108 ▲192.06 ▲0.0239.54 ▲1.5734.57 ▼1.15
Add New Post /wp-admin/post-new.php1,550 ▲3123.20 ▼0.13663.35 ▼14.9855.64 ▲4.66
Media Library /wp-admin/upload.php1,404 ▲194.23 ▼0.0193.59 ▼13.8041.52 ▼5.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poll-survey-form-builder-by-zigpoll/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: survey, poll, form

poll-survey-form-builder-by-zigpoll/index.php 85% from 13 tests

The main PHP file in "Poll, Survey & Form Builder by Zigpoll" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("poll-survey-form-builder-by-zigpoll.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141265
JavaScript114140

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/zigpoll-icon.png7.22KB3.99KB▼ 44.74%