10% seo-internal-links

Code Review | SEO Internal Links

WordPress plugin SEO Internal Links scored10%from 54 tests.

About plugin

  • Plugin page: seo-internal-links
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2012
  • Latest release: Feb 3, 2016
  • Number of updates: 11
  • Update frequency: every 117.8 days
  • Top authors: masdiblogs (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /51,843 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
    • > Deprecated in wp-content/plugins/seo-internal-links/seo-links.php+650
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.06ms] Passed 4 tests

A check of server-side resources used by SEO Internal Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.80 ▲0.03
Dashboard /wp-admin3.00 ▼0.3025.11 ▼27.42
Posts /wp-admin/edit.php3.01 ▼0.3527.40 ▼23.88
Add New Post /wp-admin/post-new.php3.01 ▼2.8824.82 ▼68.85
Media Library /wp-admin/upload.php3.01 ▼0.2223.46 ▼12.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SEO Internal Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.39 ▲0.041.64 ▼0.4043.42 ▲0.81
Dashboard /wp-admin2,199 ▲195.67 ▲0.0685.17 ▼6.9338.32 ▼4.03
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0337.36 ▼6.2834.03 ▼2.94
Add New Post /wp-admin/post-new.php1,529 ▲323.58 ▲0.56675.27 ▼9.3260.75 ▼1.64
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.03104.20 ▼2.5845.09 ▼2.38
SEO Iinternal Links /wp-admin/seo-links.php260.420.1118.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > 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.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • SEOLinks
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-internal-links/seo-links.php:389

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/seo-links.php
    • > Network (severe)
    wp-admin/seo-links.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: affiliate, post, links, comments, google...

seo-internal-links/seo-links.php 92% from 13 tests

The primary PHP file in "SEO Internal Links" version 2.3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-internal-links.php" instead of "seo-links.php")

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
Success! There were no dangerous files found in this plugin470 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114242470

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity126.00
▷ Minimum class complexity126.00
▷ Maximum class complexity126.00
Average method complexity13.50
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/idea.png0.81KB0.70KB▼ 13.99%
i/rate.png0.64KB0.61KB▼ 5.16%
i/help.png0.97KB0.98KB0.00%
screenshot-1.png47.61KB21.12KB▼ 55.64%
i/more.png0.74KB1.01KB0.00%