78% everest-comment-rating-lite

Code Review | Free WordPress Plugin To Display Like/Dislike Comment Rating - Everest Comment Rating Lite

WordPress plugin Free WordPress Plugin To Display Like/Dislike Comment Rating - Everest Comment Rating Lite scored 78% from 54 tests.

About plugin

  • Plugin page: everest-comment-r...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.8.1
  • First release: Oct 17, 2017
  • Latest release: Dec 10, 2021
  • Number of updates: 35
  • Update frequency: every 43.3 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 3,101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼149.52ms] Passed 4 tests

Analyzing server-side resources used by Free WordPress Plugin To Display Like/Dislike Comment Rating - Everest Comment Rating Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1025.38 ▲2.73
Dashboard /wp-admin3.16 ▲0.0930.52 ▼6.56
Posts /wp-admin/edit.php3.21 ▲0.1031.18 ▼9.75
Add New Post /wp-admin/post-new.php5.52 ▲0.0870.40 ▼580.11
Media Library /wp-admin/upload.php3.11 ▲0.1022.15 ▼1.67
Everest Comment Rating Lite Documentation /wp-admin/edit-comments.php?page=ecr-documentation2.9018.07
Everest Comment Rating Lite /wp-admin/edit-comments.php?page=everest-comment-rating-lite3.2327.24
All Comments /wp-admin/edit-comments.php3.1736.95
Everest Comment Rating Pro /wp-admin/edit-comments.php?page=ecr-premium2.9015.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 1 new option
New WordPress options
ecr_settings

Browser metrics Passed 4 tests

Checking browser requirements for Free WordPress Plugin To Display Like/Dislike Comment Rating - Everest Comment Rating Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲17715.96 ▼0.029.36 ▲0.3775.75 ▼0.20
Dashboard /wp-admin2,963 ▲676.00 ▼0.27114.49 ▼17.46169.93 ▼4.12
Posts /wp-admin/edit.php2,770 ▲333.24 ▲0.0163.76 ▲0.59134.16 ▼3.83
Add New Post /wp-admin/post-new.php3,764 ▲2919.09 ▲0.64437.20 ▼15.40158.67 ▼11.91
Media Library /wp-admin/upload.php1,787 ▲385.50 ▼0.09141.06 ▲2.79190.64 ▲7.94
Everest Comment Rating Lite Documentation /wp-admin/edit-comments.php?page=ecr-documentation1,2058.17333.13240.04
Everest Comment Rating Lite /wp-admin/edit-comments.php?page=everest-comment-rating-lite5,2489.67216.08142.65
All Comments /wp-admin/edit-comments.php2,4623.4062.96173.58
Everest Comment Rating Pro /wp-admin/edit-comments.php?page=ecr-premium1,60210.25298.98204.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • ecr_settings

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/panel/ecr-text.php
    • > /wp-content/plugins/everest-comment-rating-lite/everest-comment-rating-lite.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/frontend/like-dislike-html.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/panel/ecr-display.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/panel/ecr-how-to-use.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/panel/ecr-about-us.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/settings.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/panel/ecr-configuration.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/frontend/custom_styling.php
    • > /wp-content/plugins/everest-comment-rating-lite/inc/backend/panel/ecr-customization.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit-comments.php?page=ecr-documentation
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/everest-comment-rating-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php?page=ecr-premium
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/edit-comments.php?page=ecr-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/everest-comment-rating/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed: The official readme.txt might help

everest-comment-rating-lite/everest-comment-rating-lite.php 92% from 13 tests

The main file in "Free WordPress Plugin To Display Like/Dislike Comment Rating - Everest Comment Rating Lite" v. 2.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected16,489 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
CSS76521244,823
PHP1146291,347
JavaScript33868767

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 1.43MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icons/cry.png1.15KB1.18KB0.00%
img/icons/like.png0.73KB0.76KB0.00%
img/srdtg.png4.60KB2.22KB▼ 51.67%
img/active-template/template-3.png1.85KB0.83KB▼ 55.34%
img/pinterest.png2.17KB1.25KB▼ 42.30%