83% buddy-share-it-allusers-fb-yr

Code Review | Share It for All Users on BuddyPress YR

WordPress plugin Share It for All Users on BuddyPress YR scored83%from 54 tests.

About plugin

  • Plugin page: buddy-share-it-al...
  • Plugin version: 3.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Jan 17, 2023
  • Number of updates: 122
  • Update frequency: every 20.5 days
  • Top authors: intels (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /62,981 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.02ms] Passed 4 tests

Server-side resources used by Share It for All Users on BuddyPress YR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.77 ▲2.62
Dashboard /wp-admin3.35 ▲0.0545.23 ▼0.49
Posts /wp-admin/edit.php3.40 ▲0.0448.28 ▼7.25
Add New Post /wp-admin/post-new.php5.95 ▲0.0783.64 ▼8.50
Media Library /wp-admin/upload.php3.27 ▲0.0432.62 ▲0.15
BP Sharing YR /wp-admin/options-general.php?page=yr-bpshare3.3443.93

Server storage [IO: ▲0.98MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
yr_bpshare_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Share It for All Users on BuddyPress YR: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲12013.64 ▼0.945.67 ▲3.7342.73 ▼2.82
Dashboard /wp-admin2,212 ▲244.90 ▲0.02108.08 ▲0.6841.34 ▼1.65
Posts /wp-admin/edit.php2,095 ▲32.03 ▲0.0340.00 ▼1.9833.64 ▼3.35
Add New Post /wp-admin/post-new.php1,547 ▲1418.14 ▼5.11596.66 ▼40.0956.16 ▲1.47
Media Library /wp-admin/upload.php1,394 ▲124.29 ▲0.0497.22 ▼0.8541.14 ▼3.09
BP Sharing YR /wp-admin/options-general.php?page=yr-bpshare9,8611.7427.7852.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • yr_bpshare_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× 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/buddy-share-it-allusers-fb-yr/yr-bpshare-hnd.php:202

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (35 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (An initial set of buttons for a blog article.), #2 (An example of a set of buttons for a Buddypress group. Also, a button Join us on Viber is inserted.), #3 (Admin page. Settings table, screen 1. Button for instructions, button for a table of sample settings.), #4 (Admin page. Settings table, screen 2.), #5 (Admin page. Settings table, screen 3. The Facebook Like button settings are visible.), #6 (Admin page. Settings table, screen 4.), #7 (Admin page. Settings table, screen 5. Buttons for saving settings, for backup, for reset.), #8 (An example of a set of buttons for a Buddypress Activity.)
The official readme.txt might help

buddy-share-it-allusers-fb-yr/loader.php 85% from 13 tests

The principal PHP file in "Share It for All Users on BuddyPress YR" v. 3.4.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 673 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddy-share-it-allusers-fb-yr.php" instead of "loader.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
There were no executable files found in this plugin2,386 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP62192881,368
PO File17979636
HTML360256
CSS1645121
JavaScript1395

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
98 PNG files occupy 0.51MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/LinkedIn16.png1.45KB0.57KB▼ 60.42%
img/join_us32viol.png1.95KB1.68KB▼ 13.45%
img/Twitt-r32.png4.18KB1.49KB▼ 64.30%
img/Pinterest32.png4.31KB1.55KB▼ 63.98%
img/Twitter-r32.png4.50KB1.67KB▼ 62.87%