84% advanced-remove-links-in-comments

Code Review | Advanced Remove Links in Comments

WordPress plugin Advanced Remove Links in Comments scored84%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: 6.3.1
  • 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 /975 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.09ms] Passed 4 tests

A check of server-side resources used by Advanced Remove Links in Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.99 ▼6.99
Dashboard /wp-admin3.32 ▼0.0345.08 ▼22.35
Posts /wp-admin/edit.php3.37 ▲0.0148.14 ▼1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.47 ▼9.77
Media Library /wp-admin/upload.php3.24 ▲0.0140.30 ▲4.16

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Remove Links in Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▼0.191.78 ▼0.2639.52 ▼1.77
Dashboard /wp-admin2,198 ▲185.65 ▼0.0495.22 ▼1.7042.29 ▲1.43
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0440.00 ▲2.6736.69 ▲2.86
Add New Post /wp-admin/post-new.php1,547 ▲1623.23 ▼0.11657.67 ▼4.6974.63 ▲24.83
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0296.02 ▼14.3743.01 ▼4.02

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 were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors 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 a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

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

The entry point to "Advanced Remove Links in Comments" version 1.0 is a PHP file that has certain tags in its header comment area
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected189 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21942135
PO File1151554

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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
Namespaces1
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%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.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
No PNG files were detected