84% amir-social-comments

Code Review | Amir Social Comments WordPress

WordPress plugin Amir Social Comments WordPress scored84%from 54 tests.

About plugin

  • Plugin page: amir-social-comments
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 20, 2020
  • Latest release: May 2, 2020
  • Number of updates: 5
  • Update frequency: every 10.0 days
  • Top authors: kamirkhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼17.46ms] Passed 4 tests

A check of server-side resources used by Amir Social Comments WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0332.46 ▼4.00
Dashboard /wp-admin3.31 ▲0.0144.08 ▼4.73
Posts /wp-admin/edit.php3.36 ▲0.0148.16 ▼2.27
Add New Post /wp-admin/post-new.php4.60 ▼1.2843.66 ▼58.85
Media Library /wp-admin/upload.php3.24 ▲0.0139.19 ▲7.21

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Amir Social Comments WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.47 ▼0.092.15 ▲0.5342.32 ▲0.59
Dashboard /wp-admin2,221 ▲365.80 ▼0.0398.19 ▼0.8262.28 ▲16.53
Posts /wp-admin/edit.php2,107 ▲212.02 ▼0.0237.88 ▼0.7035.94 ▼1.85
Add New Post /wp-admin/post-new.php1,689 ▲17024.33 ▲1.26681.69 ▲87.9253.63 ▼15.28
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.0399.91 ▲1.6872.06 ▲28.28

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • can_compress_scripts
    • asc
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • asc_version
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/amir-social-comments/languages/index.php
    • > /wp-content/plugins/amir-social-comments/amir-social-comments.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (**Facebook Comments Front-End**: Facebook Comments Interface) image not found
You can look at the official readme.txt

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

"Amir Social Comments WordPress" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Allow your website visitors to post comment via their Facebook account

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
Success! There were no dangerous files found in this plugin316 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

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.59
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png0.60KB0.43KB▼ 28.20%