78% reaction-buttons-by-heateor

Code Review | WordPress Social Reaction Plugin - Reaction Buttons For Wordpress

WordPress plugin WordPress Social Reaction Plugin - Reaction Buttons For Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: reaction-buttons-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 16, 2022
  • Latest release: Jul 17, 2022
  • Number of updates: 5
  • Update frequency: every 78.4 days
  • Top authors: Heateor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,109 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.55MB] [CPU: ▼0.57ms] Passed 4 tests

Server-side resources used by WordPress Social Reaction Plugin - Reaction Buttons For Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6150.47 ▲7.21
Dashboard /wp-admin3.85 ▲0.5453.62 ▲1.77
Posts /wp-admin/edit.php3.96 ▲0.6052.00 ▲0.57
Add New Post /wp-admin/post-new.php6.43 ▲0.53106.28 ▼11.85
Media Library /wp-admin/upload.php3.77 ▲0.5444.32 ▲8.23

Server storage [IO: ▲0.39MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_heateor_rb_floating
widget_heateor_rb_standard
widget_theysaidso_widget
heateor_rb
heateor_rb_version

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Social Reaction Plugin - Reaction Buttons For Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.73 ▲0.571.74 ▼0.0543.44 ▼0.97
Dashboard /wp-admin2,195 ▲155.59 ▼0.0594.33 ▲2.0685.20 ▲45.10
Posts /wp-admin/edit.php2,121 ▲211.98 ▼0.0438.85 ▲2.8234.42 ▼2.35
Add New Post /wp-admin/post-new.php6,420 ▲4,88927.96 ▲4.98918.34 ▲287.2461.05 ▲3.52
Media Library /wp-admin/upload.php1,409 ▲124.14 ▼0.09100.54 ▼3.1978.88 ▲36.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/reaction-buttons-by-heateor/reaction-buttons-by-heateor.php
    • > /wp-content/plugins/reaction-buttons-by-heateor/uninstall.php
    • > /wp-content/plugins/reaction-buttons-by-heateor/admin/partials/reaction-buttons-for-wordpress-options-page.php
    • > /wp-content/plugins/reaction-buttons-by-heateor/admin/partials/reaction-buttons-for-wordpress-about.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/reaction-buttons-by-heateor/includes/reaction-buttons-for-wordpress-widgets.php:19

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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots do not have images: #1 (**Free Icon Customization**: Customizable in thousands of ways), #2 (**Icon Customization Options**: Icon Customization options), #3 (**Reaction Services**: Over 100 Reaction and Bookmarking services), #4 (**Universal Reaction Popup**: Universal Reaction popup having all the supported reaction and bookmarking services)
You can take inspiration from this readme.txt

reaction-buttons-by-heateor/reaction-buttons-by-heateor.php Passed 13 tests

The principal PHP file in "WordPress Social Reaction Plugin - Reaction Buttons For Wordpress" v. 1.0 is loaded by WordPress automatically on each request
70 characters long description:
Integrate Reaction buttons. Happy, Sad, Lol, Love, Wow, Angry and Like

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin3,587 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP115096793,198
JavaScript31811347
SVG70039
CSS3003

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 151)
Cyclomatic complexity
Average complexity per logical line of code0.85
Average class complexity94.00
▷ Minimum class complexity1.00
▷ Maximum class complexity390.00
Average method complexity11.33
▷ Minimum method complexity1.00
▷ Maximum method complexity151.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods64
▷ Static methods00.00%
▷ Public methods5382.81%
▷ Protected methods00.00%
▷ Private methods1117.19%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png0.25KB0.27KB0.00%
images/social_icons.png5.91KB2.95KB▼ 50.04%
images/close.png1.45KB1.66KB0.00%
images/transparent_bg.png0.91KB0.09KB▼ 89.70%
images/star.png0.65KB0.72KB0.00%