79% fancy-facebook-comments

Code Review | Fancy Comments WordPress

WordPress plugin Fancy Comments WordPress scored79%from 54 tests.

About plugin

  • Plugin page: fancy-facebook-co...
  • Plugin version: 1.2.14
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Oct 17, 2023
  • Number of updates: 88
  • Update frequency: every 25.7 days
  • Top authors: Heateor (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

4,000+ active /147,016 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.23ms] Passed 4 tests

A check of server-side resources used by Fancy Comments WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2442.43 ▼4.37
Dashboard /wp-admin3.54 ▲0.2449.90 ▼0.73
Posts /wp-admin/edit.php3.66 ▲0.3053.50 ▲10.04
Add New Post /wp-admin/post-new.php6.12 ▲0.2489.14 ▼19.51
Media Library /wp-admin/upload.php3.47 ▲0.2439.20 ▲7.69

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_heateor_ffc_facebook_comments
heateor_ffc_version
widget_theysaidso_widget
widget_recent-posts
heateor_ffc
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Fancy Comments WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.28 ▼0.261.84 ▼0.4244.70 ▲0.04
Dashboard /wp-admin2,212 ▲355.59 ▼0.0589.10 ▼9.3679.30 ▲34.67
Posts /wp-admin/edit.php2,139 ▲392.00 ▲0.0040.96 ▲2.1336.33 ▼1.73
Add New Post /wp-admin/post-new.php6,269 ▲4,74325.94 ▲2.18952.33 ▲272.5955.18 ▼2.84
Media Library /wp-admin/upload.php1,432 ▲324.10 ▼0.09100.69 ▼8.1972.91 ▲30.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 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
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/fancy-facebook-comments/uninstall.php
    • > /wp-content/plugins/fancy-facebook-comments/admin/partials/fancy-facebook-comments-options-page.php
    • > /wp-content/plugins/fancy-facebook-comments/admin/partials/fancy-facebook-comments-about.php
    • > /wp-content/plugins/fancy-facebook-comments/fancy-facebook-comments.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fancy-facebook-comments/includes/class-fancy-facebook-comments-widgets.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: facebook comments, social comments, facebook commenting, social commenting

fancy-facebook-comments/fancy-facebook-comments.php Passed 13 tests

"Fancy Comments WordPress" version 1.2.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Integrate Facebook Comments with your WordPress website easiest possible way

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
No dangerous file extensions were detected1,853 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP103204861,433
PO File1127172390
JavaScript20022
XML1007
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity39.20
▷ Minimum class complexity5.00
▷ Maximum class complexity104.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods3981.25%
▷ Protected methods00.00%
▷ Private methods918.75%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/info.png0.77KB0.58KB▼ 25.13%
images/snaps/Fancy Facebook Comments - Moderation.png64.92KB23.95KB▼ 63.11%
images/snaps/Fancy Facebook Comments - Logged in Users.png18.43KB7.68KB▼ 58.31%
images/snaps/Fancy Facebook Comments - GDPR.png39.93KB16.22KB▼ 59.37%
images/logo.png0.55KB0.37KB▼ 33.69%