84% emotify-reaction-system

Code Review | Emotify Reaction Plugin

WordPress plugin Emotify Reaction Plugin scored84%from 54 tests.

About plugin

  • Plugin page: emotify-reaction-...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.5
  • WordPress version: 6.3.1
  • First release: Apr 27, 2016
  • Latest release: Nov 4, 2016
  • Number of updates: 38
  • Update frequency: every 5.1 days
  • Top authors: emotify (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Emotify Reaction Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.17 ▼3.20
Dashboard /wp-admin3.32 ▼0.0246.90 ▼16.49
Posts /wp-admin/edit.php3.37 ▲0.0252.28 ▲0.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.14 ▼16.51
Media Library /wp-admin/upload.php3.25 ▲0.0238.59 ▲3.54

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Emotify Reaction Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.19 ▼1.101.59 ▼0.3946.06 ▼0.98
Dashboard /wp-admin2,211 ▲295.89 ▲0.0498.62 ▼11.2971.92 ▲33.05
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.0238.87 ▼2.6635.06 ▲0.67
Add New Post /wp-admin/post-new.php1,682 ▲16322.47 ▼0.68705.92 ▲14.3151.02 ▼4.30
Media Library /wp-admin/upload.php1,396 ▲84.21 ▲0.0098.15 ▼9.7947.49 ▲3.57

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emotify-reaction-system/emotify_functions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emotify-reaction-system/init.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: reaction feed, recommendation engine, story reactions, engage audience, reaction system...

emotify-reaction-system/init.php 85% from 13 tests

Analyzing the main PHP file in "Emotify Reaction Plugin" version 2.0.2
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("emotify-reaction-system.php" instead of "init.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

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
Everything looks great! No dangerous files found in this plugin225 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24222147
CSS12378

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
emotify40.png4.36KB1.52KB▼ 65.18%
emotify_icon.png3.51KB0.92KB▼ 73.73%
emotify-icon-wp.png3.23KB3.44KB0.00%