84% add-facebook

Code Review | Social Feed | All social media in one place

WordPress plugin Social Feed | All social media in one place scored 84% from 54 tests.

About plugin

  • Plugin page: add-facebook
  • Plugin version: 1.5.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.8
  • WordPress version: 5.9.2
  • First release: Apr 9, 2016
  • Latest release: Jul 22, 2021
  • Number of updates: 56
  • Update frequency: every 34.5 days
  • Top authors: umarbajwa (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

5,000+ active / 173,463 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.11MB] [CPU: ▼294.91ms] Passed 4 tests

An overview of server-side resources used by Social Feed | All social media in one place
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1952.47 ▲3.90
Dashboard /wp-admin3.54 ▲0.1334.80 ▲0.28
Posts /wp-admin/edit.php3.77 ▲0.1339.89 ▲3.71
Add New Post /wp-admin/post-new.php7.01 ▲0.04112.02 ▼1,184.08
Media Library /wp-admin/upload.php3.42 ▲0.1224.62 ▲0.46
Facebook Feeds /wp-admin/edit.php?post_type=wssf_social_feed3.5231.73
Add New Facebook Feed /wp-admin/post-new.php?post_type=wssf_social_feed3.7638.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 1 new option
New WordPress options
smuzsf_plugin_version

Browser metrics Passed 4 tests

Social Feed | All social media in one place: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,981 ▲22717.48 ▲1.8449.71 ▲43.532.67 ▲0.40
Dashboard /wp-admin2,951 ▲906.15 ▲0.03116.74 ▼21.10254.20 ▲89.69
Posts /wp-admin/edit.php2,765 ▲713.24 ▲0.0166.77 ▲1.10206.54 ▲64.00
Add New Post /wp-admin/post-new.php1,710 ▼4216.26 ▼4.62394.17 ▼82.65167.26 ▲6.15
Media Library /wp-admin/upload.php1,766 ▲685.58 ▲0.05127.51 ▼14.80269.97 ▲79.72
Facebook Feeds /wp-admin/edit.php?post_type=wssf_social_feed1,4703.5167.17208.12
Add New Facebook Feed /wp-admin/post-new.php?post_type=wssf_social_feed3,4354.4692.38285.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • smuzsf_plugin_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=wssf_social_feed
    • > Network (severe)
    wp-content/plugins/add-facebook/admin/ui/images/facebook.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=wssf_social_feed
    • > Network (severe)
    wp-content/plugins/add-facebook/admin/ui/images/layout1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=wssf_social_feed
    • > Network (severe)
    wp-content/plugins/add-facebook/admin/ui/images/layout2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=wssf_social_feed
    • > Network (severe)
    wp-content/plugins/add-facebook/admin/ui/images/layout3.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=wssf_social_feed
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=wssf_social_feed 454 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/post-new.php?post_type=wssf_social_feed
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=wssf_social_feed 465 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: facebook gallery, facebook, facebook feed, facebook photos, instagram...

add-facebook/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Social Feed | All social media in one place" version 1.5.4.6
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-facebook.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected4,514 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23674832,382
PHP12437421,138
SVG100655
CSS2488339

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 1.53MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/ui/images/instagram-round.png4.33KB2.43KB▼ 43.83%
admin/ui/images/Facebook.png0.69KB0.49KB▼ 30.00%
admin/ui/images/Layout2.png65.24KB21.53KB▼ 66.99%
admin/ui/images/fb-ribbon.png27.42KB5.20KB▼ 81.05%
admin/ui/images/default.png90.33KB32.11KB▼ 64.45%