78% wpa-seo-auto-linker

Code Review | SEO Auto Linker

WordPress plugin SEO Auto Linker scored78%from 54 tests.

About plugin

  • Plugin page: wpa-seo-auto-linker
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Jul 14, 2022
  • Number of updates: 20
  • Update frequency: every 82.3 days
  • Top authors: arjanolsder (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

5,000+ active /49,311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by SEO Auto Linker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.04 ▼0.01
Dashboard /wp-admin3.32 ▲0.0246.13 ▼4.45
Posts /wp-admin/edit.php3.37 ▲0.0244.58 ▼3.99
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.27 ▼13.73
Media Library /wp-admin/upload.php3.24 ▲0.0238.48 ▲8.23

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
SEOAutoLinks
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SEO Auto Linker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.27 ▼1.101.60 ▼0.1544.16 ▲2.19
Dashboard /wp-admin2,215 ▲274.86 ▼0.02108.64 ▼3.5740.63 ▼1.90
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0235.97 ▼5.6429.49 ▼5.09
Add New Post /wp-admin/post-new.php1,533 ▲14123.10 ▲4.77682.76 ▲60.5162.65 ▲18.30
Media Library /wp-admin/upload.php1,388 ▲64.24 ▼0.0098.83 ▲0.6342.38 ▲1.90
WPA SEO Auto Linker /wp-admin/wpa-seo-auto-linker.php260.440.0719.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • SEOAutoLinks
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: nonce in wp-content/plugins/wpa-seo-auto-linker/wpa-seo-auto-linker-admin.php on line 5
    • > PHP Notice
      Undefined variable: action_url in wp-content/plugins/wpa-seo-auto-linker/wpa-seo-auto-linker-admin.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpa-seo-auto-linker/wpa-seo-auto-linker.php:327
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpa-seo-auto-linker/wpa-seo-auto-linker-admin.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/wpa-seo-auto-linker.php
    • > Network (severe)
    wp-admin/wpa-seo-auto-linker.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

wpa-seo-auto-linker/wpa-seo-auto-linker.php 92% from 13 tests

The main file in "SEO Auto Linker" v. 1.5.2 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:
  • Description: The description should be shorter than 140 characters (currently 395 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,350 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File4236406678
PHP47728559
JavaScript25259
CSS11054

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity145.00
▷ Minimum class complexity145.00
▷ Maximum class complexity145.00
Average method complexity5.36
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png209.60KB94.17KB▼ 55.07%
images/wp_assist_tech_plugin_logo.png4.83KB3.48KB▼ 27.95%