84% wedgies-shortcode

Code Review | Social Polls by Wedgies.com

WordPress plugin Social Polls by Wedgies.com scored84%from 54 tests.

About plugin

  • Plugin page: wedgies-shortcode
  • Plugin version: 1.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.4.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2013
  • Latest release: Jan 15, 2016
  • Number of updates: 34
  • Update frequency: every 22.4 days
  • Top authors: jimmyjacobson (73.53%)packagejson (29.41%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /13,596 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Social Polls by Wedgies.com
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.10 ▼5.88
Dashboard /wp-admin3.32 ▲0.0240.56 ▼8.56
Posts /wp-admin/edit.php3.37 ▲0.0248.64 ▼2.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.33 ▼11.23
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▲6.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Polls by Wedgies.com
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.091.60 ▼0.0738.24 ▼6.54
Dashboard /wp-admin2,206 ▲185.89 ▲0.98110.18 ▲5.5042.45 ▼2.95
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0136.07 ▼3.4131.08 ▼3.04
Add New Post /wp-admin/post-new.php1,533 ▼322.95 ▼0.02645.97 ▼2.8447.98 ▼3.17
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0199.10 ▼0.9242.91 ▼2.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wedgies-shortcode/wedgies-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 52 tag instead of maximum 10
The official readme.txt is a good inspiration

wedgies-shortcode/wedgies-shortcode.php Passed 13 tests

The main file in "Social Polls by Wedgies.com" v. 1.4.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
Wedgies are polls you can embed on your WordPress page. Engage your audience by asking them a question via Wedgies.

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 detected83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1156567
Markdown17016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin