84% seo-smart-link-targets

Code Review | SEO Smart Link Targets

WordPress plugin SEO Smart Link Targets scored84%from 54 tests.

About plugin

  • Plugin page: seo-smart-link-ta...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Jul 23, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: amg26 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /3,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.12ms] Passed 4 tests

Server-side resources used by SEO Smart Link Targets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.68 ▼4.91
Dashboard /wp-admin3.31 ▲0.0047.91 ▼6.85
Posts /wp-admin/edit.php3.36 ▲0.0054.17 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.36 ▼8.63
Media Library /wp-admin/upload.php3.23 ▲0.0040.41 ▲5.29

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Smart Link Targets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.75 ▲0.392.10 ▲0.3244.76 ▲0.75
Dashboard /wp-admin2,195 ▲185.66 ▼0.0187.32 ▼12.1942.98 ▼1.53
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0840.18 ▲2.2640.71 ▲2.17
Add New Post /wp-admin/post-new.php1,526 ▼523.68 ▲0.60694.12 ▲38.8461.52 ▲8.19
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.10112.17 ▲4.7347.80 ▲4.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-smart-link-targets/classes/class-sslt-scripts.php
    • > /wp-content/plugins/seo-smart-link-targets/index.php
    • > /wp-content/plugins/seo-smart-link-targets/seo-smart-link-targets.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "andrewgunn.xyz/donate"
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

seo-smart-link-targets/seo-smart-link-targets.php Passed 13 tests

The main PHP script in "SEO Smart Link Targets" version 1.0 is automatically included on every request by WordPress
108 characters long description:
Super lightweight solution to changing all external links and internal PDF attachments to open in a new tab.

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 detected46 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3252146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin