84% heateor-social-comments

Code Review | WordPress Social Comments Plugin for Vkontakte Comments and Disqus Comments

WordPress plugin WordPress Social Comments Plugin for Vkontakte Comments and Disqus Comments scored84%from 54 tests.

About plugin

  • Plugin page: heateor-social-co...
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2015
  • Latest release: Aug 11, 2023
  • Number of updates: 110
  • Update frequency: every 26.6 days
  • Top authors: Heateor (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active /72,746 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 gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.60ms] Passed 4 tests

Analyzing server-side resources used by WordPress Social Comments Plugin for Vkontakte Comments and Disqus Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.81 ▼3.81
Dashboard /wp-admin3.45 ▲0.1449.55 ▼1.03
Posts /wp-admin/edit.php3.56 ▲0.2050.17 ▼2.34
Add New Post /wp-admin/post-new.php6.02 ▲0.1485.97 ▼15.20
Media Library /wp-admin/upload.php3.37 ▲0.1438.90 ▲4.16

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
heateor_sc
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
heateor_sc_version

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Social Comments Plugin for Vkontakte Comments and Disqus Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12514.74 ▲0.461.88 ▼0.2238.78 ▼1.12
Dashboard /wp-admin2,242 ▲515.88 ▲1.01109.52 ▲3.9175.17 ▲30.43
Posts /wp-admin/edit.php2,125 ▲332.00 ▼0.0437.79 ▼4.9237.53 ▲0.99
Add New Post /wp-admin/post-new.php6,244 ▲4,73019.00 ▲1.31919.16 ▲291.5658.80 ▲3.04
Media Library /wp-admin/upload.php1,424 ▲334.11 ▼0.1196.85 ▼2.4970.90 ▲25.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 12× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/heateor-social-comments/css/index.php
    • > /wp-content/plugins/heateor-social-comments/images/login/index.php
    • > /wp-content/plugins/heateor-social-comments/admin/help.php
    • > /wp-content/plugins/heateor-social-comments/inc/shortcode.php
    • > /wp-content/plugins/heateor-social-comments/images/index.php
    • > /wp-content/plugins/heateor-social-comments/admin/plugin-options.php
    • > /wp-content/plugins/heateor-social-comments/heateor-social-comments.php
    • > /wp-content/plugins/heateor-social-comments/inc/index.php
    • > /wp-content/plugins/heateor-social-comments/index.php
    • > /wp-content/plugins/heateor-social-comments/admin/index.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please describe screenshot #5 in heateor-social-comments/assets to your readme.txt
The official readme.txt is a good inspiration

heateor-social-comments/heateor-social-comments.php Passed 13 tests

The entry point to "WordPress Social Comments Plugin for Vkontakte Comments and Disqus Comments" version 1.6.3 is a PHP file that has certain tags in its header comment area
105 characters long description:
Integrate Facebook Comments, Vkontakte Comments and Disqus Comments along with default WordPress Comments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,404 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP81591331,374
JavaScript20028
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/info.png0.77KB0.58KB▼ 25.13%
images/transparent_bg.png0.91KB0.09KB▼ 89.70%
images/snaps/heateor_sc_commenting_label.png27.78KB11.79KB▼ 57.54%
images/logo.png0.60KB0.57KB▼ 5.99%
images/star.png0.65KB0.72KB0.00%