10% seo-automatic-links

Code Review | SEO Smart Links

WordPress plugin SEO Smart Links scored 10% from 53 tests.

About plugin

  • Plugin page: seo-automatic-links
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.1
  • WordPress version: 5.8.1
  • First release: Jun 9, 2008
  • Latest release: Dec 25, 2014
  • Number of updates: 83
  • Update frequency: every 28.8 days
  • Top authors: freediver (100%)

Code review

53 tests

User reviews

30 reviews

Install metrics

30,000+ active / 1,109,835 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/seo-automatic-links/seo-links.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; SEOLinks has a deprecated constructor

Server metrics [RAM: ▼1.40MB] [CPU: ▼316.43ms] Passed 4 tests

A check of server-side resources used by SEO Smart Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼0.4910.74 ▼13.18
Dashboard /wp-admin2.25 ▼0.8010.30 ▼32.45
Posts /wp-admin/edit.php2.25 ▼0.856.80 ▼37.60
Add New Post /wp-admin/post-new.php2.25 ▼3.186.31 ▼1,165.28
Media Library /wp-admin/upload.php2.25 ▼0.755.58 ▼30.38
About /wp-admin/admin.php?page=sml_about2.257.17
Custom Keywords /wp-admin/admin.php?page=sml_custom_keywords2.257.12
Options /wp-admin/admin.php?page=sml_options2.256.52
Import/Export /wp-admin/admin.php?page=sml_import2.256.91

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options
SEOLinks

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Smart Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,745 ▲13916.30 ▲0.888.83 ▼0.9244.73 ▲0.45
Dashboard /wp-admin2,995 ▲1425.90 ▲0.05141.21 ▲10.58137.23 ▲34.23
Posts /wp-admin/edit.php2,764 ▲612.70 ▲0.0159.62 ▼2.4282.43 ▼5.78
Add New Post /wp-admin/post-new.php1,881 ▼15519.12 ▲1.16374.17 ▲19.68106.43 ▼1.36
Media Library /wp-admin/upload.php1,759 ▼134.98 ▼0.00125.32 ▼41.06122.83 ▲7.71
About /wp-admin/admin.php?page=sml_about1,1562.3859.5865.09
Custom Keywords /wp-admin/admin.php?page=sml_custom_keywords1,2232.3957.3273.85
Options /wp-admin/admin.php?page=sml_options1,6292.4658.0583.46
Import/Export /wp-admin/admin.php?page=sml_import1,2292.5258.5979.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/seo-automatic-links/seo-links.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; SEOLinks has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 option in the database
    • SEOLinks

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sml_import
    • > Deprecated in wp-content/plugins/seo-automatic-links/seo-links.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; SEOLinks has a deprecated constructor
    • > GET request to /wp-admin/admin.php?page=sml_about
    • > Notice in wp-content/plugins/seo-automatic-links/seo-links.php+850
    Undefined variable: upd_msg
    • > GET request to /wp-admin/admin.php?page=sml_custom_keywords
    • > Notice in wp-content/plugins/seo-automatic-links/seo-links.php+1091
    Undefined variable: table
    • > GET request to /wp-admin/admin.php?page=sml_options
    • > Notice in wp-content/plugins/seo-automatic-links/seo-links.php+1237
    Undefined index: tax

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 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/seo-automatic-links/seo-links.php:1622

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Plugin Admin Panel)
You can look at the official readme.txt

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

This is the main PHP file of "SEO Smart Links" version 3.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-automatic-links.php" instead of "seo-links.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,578 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63523021,258
PHP1453271,218
CSS1242102

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 141)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity239.00
▷ Minimum class complexity239.00
▷ Maximum class complexity239.00
Average method complexity11.82
▷ Minimum method complexity1.00
▷ Maximum method complexity141.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
11 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/icon.png0.98KB0.81KB▼ 16.90%
screenshot-1.png22.52KB22.01KB▼ 2.24%
i/last.png0.72KB0.73KB0.00%
i/logo.png2.14KB1.60KB▼ 25.35%
i/first.png0.70KB0.72KB0.00%