84% custom-comment-links

Code Review | Custom Comment Links

WordPress plugin Custom Comment Links scored84%from 54 tests.

About plugin

  • Plugin page: custom-comment-links
  • Plugin version: 0.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2019
  • Latest release: Mar 1, 2023
  • Number of updates: 15
  • Update frequency: every 91.3 days
  • Top authors: seedsca (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.10ms] Passed 4 tests

A check of server-side resources used by Custom Comment Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.76 ▼4.66
Dashboard /wp-admin3.36 ▲0.0547.29 ▼2.65
Posts /wp-admin/edit.php3.47 ▲0.1147.69 ▼8.26
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.03 ▲3.17
Media Library /wp-admin/upload.php3.28 ▲0.0544.21 ▲11.71
Custom Comment Links /wp-admin/options-general.php?page=custom_comment_links3.2534.90

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Comment Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.101.86 ▼0.3841.06 ▼1.55
Dashboard /wp-admin2,202 ▲285.57 ▼0.0991.03 ▼1.1741.40 ▼1.78
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0045.83 ▲8.2536.25 ▲0.52
Add New Post /wp-admin/post-new.php1,529 ▲323.16 ▲0.20649.17 ▼52.5767.03 ▲8.87
Media Library /wp-admin/upload.php1,407 ▲44.24 ▲0.0598.02 ▼2.7545.55 ▼1.77
Custom Comment Links /wp-admin/options-general.php?page=custom_comment_links8562.0324.4025.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/custom-comment-links/class-helpers.php
    • > /wp-content/plugins/custom-comment-links/class-settings.php
    • > /wp-content/plugins/custom-comment-links/custom-comment-links.php
    • > /wp-content/plugins/custom-comment-links/class-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: comment seo, comments, custom comment links, author, hide comment links...

custom-comment-links/custom-comment-links.php Passed 13 tests

The main PHP file in "Custom Comment Links" ver. 0.2.1 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Easily disable links for comment author and content.

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
Good job! No executable or dangerous file extensions detected204 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP563229204

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity5.75
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods838.10%
▷ Public methods1571.43%
▷ Protected methods14.76%
▷ Private methods523.81%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected