72% comments-like-dislike

Code Review | Comments Like Dislike

WordPress plugin Comments Like Dislike scored72%from 54 tests.

About plugin

  • Plugin page: comments-like-dis...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Sep 3, 2023
  • Number of updates: 43
  • Update frequency: every 57.4 days
  • Top authors: Happy Coders (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

8,000+ active /103,037 total downloads

Benchmarks

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.08MB] [CPU: ▼1.83ms] Passed 4 tests

Analyzing server-side resources used by Comments Like Dislike
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.49 ▼3.59
Dashboard /wp-admin3.44 ▲0.1448.56 ▲1.88
Posts /wp-admin/edit.php3.49 ▲0.1354.48 ▲8.79
Add New Post /wp-admin/post-new.php5.95 ▲0.0782.18 ▼3.45
Media Library /wp-admin/upload.php3.27 ▲0.0534.53 ▼2.14
Comments Like Dislike /wp-admin/edit-comments.php?page=comments-like-dislike3.3541.51
All Comments /wp-admin/edit-comments.php3.3146.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
cld_settings
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Comments Like Dislike
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,096 ▲35015.63 ▲1.255.79 ▲4.0638.86 ▼8.16
Dashboard /wp-admin2,385 ▲1976.70 ▲0.84139.15 ▲38.6044.52 ▲5.64
Posts /wp-admin/edit.php2,294 ▲2053.56 ▲1.5556.99 ▲20.4334.49 ▲0.31
Add New Post /wp-admin/post-new.php1,551 ▲1317.69 ▼5.37650.05 ▼35.2038.38 ▼27.08
Media Library /wp-admin/upload.php1,430 ▲424.38 ▲0.1981.08 ▼29.8344.46 ▼2.46
Comments Like Dislike /wp-admin/edit-comments.php?page=comments-like-dislike2,0388.89202.6559.28
All Comments /wp-admin/edit-comments.php2,0173.8149.6832.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • cld_settings
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/comments-like-dislike/comments-like-dislike.php
    • > /wp-content/plugins/comments-like-dislike/inc/views/backend/cld-metabox.php
    • > /wp-content/plugins/comments-like-dislike/inc/classes/cld-activation.php
    • > /wp-content/plugins/comments-like-dislike/inc/classes/cld-admin.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-like-dislike/inc/classes/cld-enqueue.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/help.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/comments-like-dislike/inc/views/frontend/dislike.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/comments-like-dislike/inc/views/backend/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/comments-like-dislike/inc/views/frontend/like.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/basic-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/about-us.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/comments-like-dislike/inc/views/backend/boxes/design-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/comments-like-dislike/inc/classes/cld-library.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-like-dislike/inc/classes/cld-init.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit-comments.php?page=comments-like-dislike
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/edit-comments.php?page=comments-like-dislike
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: rating, like, comments, dislike, comment

comments-like-dislike/comments-like-dislike.php 92% from 13 tests

"Comments Like Dislike" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin10,280 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS122,375445,115
SVG3003,927
PHP191514491,018
JavaScript21930218
Markdown1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.12
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin