84% upvote-downvote-vote-with-a-tweet

Code Review | Upvote / Downvote - Vote with a Tweet

WordPress plugin Upvote / Downvote - Vote with a Tweet scored 84% from 54 tests.

About plugin

  • Plugin page: upvote-downvote-v...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2014
  • Latest release: Aug 26, 2015
  • Number of updates: 92
  • Update frequency: every 4.0 days
  • Top authors: Upvote Downvote (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,911 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.95ms] Passed 4 tests

A check of server-side resources used by Upvote / Downvote - Vote with a Tweet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.55 ▼2.87
Dashboard /wp-admin3.44 ▲0.1448.37 ▼2.99
Posts /wp-admin/edit.php3.56 ▲0.2045.67 ▲0.44
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.07 ▼14.36
Media Library /wp-admin/upload.php3.37 ▲0.1436.32 ▲2.06
Upvote / Downvote /wp-admin/options-general.php?page=udv-uidMenuOptions3.3833.53

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Upvote / Downvote - Vote with a Tweet
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.361.86 ▼0.0642.86 ▼1.32
Dashboard /wp-admin2,207 ▲184.90 ▼0.05113.44 ▲7.1842.14 ▼4.35
Posts /wp-admin/edit.php2,093 ▲251.99 ▼0.0034.28 ▲0.2531.20 ▼0.41
Add New Post /wp-admin/post-new.php6,564 ▲5,04523.17 ▼0.00866.25 ▲261.9977.86 ▲16.22
Media Library /wp-admin/upload.php1,392 ▲14.34 ▲0.1395.30 ▼1.8843.50 ▲1.49
Upvote / Downvote /wp-admin/options-general.php?page=udv-uidMenuOptions1,4411.7124.2731.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_udv_widget
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/upvote-downvote-vote-with-a-tweet/udvote.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

upvote-downvote-vote-with-a-tweet/udvote.php 92% from 13 tests

The entry point to "Upvote / Downvote - Vote with a Tweet" version 1.4.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("upvote-downvote-vote-with-a-tweet.php" instead of "udvote.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin878 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2227486855
XML10023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/ud1-165x200.png42.73KB11.31KB▼ 73.52%