83% voting-platform-feelbacks

Code Review | Reactions

WordPress plugin Reactions scored83%from 54 tests.

About plugin

  • Plugin page: voting-platform-f...
  • Plugin version: 3.00
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 4, 2015
  • Latest release: Oct 20, 2019
  • Number of updates: 112
  • Update frequency: every 15.4 days
  • Top authors: Vicomi (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

40+ active /36,094 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.08ms] Passed 4 tests

This is a short check of server-side resources used by Reactions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.39 ▼1.41
Dashboard /wp-admin3.31 ▲0.0043.37 ▼6.07
Posts /wp-admin/edit.php3.36 ▲0.0046.93 ▼3.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.98 ▼13.38
Media Library /wp-admin/upload.php3.23 ▲0.0036.36 ▲1.80

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
vicomi_feelbacks_uuid
can_compress_scripts
widget_recent-posts
vicomi_activation_redirect
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reactions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▼0.071.89 ▲0.1742.13 ▲0.84
Dashboard /wp-admin2,206 ▲184.85 ▼0.24101.14 ▼4.6538.37 ▼5.27
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0339.28 ▼0.8035.05 ▲0.54
Add New Post /wp-admin/post-new.php1,533 ▼023.18 ▼0.10693.62 ▲9.9753.76 ▲1.16
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.05101.46 ▲2.0644.37 ▼1.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • vicomi_feelbacks_uuid
    • db_upgraded
    • can_compress_scripts
    • vicomi_activation_redirect
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/voting-platform-feelbacks/manager.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/voting-platform-feelbacks/vicomi-feelbacks.php:18

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

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
  • Tags: You are using too many tags: 151 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Emotional Engagement), #2 (Emotion Analytics), #3 (Design Options), #4 (Mobile Version), #5 (Content Recommendations), #6 (Facebook Share), #7 (Text Customization)
The official readme.txt might help

voting-platform-feelbacks/vicomi-feelbacks.php 92% from 13 tests

The principal PHP file in "Reactions" v. 3.00 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("voting-platform-feelbacks.php" instead of "vicomi-feelbacks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,020 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61751811,020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity54.50
▷ Minimum class complexity25.00
▷ Maximum class complexity84.00
Average method complexity7.69
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.22MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png181.61KB77.19KB▼ 57.50%
screenshot-1.png113.90KB69.35KB▼ 39.11%
screenshot-6.png155.21KB76.47KB▼ 50.73%
screenshot-5.png273.05KB105.29KB▼ 61.44%
screenshot-7.png151.89KB67.47KB▼ 55.58%