78% link-checker

Code Review | Link Checker Professional

WordPress plugin Link Checker Professional scored78%from 54 tests.

About plugin

  • Plugin page: link-checker
  • Plugin version: 1.18.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Jan 14, 2023
  • Number of updates: 102
  • Update frequency: every 26.6 days
  • Top authors: mbsec (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

8,000+ active /199,558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.66ms] Passed 4 tests

Analyzing server-side resources used by Link Checker Professional
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.09 ▼6.84
Dashboard /wp-admin3.36 ▲0.0556.70 ▲7.95
Posts /wp-admin/edit.php3.41 ▲0.0548.13 ▲0.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.01 ▲8.88
Media Library /wp-admin/upload.php3.28 ▲0.0538.16 ▲0.78
Scheduler /wp-admin/admin.php?page=link-checker-scheduler3.2629.13
Settings /wp-admin/admin.php?page=link-checker-settings-x3.2534.69
News /wp-admin/admin.php?page=link-checker-news3.2530.12
Link Checker /wp-admin/admin.php?page=link-checker3.2629.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Link Checker Professional
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.17 ▼1.631.64 ▼0.3741.76 ▼0.85
Dashboard /wp-admin2,238 ▲506.02 ▲1.0998.17 ▼7.4836.80 ▼5.53
Posts /wp-admin/edit.php2,124 ▲352.01 ▼0.0434.29 ▼0.9436.09 ▼1.00
Add New Post /wp-admin/post-new.php1,561 ▲3323.18 ▲0.14659.90 ▼15.6058.65 ▲1.77
Media Library /wp-admin/upload.php1,426 ▲354.23 ▲0.04108.28 ▲8.2647.45 ▲4.95
Scheduler /wp-admin/admin.php?page=link-checker-scheduler7992.3831.8828.04
Settings /wp-admin/admin.php?page=link-checker-settings-x1,0092.0322.6430.12
News /wp-admin/admin.php?page=link-checker-news8742.0239.1927.03
Link Checker /wp-admin/admin.php?page=link-checker8112.5633.3425.22

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/link-checker/shared_functions.php
    • > /wp-content/plugins/link-checker/linkchecker.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=link-checker-news
    • > Network (severe)
    https://api.marcobeierer.com/twitter/v1/timeline?count=10 - Failed to load resource: the server responded with a status of 500 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: link, dead link checker, dead links, broken link checker, broken links...

link-checker/linkchecker.php 85% from 13 tests

"Link Checker Professional" version 1.18.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("link-checker.php" instead of "linkchecker.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin49,295 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1011,55317,13548,982
PHP25930298
CSS23015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin