84% add-internal-links-lite

Code Review | Add Internal Links Lite

WordPress plugin Add Internal Links Lite scored84%from 54 tests.

About plugin

  • Plugin page: add-internal-link...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.1
  • WordPress version: 6.3.1
  • First release: May 30, 2023
  • Latest release: May 31, 2023
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: farmerjer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Add Internal Links Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.46 ▲0.26
Dashboard /wp-admin3.31 ▲0.0153.38 ▲7.20
Posts /wp-admin/edit.php3.36 ▲0.0045.33 ▼1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.32 ▼1.61
Media Library /wp-admin/upload.php3.23 ▲0.0033.22 ▼2.93
Add Internal Links /wp-admin/options-general.php?page=internal-links-plugin3.2233.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Add Internal Links Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3213.91 ▼0.441.78 ▲0.1345.08 ▲2.67
Dashboard /wp-admin2,202 ▲255.62 ▼0.0587.67 ▼1.5835.91 ▼3.21
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0336.28 ▼0.7633.52 ▲0.78
Add New Post /wp-admin/post-new.php1,529 ▲322.92 ▼0.23597.06 ▼98.6754.70 ▲1.78
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.1296.22 ▼18.6142.65 ▼12.11
Add Internal Links /wp-admin/options-general.php?page=internal-links-plugin8842.0223.5525.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-internal-links-lite/Add-Internal-Links-Lite-v1.0.0.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: automation, internal links, related posts, content

add-internal-links-lite/Add-Internal-Links-Lite-v1.0.0.php 92% from 13 tests

"Add Internal Links Lite" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-internal-links-lite.php" instead of "Add-Internal-Links-Lite-v1.0.0.php")

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
Good job! No executable or dangerous file extensions detected137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11728137

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected