68% wp-reactions-lite

Code Review | WP Reactions Lite

WordPress plugin WP Reactions Lite scored68%from 54 tests.

About plugin

  • Plugin page: wp-reactions-lite
  • Plugin version: 1.3.10
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2019
  • Latest release: Jun 6, 2023
  • Number of updates: 70
  • Update frequency: every 18.5 days
  • Top authors: wpreactions (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /20,986 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲2.40ms] Passed 4 tests

An overview of server-side resources used by WP Reactions Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.1042.41 ▼1.24
Dashboard /wp-admin3.54 ▲0.2452.35 ▲5.36
Posts /wp-admin/edit.php3.65 ▲0.2948.92 ▼2.61
Add New Post /wp-admin/post-new.php6.06 ▲0.1897.33 ▲12.61
Media Library /wp-admin/upload.php3.54 ▲0.3141.47 ▲8.10
Support /wp-admin/admin.php?page=wpra-support3.5439.48
Dashboard /wp-admin/admin.php?page=wpra-dashboard3.5441.29
Global Activation /wp-admin/admin.php?page=wpra-global-options3.5442.30
PRO /wp-admin/admin.php?page=wpra-pro3.5440.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 183 new files
Database: 1 new table, 9 new options
New tables
wp_wpreactions_reacted_users
New WordPress options
wpra_lite_version
widget_recent-comments
wpra_lite_options
db_upgraded
theysaidso_admin_options
wpra_lite_db_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Reactions Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,529 ▲79414.17 ▼0.4115.95 ▲14.2232.18 ▼12.44
Dashboard /wp-admin2,820 ▲6685.12 ▼0.45111.15 ▲1.7441.12 ▼5.54
Posts /wp-admin/edit.php2,699 ▲6101.96 ▼0.0238.69 ▲3.6436.36 ▲2.26
Add New Post /wp-admin/post-new.php6,244 ▲4,71126.07 ▲2.87811.64 ▲162.3255.72 ▼2.99
Media Library /wp-admin/upload.php2,001 ▲6134.35 ▲0.1698.73 ▼1.6842.47 ▼1.81
Support /wp-admin/admin.php?page=wpra-support2,4873.4361.10153.24
Dashboard /wp-admin/admin.php?page=wpra-dashboard2,2873.2749.1095.04
Global Activation /wp-admin/admin.php?page=wpra-global-options2,82111.11253.3681.61
PRO /wp-admin/admin.php?page=wpra-pro2,3193.5548.0280.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wpreactions_reacted_users
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • wpra_lite_db_version
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • wpra_lite_version
    • widget_recent-comments
    • wpra_lite_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 32× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-reactions-lite/view/admin/tooltips/fake-counts.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/tooltips/alignment.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/guides/post-activate-emoji.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/tooltips/social-button-style.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/tooltips/heading-global-behavior-chooser.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/metaboxes/stat-single-emoji.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/social-icons/twitter.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/social-icons/facebook.php
    • > /wp-content/plugins/wp-reactions-lite/view/front/single-emoji.php
    • > /wp-content/plugins/wp-reactions-lite/view/admin/tooltips/social-buttons-behavior.php
  • 79× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-reactions-lite/view/admin/option-blocks/alignment.php:9
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-reactions-lite/view/front/single-emoji.php on line 15
    • > PHP Notice
      Undefined variable: color in wp-content/plugins/wp-reactions-lite/view/admin/social-icons/facebook.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Reactions\\Lite\\Helper' not found in wp-content/plugins/wp-reactions-lite/view/admin/steps/regular/styling.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Reactions\\Lite\\Helper' not found in wp-content/plugins/wp-reactions-lite/view/admin/option-blocks/your-emojis-set.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Reactions\\Lite\\Helper' not found in wp-content/plugins/wp-reactions-lite/view/admin/steps/regular/finish.php:8
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-reactions-lite/view/front/single-emoji.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-reactions-lite/view/admin/components/step-control.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-reactions-lite/view/admin/option-blocks/emoji-size.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Reactions\\Lite\\FieldManager\\Field' not found in wp-content/plugins/wp-reactions-lite/includes/FieldManager/Select.class.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: lottie, reactions, animation, emoticons, facebook like...

wp-reactions-lite/wp-reactions-lite.php 85% from 13 tests

"WP Reactions Lite" version 1.3.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 249 characters long)

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
Success! There were no dangerous files found in this plugin19,525 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
CSS111,4946912,656
PHP81270383,123
SVG500132,614
JavaScript611223872
PO File19294246
JSON140014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.06
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes18
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
Methods100
▷ Static methods2626.00%
▷ Public methods9999.00%
▷ Protected methods00.00%
▷ Private methods11.00%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.33MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/banners/affiliates.png16.90KB8.16KB▼ 51.72%
assets/images/eye.png1.12KB1.24KB0.00%
assets/images/14days_money_back.png80.76KB39.79KB▼ 50.74%
assets/images/single_logo_transparent.png4.71KB2.70KB▼ 42.71%
assets/images/money-back.png42.40KB15.36KB▼ 63.78%