10% easy-facebook-likebox

Code Review | Easy Social Feed - Social Photos Gallery - Post Feed - Like Box

WordPress plugin Easy Social Feed - Social Photos Gallery - Post Feed - Like Box scored10%from 54 tests.

About plugin

  • Plugin page: easy-facebook-lik...
  • Plugin version: 6.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: Sep 18, 2023
  • Number of updates: 440
  • Update frequency: every 7.8 days
  • Top authors: sjaved (62.95%)DaNish Ali (26.36%)jwebsol (7.5%)maltathemes (3.86%)

Code review

54 tests

User reviews

477 reviews

Install metrics

50,000+ active /2,878,344 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/easy-facebook-likebox/easy-facebook-likebox.php+68
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲5.74MB] [CPU: ▲34.28ms] 75% from 4 tests

Server-side resources used by Easy Social Feed - Social Photos Gallery - Post Feed - Like Box
It is recommended to improve the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.74MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.23 ▲5.7776.26 ▲35.18
Dashboard /wp-admin9.25 ▲5.9582.60 ▲34.16
Posts /wp-admin/edit.php9.25 ▲5.9098.80 ▲53.99
Add New Post /wp-admin/post-new.php11.22 ▲5.33128.68 ▲29.01
Media Library /wp-admin/upload.php9.25 ▲6.0374.96 ▲38.75
Welcome /wp-admin/admin.php?page=esf_welcome9.2571.94
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2582.84

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 494 new files
Database: no new tables, 13 new options
New WordPress options
fs_debug_mode
fs_accounts
can_compress_scripts
widget_esf_instagram_feed
widget_recent-posts
widget_recent-comments
widget_easy_facebook_page_plugin
fta_settings
fs_active_plugins
widget_easy_facebook_feed
...

Browser metrics Passed 4 tests

A check of browser resources used by Easy Social Feed - Social Photos Gallery - Post Feed - Like Box
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲20013.52 ▼0.8310.31 ▲8.5929.61 ▼15.83
Dashboard /wp-admin2,228 ▲505.58 ▼0.1486.54 ▼26.8684.92 ▲36.25
Posts /wp-admin/edit.php2,134 ▲312.01 ▲0.0640.46 ▲5.2637.08 ▲0.76
Add New Post /wp-admin/post-new.php1,732 ▲20424.16 ▲0.88672.76 ▲3.87109.34 ▲51.98
Media Library /wp-admin/upload.php1,433 ▲394.10 ▼0.0999.75 ▲1.3180.45 ▲38.67
Welcome /wp-admin/admin.php?page=esf_welcome1,53611.11283.7892.68
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0981.6725.0929.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/easy-facebook-likebox/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 13 options in the database
    • widget_easy_facebook_page_plugin
    • theysaidso_admin_options
    • fta_settings
    • can_compress_scripts
    • widget_recent-posts
    • fs_accounts
    • widget_easy_facebook_feed
    • fs_active_plugins
    • widget_theysaidso_widget
    • fs_debug_mode
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php
    • > /wp-content/plugins/easy-facebook-likebox/instagram/frontend/assets/css/esf-insta-customizer-style.css.php
  • 13× 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 add_action() in wp-content/plugins/easy-facebook-likebox/facebook/frontend/easy-facebook-likebox.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-facebook-likebox/facebook/frontend/views/html-feed-meta.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-facebook-likebox/facebook/frontend/views/html-feed-footer.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-facebook-likebox/facebook/includes/easy-custom-facebook-feed-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-facebook-likebox/facebook/frontend/views/html-free-popup.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-facebook-likebox/instagram/frontend/views/html-post-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-facebook-likebox/instagram/frontend/views/html-post-meta.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-facebook-likebox/instagram/frontend/views/html-feed-header.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-facebook-likebox/instagram/includes/esf-instagram-feed-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esf_insta_demo_page_id() in wp-content/plugins/easy-facebook-likebox/instagram/frontend/views/feed.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: facebook feed, facebook posts, instagram feed, instagram gallery, instagram photos

easy-facebook-likebox/easy-facebook-likebox.php 92% from 13 tests

The principal PHP file in "Easy Social Feed - Social Photos Gallery - Post Feed - Like Box" v. 6.5.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 556 characters long)

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 plugin98,672 lines of code in 340 files:
LanguageFilesBlank linesComment linesLines of code
PHP18511,34919,37049,803
JSON80016,185
Sass754,65640414,135
PO File64,2708,48511,378
JavaScript281,7301,7336,511
CSS359075574
SVG31186

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity72.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes74
▷ Abstract classes22.70%
▷ Concrete classes7297.30%
▷ Final classes00.00%
Methods1,452
▷ Static methods21214.60%
▷ Public methods1,05272.45%
▷ Protected methods191.31%
▷ Private methods38126.24%
Functions163
▷ Named functions14588.96%
▷ Anonymous functions1811.04%
Constants165
▷ Global constants10865.45%
▷ Class constants5734.55%
▷ Public constants57100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 1.04MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
facebook/frontend/assets/css/popup_close.png1.15KB0.52KB▼ 54.82%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
instagram/frontend/assets/images/esf-insta-video-placeholder.png9.72KB1.11KB▼ 88.54%
facebook/frontend/assets/images/popup_close.png1.15KB0.52KB▼ 54.82%
freemius/assets/img/easy-facebook-likebox.png7.39KB4.08KB▼ 44.75%