84% pickr-poll-embedder

Code Review | Pickr Poll Embedder

WordPress plugin Pickr Poll Embedder scored84%from 54 tests.

About plugin

  • Plugin page: pickr-poll-embedder
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Apr 28, 2014
  • Number of updates: 4
  • Update frequency: every 4.0 days
  • Top authors: e1746288 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.16ms] Passed 4 tests

An overview of server-side resources used by Pickr Poll Embedder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.64 ▼0.35
Dashboard /wp-admin3.32 ▲0.0143.96 ▼3.23
Posts /wp-admin/edit.php3.37 ▲0.0144.44 ▼4.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.33 ▲6.56
Media Library /wp-admin/upload.php3.24 ▲0.0133.24 ▼0.72

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pickr Poll Embedder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.73 ▲0.112.21 ▲0.4744.12 ▲3.04
Dashboard /wp-admin2,192 ▲155.55 ▼0.1082.84 ▼1.6036.97 ▼6.61
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0536.00 ▼1.2434.76 ▲2.28
Add New Post /wp-admin/post-new.php1,534 ▲818.15 ▼4.89601.21 ▼65.6961.05 ▲10.50
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0695.15 ▼0.4442.41 ▼6.38

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pickr-poll-embedder/pickr-poll-embedder.php:77

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: poll, wordpress, pickr, link, iframe...

pickr-poll-embedder/pickr-poll-embedder.php 92% from 13 tests

This is the main PHP file of "Pickr Poll Embedder" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

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
No dangerous file extensions were detected251 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24216206
PHP1122145

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin