89% facebook-by-weblizar

Code Review | Social LikeBox & Feed

WordPress plugin Social LikeBox & Feed scored89%from 54 tests.

About plugin

  • Plugin page: facebook-by-weblizar
  • Plugin version: 3.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Oct 27, 2023
  • Number of updates: 113
  • Update frequency: every 30.6 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

46 reviews

Install metrics

20,000+ active /1,016,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼2.16ms] Passed 4 tests

Analyzing server-side resources used by Social LikeBox & Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2336.35 ▼1.36
Dashboard /wp-admin3.54 ▲0.2446.07 ▲1.32
Posts /wp-admin/edit.php3.66 ▲0.3045.38 ▲0.64
Add New Post /wp-admin/post-new.php6.13 ▲0.2381.59 ▼9.25
Media Library /wp-admin/upload.php3.47 ▲0.2335.69 ▲1.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_weblizar_facebook_feed_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_weblizar_facebook_likebox

Browser metrics Passed 4 tests

An overview of browser requirements for Social LikeBox & Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.17 ▼0.181.55 ▼0.3537.75 ▼4.55
Dashboard /wp-admin2,211 ▲315.62 ▲0.0187.08 ▲0.6838.89 ▲0.41
Posts /wp-admin/edit.php2,119 ▲192.01 ▼0.0134.26 ▼1.0931.34 ▼5.90
Add New Post /wp-admin/post-new.php1,544 ▲1323.28 ▲0.23677.77 ▲75.4570.32 ▲10.79
Media Library /wp-admin/upload.php1,413 ▲134.22 ▲0.0897.71 ▼0.1243.11 ▼0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_weblizar_facebook_likebox
    • db_upgraded
    • theysaidso_admin_options
    • widget_weblizar_facebook_feed_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #7 (FaceBook Feeds preview on site sidebar.) image not found
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

facebook-by-weblizar/facebook-by-weblizar.php 92% from 13 tests

The main PHP script in "Social LikeBox & Feed" version 3.1.4 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin38,202 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
CSS73,27323216,260
SVG30128,777
JavaScript71,1412617,305
PO File54,4258,1102,981
PHP101051452,879

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity71.00
▷ Minimum class complexity37.00
▷ Maximum class complexity105.00
Average method complexity18.50
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png34.37KB34.68KB0.00%
images/tabs_bg.png0.12KB0.09KB▼ 24.19%
images/icons/3.png19.69KB2.73KB▼ 86.12%
images/icons/4.png23.05KB3.06KB▼ 86.73%
images/icons/1.png20.72KB2.97KB▼ 85.67%