99% fa-comment-rating

Code Review | Fa Comment Rating

WordPress plugin Fa Comment Rating scored 99% from 53 tests.

About plugin

  • Plugin page: fa-comment-rating
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 3, 2018
  • Latest release: Mar 3, 2018
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: prorakib (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 626 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼252.58ms] Passed 4 tests

This is a short check of server-side resources used by Fa Comment Rating
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.24 ▲16.55
Dashboard /wp-admin3.07 ▲0.0253.09 ▲12.25
Posts /wp-admin/edit.php3.13 ▲0.0242.10 ▲3.05
Add New Post /wp-admin/post-new.php5.44 ▲0.0186.46 ▼1,024.29
Media Library /wp-admin/upload.php3.02 ▲0.0140.36 ▼1.32

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fa Comment Rating
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲21316.25 ▲0.7114.17 ▲2.9045.45 ▲0.13
Dashboard /wp-admin2,962 ▲1126.10 ▲0.28143.71 ▲10.44100.71 ▼3.45
Posts /wp-admin/edit.php2,709 ▲32.69 ▲0.0065.06 ▼1.8079.90 ▼11.54
Add New Post /wp-admin/post-new.php1,594 ▼5921.89 ▲3.27263.52 ▼93.49103.63 ▼7.75
Media Library /wp-admin/upload.php1,778 ▲65.02 ▲0.01162.23 ▲4.07126.05 ▲0.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can look at the official readme.txt

fa-comment-rating/wp-fa-comment-rating.php 85% from 13 tests

The main file in "Fa Comment Rating" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fa-comment-rating.php" instead of "wp-fa-comment-rating.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,986 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP11139374237
CSS20364
JavaScript14214

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.88
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin