88% future-aim-social-comment-system

Code Review | Future Aim Social Comments

WordPress plugin Future Aim Social Comments scored 88% from 54 tests.

About plugin

  • Plugin page: future-aim-social...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 5.8.1
  • First release: Apr 17, 2020
  • Latest release: Mar 15, 2021
  • Number of updates: 10
  • Update frequency: every 33.4 days
  • Top authors: arifulislam124 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 231 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼145.64ms] Passed 4 tests

Analyzing server-side resources used by Future Aim Social Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1939.80 ▲18.23
Dashboard /wp-admin3.20 ▲0.1549.65 ▼2.85
Posts /wp-admin/edit.php3.29 ▲0.1948.02 ▼2.67
Add New Post /wp-admin/post-new.php5.78 ▲0.3589.98 ▼573.73
Media Library /wp-admin/upload.php3.16 ▲0.1634.20 ▼3.30
Future Aim Social Comment system /wp-admin/options-general.php?page=fafcs-settings3.1132.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options
fafcs_options

Browser metrics Passed 4 tests

A check of browser resources used by Future Aim Social Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲3616.25 ▲0.7110.50 ▼0.0150.18 ▲0.95
Dashboard /wp-admin2,965 ▲346.08 ▲0.13144.45 ▼13.0599.56 ▼16.17
Posts /wp-admin/edit.php2,734 ▼52.72 ▲0.0280.14 ▲4.7084.46 ▼13.06
Add New Post /wp-admin/post-new.php1,680 ▲6518.44 ▼2.75404.75 ▲92.09117.14 ▲9.03
Media Library /wp-admin/upload.php1,802 ▼55.02 ▼0.04158.51 ▲5.52111.88 ▼8.72
Future Aim Social Comment system /wp-admin/options-general.php?page=fafcs-settings1,4122.2167.6185.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/future-aim-social-comment-system/includes/class-future-aim-social-comments.php
    • > /wp-content/plugins/future-aim-social-comment-system/public/class-fafcs-public.php
    • > /wp-content/plugins/future-aim-social-comment-system/public/fafcs-comments.php
    • > /wp-content/plugins/future-aim-social-comment-system/includes/class-fafcs-activator.php
    • > /wp-content/plugins/future-aim-social-comment-system/admin/partials/fafcs-admin-display.php
    • > /wp-content/plugins/future-aim-social-comment-system/uninstall.php
    • > /wp-content/plugins/future-aim-social-comment-system/admin/class-fafcs-admin.php
    • > /wp-content/plugins/future-aim-social-comment-system/public/fafcs-closed-comments.php
    • > /wp-content/plugins/future-aim-social-comment-system/includes/class-fafcs-i18n.php
    • > /wp-content/plugins/future-aim-social-comment-system/future-aim-social-comments.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/future-aim-social-comment-system/admin/partials/fafcs-admin-credits-tab.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/future-aim-social-comment-system/admin/partials/fafcs-admin-general-tab.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: fb comment, fb comments, facebook comments, free, lazy laod...

future-aim-social-comment-system/future-aim-social-comments.php 77% from 13 tests

"Future Aim Social Comments" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("future-aim-social-comment-system.php" instead of "future-aim-social-comments.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.83
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods37
▷ Static methods12.70%
▷ Public methods2567.57%
▷ Protected methods00.00%
▷ Private methods1232.43%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
There were not PNG files found in your plugin