68% internal-link-finder

Code Review | WordPress Internal Link Optimiser

WordPress plugin WordPress Internal Link Optimiser scored68%from 54 tests.

About plugin

  • Plugin page: internal-link-finder
  • Plugin version: 4.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 44
  • Update frequency: every 29.8 days
  • Top authors: toastwebsites (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,459 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by WordPress Internal Link Optimiser
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.32 ▼7.07
Dashboard /wp-admin3.33 ▲0.0348.35 ▲1.09
Posts /wp-admin/edit.php3.39 ▲0.0345.03 ▼3.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.55 ▲3.17
Media Library /wp-admin/upload.php3.26 ▲0.0337.41 ▲5.51
Settings /wp-admin/admin.php?page=wilo_settings3.2842.29
WILO /wp-admin/admin.php?page=wilo3.2937.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Internal Link Optimiser
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16713.66 ▼0.9813.65 ▲11.8643.49 ▼1.35
Dashboard /wp-admin2,242 ▲655.56 ▼0.0993.99 ▼1.2764.16 ▲23.01
Posts /wp-admin/edit.php2,150 ▲471.99 ▼0.0237.83 ▼6.1034.80 ▼6.30
Add New Post /wp-admin/post-new.php1,574 ▲4523.18 ▲0.20773.77 ▲142.7945.63 ▼4.05
Media Library /wp-admin/upload.php1,441 ▲384.12 ▼0.11100.09 ▲2.7067.72 ▲21.90
Settings /wp-admin/admin.php?page=wilo_settings1,0862.2344.0345.61
WILO /wp-admin/admin.php?page=wilo1,0151.8229.7231.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
    • wp_wilo_page_data
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/internal-link-finder/templates/frontend-existing-links.php
    • > /wp-content/plugins/internal-link-finder/templates/frontend-potential-links-content.php
    • > /wp-content/plugins/internal-link-finder/templates/backend/widgets/no-crawl.php
    • > /wp-content/plugins/internal-link-finder/templates/frontend-outgoing-links.php
  • 43× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      file_get_contents(WILO_DIRECTORY/assets/images/wilo-default.svg): failed to open stream: No such file or directory in wp-content/plugins/internal-link-finder/templates/backend/widgets/no-crawl.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/internal-link-finder/templates/backend/header.php:3
    • > PHP Notice
      Undefined index: wilo_post_id in wp-content/plugins/internal-link-finder/templates/backend/widgets/post-issues.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/internal-link-finder/templates/backend/initialise.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/internal-link-finder/inc/enqueue.php:18
    • > PHP Notice
      Undefined index: wilo_post_id in wp-content/plugins/internal-link-finder/templates/backend/widgets/post-outgoing-links.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/internal-link-finder/templates/frontend-potential-links.php:3
    • > PHP Notice
      Undefined index: wilo_post_id in wp-content/plugins/internal-link-finder/templates/backend/widgets/post-overview.php on line 12
    • > PHP Warning
      Use of undefined constant WILO_PATH - assumed 'WILO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/internal-link-finder/templates/frontend-existing-links.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/internal-link-finder/templates/backend/widgets/site-overview.php on line 11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: content management, seo, internal linking

internal-link-finder/wilo.php 92% from 13 tests

The entry point to "WordPress Internal Link Optimiser" version 4.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("internal-link-finder.php" instead of "wilo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,365 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP223131491,437
JavaScript511614483
CSS45021247
SVG1423198

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.35
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin