84% comments-from-facebook

Code Review | Social comments by WpDevArt

WordPress plugin Social comments by WpDevArt scored 84% from 54 tests.

About plugin

  • Plugin page: comments-from-fac...
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Mar 31, 2023
  • Number of updates: 487
  • Update frequency: every 5.7 days
  • Top authors: wpdevart (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

10,000+ active / 1,260,975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.09ms] Passed 4 tests

An overview of server-side resources used by Social comments by WpDevArt
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.65 ▲7.43
Dashboard /wp-admin3.34 ▲0.0350.20 ▼3.15
Posts /wp-admin/edit.php3.39 ▲0.0349.17 ▲3.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.39 ▼5.49
Media Library /wp-admin/upload.php3.26 ▲0.0334.06 ▲1.00
Hire an Expert /wp-admin/admin.php?page=wpdevart-comment-hire-expert3.2335.77
FB comments /wp-admin/admin.php?page=FB-comments3.2332.47
Featured Plugins /wp-admin/admin.php?page=wpdevart-comment-featured-plugins3.2334.60

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

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

Browser metrics Passed 4 tests

Social comments by WpDevArt: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲21714.88 ▲0.2942.11 ▲40.2544.70 ▼0.33
Dashboard /wp-admin2,261 ▲765.10 ▲0.1796.25 ▼8.4177.01 ▲35.82
Posts /wp-admin/edit.php2,153 ▲672.33 ▲0.3337.55 ▲1.8835.38 ▲3.45
Add New Post /wp-admin/post-new.php6,507 ▲4,99320.54 ▲2.94966.34 ▲308.8141.86 ▼10.23
Media Library /wp-admin/upload.php1,440 ▲524.33 ▲0.05101.70 ▲5.0845.83 ▲0.16
Hire an Expert /wp-admin/admin.php?page=wpdevart-comment-hire-expert9031.8726.5733.32
FB comments /wp-admin/admin.php?page=FB-comments1,9142.5239.7255.97
Featured Plugins /wp-admin/admin.php?page=wpdevart-comment-featured-plugins1,1111.9027.0840.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/comments-from-facebook/facebook-comment.php:27

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
5 plugin tags: facebook, wordpress comments, facebook comments, social comments, comments

comments-from-facebook/facebook-comment.php 85% from 13 tests

Analyzing the main PHP file in "Social comments by WpDevArt" version 2.5.6
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("comments-from-facebook.php" instead of "facebook-comment.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,434 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP516356930
CSS21925446
JavaScript110358

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods38.82%
▷ Public methods3191.18%
▷ Protected methods00.00%
▷ Private methods38.82%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/hire_expert/1.png2.30KB1.72KB▼ 25.29%
images/hire_expert/5.png2.88KB2.25KB▼ 21.81%
images/hire_expert/4.png4.39KB3.08KB▼ 29.96%
images/hire_expert/8.png1.98KB1.47KB▼ 25.74%
images/featured_plugins/featured-duplicate.png22.49KB4.28KB▼ 80.96%