68% internal-link-building-plugin

Code Review | Internal Link Building

WordPress plugin Internal Link Building scored 68% from 54 tests.

About plugin

  • Plugin page: internal-link-bui...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Jan 17, 2014
  • Latest release: Sep 14, 2021
  • Number of updates: 12
  • Update frequency: every 233.1 days
  • Top authors: IM Ninjas (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active / 39,836 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼37.32ms] Passed 4 tests

An overview of server-side resources used by Internal Link Building
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0330.63 ▼17.73
Dashboard /wp-admin2.99 ▼0.3121.87 ▼29.35
Posts /wp-admin/edit.php2.99 ▼0.3623.61 ▼27.36
Add New Post /wp-admin/post-new.php2.99 ▼2.8925.79 ▼74.83
Media Library /wp-admin/upload.php2.99 ▼0.2321.38 ▼11.90
Internal linking /wp-admin/options-general.php?page=internal-link-building-plugin/internal_link_building.php3.0024.19

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Internal Link Building
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲4613.42 ▼0.881.56 ▼0.4542.67 ▼1.86
Dashboard /wp-admin2,223 ▲324.89 ▲0.04111.73 ▲2.2638.60 ▼3.67
Posts /wp-admin/edit.php2,109 ▲172.09 ▲0.0340.07 ▼3.1535.41 ▼2.17
Add New Post /wp-admin/post-new.php1,519 ▼1417.50 ▼5.78607.66 ▼73.3563.76 ▼2.25
Media Library /wp-admin/upload.php1,405 ▲144.18 ▲0.0295.53 ▲0.2741.67 ▼2.62
Internal linking /wp-admin/options-general.php?page=internal-link-building-plugin/internal_link_building.php1,0471.7026.2829.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=internal-link-building-plugin/internal_link_building.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=internal-link-building-plugin/internal_link_building.php
    • > Notice in wp-content/plugins/internal-link-building-plugin/internal_link_building.php+527
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=internal-link-building-plugin/internal_link_building.php
    • > Notice in wp-content/plugins/internal-link-building-plugin/internal_link_building.php+451
    Undefined variable: x
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=internal-link-building-plugin/internal_link_building.php
    • > Notice in wp-content/plugins/internal-link-building-plugin/internal_link_building.php+600
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/internal-link-building-plugin/internal_link_building.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: google rankings, link building, affiliate, rankings, links...

internal-link-building-plugin/internal_link_building.php 85% from 13 tests

The main file in "Internal Link Building" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("internal-link-building-plugin.php" instead of "internal_link_building.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 504 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected508 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1157104508

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity35.50
▷ Minimum class complexity3.00
▷ Maximum class complexity68.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods1694.12%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
IMN-logo.png30.06KB17.89KB▼ 40.50%