10% wp-internal-links-lite

Code Review | No Sweat WP Internal Links Lite

WordPress plugin No Sweat WP Internal Links Lite scored10%from 54 tests.

About plugin

  • Plugin page: wp-internal-links...
  • Plugin version: 2.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Sep 10, 2015
  • Number of updates: 50
  • Update frequency: every 20.7 days
  • Top authors: MikelP (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

40+ active /10,946 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+11
    Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.85MB] [CPU: ▼52.27ms] Passed 4 tests

This is a short check of server-side resources used by No Sweat WP Internal Links Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.326.48 ▼31.76
Dashboard /wp-admin2.16 ▼1.146.22 ▼41.58
Posts /wp-admin/edit.php2.16 ▼1.197.21 ▼42.85
Add New Post /wp-admin/post-new.php2.16 ▼3.727.23 ▼92.90
Media Library /wp-admin/upload.php2.16 ▼1.075.14 ▼28.01
No Sweat WP Internal Links /wp-admin/admin.php?page=in_links2.165.60
Manage structures /wp-admin/admin.php?page=in_links_management2.167.10
General Settings /wp-admin/admin.php?page=in_links_settings2.166.55
New Structure /wp-admin/admin.php?page=in_links_new2.166.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: 2 new tables, 8 new options
New tables
inl_link_struct_to_links
inl_link_structures
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
INLPLN_ACTIVATED
widget_theysaidso_widget
db_upgraded
inl_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for No Sweat WP Internal Links Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲11613.20 ▼1.185.76 ▲4.0560.16 ▲16.27
Dashboard /wp-admin2,231 ▲434.90 ▼1.0096.58 ▼19.2377.74 ▲37.41
Posts /wp-admin/edit.php2,129 ▲402.01 ▼0.0434.41 ▼3.2133.00 ▲2.92
Add New Post /wp-admin/post-new.php1,558 ▲4418.28 ▲0.76701.42 ▲29.3961.57 ▲4.41
Media Library /wp-admin/upload.php1,425 ▲374.29 ▲0.0996.08 ▼10.8485.09 ▲38.47
No Sweat WP Internal Links /wp-admin/admin.php?page=in_links9082.0325.1020.98
Manage structures /wp-admin/admin.php?page=in_links_management9382.0824.3027.08
General Settings /wp-admin/admin.php?page=in_links_settings1,0051.7125.4325.41
New Structure /wp-admin/admin.php?page=in_links_new2,0232.0337.6835.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+11
    Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP)
  • Zombie tables detected upon uninstall: 2 tables
    • inl_link_structures
    • inl_link_struct_to_links
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • can_compress_scripts
    • inl_settings
    • db_upgraded
    • INLPLN_ACTIVATED
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+11
    Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+12
    Use of undefined constant INLPLN_SETTINGS - assumed 'INLPLN_SETTINGS' (this will throw an Error in a future version of PHP)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+13
    Use of undefined constant INLPLNDIR - assumed 'INLPLNDIR' (this will throw an Error in a future version of PHP)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+14
    Use of undefined constant INLPLN_AFFILIATE_SETTINGS - assumed 'INLPLN_AFFILIATE_SETTINGS' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > Warning in wp-content/plugins/wp-internal-links-lite/inter-links.php+243
    file_get_contents(http://nosweatplugins.com/messages_Internallinks.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > Notice in wp-content/plugins/wp-internal-links-lite/structure_form.php+21
    Undefined index: savestructure
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_management
    • > Warning in wp-content/plugins/wp-internal-links-lite/management.php+181
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/admin.php?page=in_links_settings
    • > Notice in wp-content/plugins/wp-internal-links-lite/settings.php+9
    Undefined index: Submit
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-internal-links-lite/inter-links.php+113
    Undefined index: inl_text_link1
    • > GET request to /wp-admin/admin.php?page=in_links_settings
    • > Warning in wp-content/plugins/wp-internal-links-lite/settings.php+97
    Use of undefined constant INLPLN_LICENCE - assumed 'INLPLN_LICENCE' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > Notice in wp-content/plugins/wp-internal-links-lite/structure_form.php+214
    Undefined variable: operation
    • > GET request to /wp-admin/admin.php?page=in_links_new
    • > Notice in wp-content/plugins/wp-internal-links-lite/structure_form.php+347
    Undefined variable: inl_type

SRP 50% 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
Please take a closer look at the following
  • 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function getinlAffiliateURL() in wp-content/plugins/wp-internal-links-lite/header.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-internal-links-lite/structure_form.php:15
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 6
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-internal-links-lite/inter-links.php:11
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 1
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 1
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 4
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 8
    • > PHP Warning
      Use of undefined constant INLPLN1 - assumed 'INLPLN1' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-internal-links-lite/header.php on line 8

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: automatic links, wp internal links, interlinking, wordpress silo, internal links...

wp-internal-links-lite/inter-links.php 85% from 13 tests

The main file in "No Sweat WP Internal Links Lite" v. 2.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-internal-links-lite.php" instead of "inter-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,945 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,367331,475
JavaScript195100424
CSS11046

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Ring.png2.76KB1.60KB▼ 42.00%
images/Star.png3.75KB2.62KB▼ 29.97%
images/Legend.png2.33KB1.30KB▼ 44.07%
images/Hub.png2.64KB1.57KB▼ 40.49%
images/Web.png3.40KB2.26KB▼ 33.56%