83% hide-wp-comment-author-link

Code Review | Hide Comment Author Link

WordPress plugin Hide Comment Author Link scored83%from 54 tests.

About plugin

  • Plugin page: hide-wp-comment-a...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Nov 14, 2022
  • Number of updates: 24
  • Update frequency: every 139.4 days
  • Top authors: mag_oberon (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /26,646 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.00MB] [CPU: ▼7.24ms] Passed 4 tests

An overview of server-side resources used by Hide Comment Author Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.73 ▼8.03
Dashboard /wp-admin3.31 ▲0.0150.60 ▼7.35
Posts /wp-admin/edit.php3.36 ▲0.0051.82 ▲3.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.99 ▼16.61
Media Library /wp-admin/upload.php3.23 ▲0.0043.30 ▲7.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Comment Author Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲2714.23 ▼0.051.79 ▲0.0842.17 ▼1.76
Dashboard /wp-admin2,197 ▲205.58 ▲0.0585.95 ▼11.3642.05 ▼1.62
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0642.18 ▲6.9738.28 ▲3.29
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▼0.48689.65 ▲59.4252.23 ▲2.70
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.06101.02 ▼5.1045.28 ▼1.78

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-wp-comment-author-link/hide_comment_author_link.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (see on commented mode)
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can look at the official readme.txt

hide-wp-comment-author-link/hide_comment_author_link.php 92% from 13 tests

"Hide Comment Author Link" version 1.7'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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hide-wp-comment-author-link.php" instead of "hide_comment_author_link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11128

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png13.13KB6.00KB▼ 54.28%