84% ark-hidecommentlinks

Code Review | ARK HideCommentLinks

WordPress plugin ARK HideCommentLinks scored84%from 54 tests.

About plugin

  • Plugin page: ark-hidecommentlinks
  • Plugin version: 1.9.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 28, 2014
  • Latest release: Aug 17, 2023
  • Number of updates: 51
  • Update frequency: every 62.4 days
  • Top authors: AlexKar (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /8,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by ARK HideCommentLinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.24 ▼9.18
Dashboard /wp-admin3.32 ▲0.0153.52 ▼0.14
Posts /wp-admin/edit.php3.37 ▲0.0147.40 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.26 ▼21.40
Media Library /wp-admin/upload.php3.24 ▲0.0139.04 ▲3.43

Server storage [IO: ▲0.02MB] [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
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ARK HideCommentLinks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.14 ▼0.142.14 ▲0.3647.19 ▲0.36
Dashboard /wp-admin2,196 ▲225.62 ▲0.0289.17 ▼4.0040.48 ▼6.93
Posts /wp-admin/edit.php2,103 ▲241.99 ▼0.0339.64 ▲3.6535.23 ▼0.19
Add New Post /wp-admin/post-new.php1,526 ▼923.78 ▲5.72676.73 ▲27.4057.08 ▼14.38
Media Library /wp-admin/upload.php1,403 ▼04.28 ▼0.0098.59 ▼6.7045.03 ▼1.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ark-hidecommentlinks/ark-hidecommentlinks.php:37

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 issues were found

Optimizations

Plugin configuration 96% from 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
6 plugin tags: posts, post, related, replytocom, comment...

ark-hidecommentlinks/ark-hidecommentlinks.php 92% from 13 tests

The main file in "ARK HideCommentLinks" v. 1.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin235 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32562188
PHP143735
CSS10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin