84% add-facebook

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

WordPress plugin Social Feed | All social media in one place scored84%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: 6.3.1
  • 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

3,000+ active /177,473 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.76ms] Passed 4 tests

Analyzing server-side resources used by Social Feed | All social media in one place
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.08 ▲2.27
Dashboard /wp-admin3.43 ▲0.0943.58 ▼18.90
Posts /wp-admin/edit.php3.54 ▲0.1941.77 ▼4.30
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.27 ▼15.95
Media Library /wp-admin/upload.php3.35 ▲0.1333.89 ▲0.12
Facebook Feeds /wp-admin/edit.php?post_type=wssf_social_feed3.4039.87
Add New Facebook Feed /wp-admin/post-new.php?post_type=wssf_social_feed3.4544.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Social Feed | All social media in one place
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲23815.02 ▲0.7014.85 ▲13.0025.44 ▼20.01
Dashboard /wp-admin2,262 ▲745.87 ▼0.0499.84 ▼0.5898.19 ▲54.64
Posts /wp-admin/edit.php2,144 ▲552.02 ▲0.0534.26 ▼3.9239.16 ▲5.87
Add New Post /wp-admin/post-new.php1,562 ▲4817.63 ▲0.06739.90 ▲95.8257.59 ▲11.10
Media Library /wp-admin/upload.php1,438 ▲474.23 ▲0.0397.08 ▲0.9093.71 ▲51.90
Facebook Feeds /wp-admin/edit.php?post_type=wssf_social_feed1,1282.3336.2246.18
Add New Facebook Feed /wp-admin/post-new.php?post_type=wssf_social_feed2,6002.9464.26111.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • smuzsf_plugin_version
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > 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 455 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 466 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
    • > 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)

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 feed, facebook, facebook share, facebook photos, facebook gallery...

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

"Social Feed | All social media in one place" version 1.5.4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-facebook.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,514 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23674832,382
PHP12437421,138
SVG100655
CSS2488339

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
30 PNG files occupy 1.53MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/ui/images/Layout1.png102.50KB25.44KB▼ 75.18%
admin/ui/images/warning.png1.05KB0.98KB▼ 7.05%
admin/ui/images/layout5.png559.29KB153.18KB▼ 72.61%
admin/ui/images/Pinterest.png2.51KB1.58KB▼ 37.10%
admin/ui/images/wp_rls_edit_slider_img.png1.48KB1.34KB▼ 9.05%