84% comments-link-optimization

Code Review | Comments Link Optimization

WordPress plugin Comments Link Optimization scored84%from 54 tests.

About plugin

  • Plugin page: comments-link-opt...
  • Plugin version: 1.10.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Oct 18, 2011
  • Latest release: Mar 23, 2017
  • Number of updates: 77
  • Update frequency: every 25.8 days
  • Top authors: lite3 (94.81%)litefeel (6.49%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.20ms] Passed 4 tests

Server-side resources used by Comments Link Optimization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.10 ▼8.33
Dashboard /wp-admin3.33 ▼0.0240.84 ▼19.29
Posts /wp-admin/edit.php3.38 ▲0.0243.38 ▼0.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.60 ▼8.64
Media Library /wp-admin/upload.php3.25 ▲0.0135.71 ▲2.62

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Comments Link Optimization: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.28 ▼0.221.70 ▼0.0838.17 ▼5.67
Dashboard /wp-admin2,195 ▲215.62 ▼0.0584.12 ▼3.9342.11 ▲1.19
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0836.36 ▼4.9933.95 ▼1.88
Add New Post /wp-admin/post-new.php1,535 ▲118.26 ▲0.08594.18 ▼40.1565.81 ▼3.27
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.1099.26 ▼3.6542.50 ▼1.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/comments-link-optimization/comments-link-optimization.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: comments, links, seo

comments-link-optimization/comments-link-optimization.php Passed 13 tests

This is the main PHP file of "Comments Link Optimization" version 1.10.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Comments Link Optimization what prevent all search engine crawl your comments link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected180 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151995
Markdown265085

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.32
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin