84% ultimate-facebook-comments

Code Review | Ultimate Social Comments - Email Notification & Lazy Load

WordPress plugin Ultimate Social Comments - Email Notification & Lazy Load scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-facebook...
  • Plugin version: 1.4.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Mar 28, 2022
  • Number of updates: 72
  • Update frequency: every 19.4 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

47 reviews

Install metrics

1,000+ active /21,440 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.22MB] [CPU: ▼10.59ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Social Comments - Email Notification & Lazy Load
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4342.93 ▲0.59
Dashboard /wp-admin3.82 ▲0.5253.95 ▲4.24
Posts /wp-admin/edit.php3.87 ▲0.5151.65 ▲2.87
Add New Post /wp-admin/post-new.php3.60 ▼2.2837.47 ▼50.07
Media Library /wp-admin/upload.php3.68 ▲0.4539.01 ▲4.96

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

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

Browser metrics Passed 4 tests

Ultimate Social Comments - Email Notification & Lazy Load: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲18813.58 ▼1.048.83 ▲6.6041.04 ▼4.45
Dashboard /wp-admin2,241 ▲524.83 ▼0.06108.46 ▼17.3138.72 ▼5.08
Posts /wp-admin/edit.php2,124 ▲322.03 ▲0.0438.41 ▲0.7736.28 ▲3.03
Add New Post /wp-admin/post-new.php1,548 ▲3423.03 ▲5.55662.61 ▼40.0165.81 ▲10.93
Media Library /wp-admin/upload.php1,414 ▲234.20 ▲0.0196.44 ▼5.5843.75 ▼1.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • ufc_plugin_installed_time_donate
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-facebook-comments/admin/donate.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-facebook-comments/admin/settings/tools.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-facebook-comments/public/templates/comments-template.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-facebook-comments/admin/install.php:12
    • > PHP Warning
      Use of undefined constant UFC_PLUGIN_VERSION - assumed 'UFC_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-facebook-comments/admin/settings/settings-page.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ultimate-facebook-comments/public/shortcode.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-facebook-comments/admin/ajax.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-facebook-comments/admin/admin-bar.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-facebook-comments/admin/loader.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-facebook-comments/admin/disable-native.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: comments, lazy comments, facebook, pagespeed, facebook comments

ultimate-facebook-comments/ultimate-facebook-comments.php 92% from 13 tests

The main file in "Ultimate Social Comments - Email Notification & Lazy Load" v. 1.4.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,660 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP243963212,068
CSS4016404
SVG10099
XML2141382
JavaScript6117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions102
▷ Named functions102100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected