72% facebook-like-send-button

Code Review | FireCask Like & Share Button

WordPress plugin FireCask Like & Share Button scored72%from 54 tests.

About plugin

  • Plugin page: facebook-like-sen...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2011
  • Latest release: Feb 22, 2023
  • Number of updates: 23
  • Update frequency: every 187.8 days
  • Top authors: alexmoss (52.17%)pleer (52.17%)

Code review

54 tests

User reviews

7 reviews

Install metrics

800+ active /43,202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by FireCask Like & Share Button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0627.49 ▼13.47
Dashboard /wp-admin3.38 ▲0.0741.69 ▼6.35
Posts /wp-admin/edit.php3.43 ▲0.0747.17 ▼5.20
Add New Post /wp-admin/post-new.php5.96 ▲0.0775.65 ▼17.67
Media Library /wp-admin/upload.php3.30 ▲0.0735.02 ▼1.52
Like & Send /wp-admin/options-general.php?page=fblikesend3.2433.85

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
fbls
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by FireCask Like & Share Button
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4913.76 ▼0.5937.36 ▲35.5946.05 ▼0.94
Dashboard /wp-admin2,199 ▲195.60 ▼0.0699.05 ▼0.1743.28 ▼2.45
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0335.40 ▲0.4334.25 ▼0.70
Add New Post /wp-admin/post-new.php1,529 ▼223.21 ▲0.10670.13 ▲64.6151.30 ▼7.54
Media Library /wp-admin/upload.php1,404 ▲104.21 ▲0.0894.54 ▼2.8840.19 ▼2.48
Like & Send /wp-admin/options-general.php?page=fblikesend2,1089.48242.4080.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • fbls

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=fblikesend
    • > Notice in wp-content/plugins/facebook-like-send-button/class-admin.php+103
    Undefined index: appID

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/facebook-like-send-button/class-frontend.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/facebook-like-send-button/facebook-like-send-button.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-like-send-button/class-admin.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=fblikesend
    • > Network (severe)
    http://platform.stumbleupon.com/1/widgets.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=fblikesend
    • > Javascript (severe) in unknown
    https://button.buffer.com/button/?id=24e059afad8964c5&url=http%3A%2F%2Fpeadig.com%2Fwordpress-plugins%2Ffacebook-like-share-button%2F&text=Just%20been%20using%20Like%20and%20Send%20Button%20%23WordPress%20plugin&via=alexmoss&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dfblikesend&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fblikesend
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

facebook-like-send-button/facebook-like-send-button.php 92% from 13 tests

The main PHP script in "FireCask Like & Share Button" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 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
Everything looks great! No dangerous files found in this plugin602 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36621501
CSS1120101

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/peadig-landscape-300.png4.33KB2.49KB▼ 42.63%