10% seo-internal-link-building

Code Review | Internal Link Building

WordPress plugin Internal Link Building scored10%from 54 tests.

About plugin

  • Plugin page: seo-internal-link...
  • Plugin version: 1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2015
  • Latest release: Apr 26, 2018
  • Number of updates: 16
  • Update frequency: every 74.8 days
  • Top authors: hmsraza24 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /5,792 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/seo-internal-link-building/InternalLinkBuilding.php+181
    Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.53ms] Passed 4 tests

Analyzing server-side resources used by Internal Link Building
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.78 ▼2.72
Dashboard /wp-admin3.33 ▲0.0349.71 ▼7.93
Posts /wp-admin/edit.php3.39 ▲0.0348.90 ▼0.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.17 ▼15.33
Media Library /wp-admin/upload.php3.26 ▲0.0237.76 ▲0.12

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Internal Link Building
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10814.77 ▲0.392.12 ▲0.0641.45 ▼1.96
Dashboard /wp-admin2,230 ▲425.78 ▼0.10105.35 ▼25.3989.01 ▲29.71
Posts /wp-admin/edit.php2,113 ▲242.00 ▼0.0134.41 ▼1.1037.28 ▲1.44
Add New Post /wp-admin/post-new.php1,532 ▼1523.22 ▲4.84700.20 ▲66.9949.77 ▼2.16
Media Library /wp-admin/upload.php1,406 ▲184.22 ▼0.1297.58 ▼15.5765.47 ▲20.35

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
  • This plugin does not fully uninstall, leaving 1 table in the database
    • internal_link_info
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-internal-link-building/InternalLinkBuilding.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === seo-internal-link-building === )
Please take inspiration from this readme.txt

seo-internal-link-building/InternalLinkBuilding.php 92% from 13 tests

This is the main PHP file of "Internal Link Building" version 1.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("seo-internal-link-building.php" instead of "InternalLinkBuilding.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected476 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1110306
PHP11725170

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions7
▷ Named functions7100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.56KB0.73KB0.00%