78% pinpoll

Code Review | Pinpoll

WordPress plugin Pinpoll scored78%from 54 tests.

About plugin

  • Plugin page: pinpoll
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2014
  • Latest release: Oct 8, 2020
  • Number of updates: 118
  • Update frequency: every 20.1 days
  • Top authors: pinpoll (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

70+ active /9,463 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Pinpoll
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.42 ▼4.78
Dashboard /wp-admin3.33 ▲0.0250.24 ▼11.16
Posts /wp-admin/edit.php3.38 ▲0.0252.26 ▼4.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.00 ▼25.97
Media Library /wp-admin/upload.php3.25 ▲0.0238.65 ▼1.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Pinpoll: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▲0.001.60 ▼0.4539.70 ▼5.59
Dashboard /wp-admin2,198 ▲245.61 ▼0.0792.97 ▲5.9543.93 ▼1.57
Posts /wp-admin/edit.php2,103 ▲62.14 ▲0.0740.82 ▲2.5638.05 ▼1.30
Add New Post /wp-admin/post-new.php1,547 ▲623.21 ▼0.13627.63 ▼45.4758.38 ▼5.15
Media Library /wp-admin/upload.php1,397 ▼04.24 ▼0.0098.88 ▼4.0942.31 ▼1.22

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
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pinpoll/admin/resources/gtm.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/pinpoll/admin/functions/pinpoll-functions.php:13

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)
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 35 tag instead of maximum 10
You can look at the official readme.txt

pinpoll/pinpoll.php Passed 13 tests

The main PHP file in "Pinpoll" ver. 4.0.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Create fun polls & understand your audience!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,153 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity27.82
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
▷ Static methods10.90%
▷ Public methods8980.18%
▷ Protected methods2118.92%
▷ Private methods10.90%
▷ Named functions1470.00%
▷ Anonymous functions630.00%
▷ Global constants1100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pinpoll_wp-icon_alpha.png2.98KB0.47KB▼ 84.15%
images/pinpoll_logo_sw_101x26.png2.05KB1.41KB▼ 31.24%
admin/images/pinpoll_wp-icon.png1.32KB0.42KB▼ 67.98%
admin/images/pinpoll_header_black.png2.05KB1.41KB▼ 31.24%