94% advanced-remove-links-in-comments

Code Review | Advanced Remove Links in Comments

WordPress plugin Advanced Remove Links in Comments scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-remove-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-3.6.1
  • WordPress version: 5.9.2
  • First release: Oct 28, 2016
  • Latest release: Oct 28, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: willybahuaud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 752 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼293.29ms] Passed 4 tests

Analyzing server-side resources used by Advanced Remove Links in Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0652.81 ▼0.09
Dashboard /wp-admin3.47 ▲0.0632.79 ▼4.81
Posts /wp-admin/edit.php3.70 ▲0.0636.34 ▼3.47
Add New Post /wp-admin/post-new.php6.94 ▼0.0492.92 ▼1,164.78
Media Library /wp-admin/upload.php3.35 ▲0.0525.36 ▲1.92

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Remove Links in Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1316.20 ▲0.546.89 ▲0.932.25 ▼0.32
Dashboard /wp-admin2,892 ▲386.11 ▼0.11122.72 ▼24.06163.31 ▼9.96
Posts /wp-admin/edit.php2,685 ▼63.24 ▲0.0165.64 ▲1.87142.59 ▼9.04
Add New Post /wp-admin/post-new.php1,752 ▲9120.86 ▲5.10445.50 ▲13.31162.32 ▲7.30
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.01141.42 ▲2.31195.88 ▲5.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Wabeo\\AdvancedRemoveLinksInComments\\esc_html__() in wp-content/plugins/advanced-remove-links-in-comments/advanced-remove-links-in-comments.php:16

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

advanced-remove-links-in-comments/advanced-remove-links-in-comments.php Passed 13 tests

The main file in "Advanced Remove Links in Comments" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Remove links in comments based on article publication date and comment length.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin189 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File1151554

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions787.50%
▷ Anonymous functions112.50%
▷ 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
PNG images were not found in this plugin