84% seo-external-link

Code Review | SEO External Link - WordPress 文章 SEO 外部链接跳转中间页面

WordPress plugin SEO External Link - WordPress 文章 SEO 外部链接跳转中间页面 scored84%from 54 tests.

About plugin

  • Plugin page: seo-external-link
  • Plugin version: 22.12.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-5.9.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2021
  • Latest release: Dec 15, 2022
  • Number of updates: 8
  • Update frequency: every 46.5 days
  • Top authors: imahui (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.04ms] Passed 4 tests

Server-side resources used by SEO External Link - WordPress 文章 SEO 外部链接跳转中间页面
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.03 ▲2.12
Dashboard /wp-admin3.32 ▲0.0247.85 ▼7.42
Posts /wp-admin/edit.php3.37 ▲0.0149.50 ▲1.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.19 ▼16.57
Media Library /wp-admin/upload.php3.24 ▲0.0137.68 ▲2.74

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SEO External Link - WordPress 文章 SEO 外部链接跳转中间页面
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.201.60 ▲0.0638.64 ▼0.45
Dashboard /wp-admin2,195 ▲155.58 ▼0.0494.11 ▼7.9642.17 ▼0.39
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0739.81 ▲3.5937.60 ▼4.79
Add New Post /wp-admin/post-new.php1,535 ▲718.42 ▼5.10649.16 ▼35.4062.90 ▲8.53
Media Library /wp-admin/upload.php1,403 ▲64.14 ▼0.05105.12 ▲4.5145.12 ▲2.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-external-link/wp-external-link.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
2 plugin tags: seo, external link

seo-external-link/wp-external-link.php 85% from 13 tests

This is the main PHP file of "SEO External Link - WordPress 文章 SEO 外部链接跳转中间页面" version 22.12.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-external-link.php" instead of "wp-external-link.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "6.1.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin319 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41517319

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin