84% seo-internal-link-shortcode

Code Review | SEO Internal Link Shortcode

WordPress plugin SEO Internal Link Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: seo-internal-link...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.8
  • WordPress version: 6.3.1
  • First release: Mar 8, 2013
  • Latest release: Jan 15, 2014
  • Number of updates: 7
  • Update frequency: every 44.7 days
  • Top authors: prometh (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /2,788 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by SEO Internal Link Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.14 ▼2.06
Dashboard /wp-admin3.32 ▲0.0145.15 ▲0.82
Posts /wp-admin/edit.php3.37 ▲0.0143.12 ▼5.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.55 ▼14.51
Media Library /wp-admin/upload.php3.24 ▲0.0137.49 ▲4.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Internal Link Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.111.59 ▼0.1040.40 ▼5.73
Dashboard /wp-admin2,192 ▲205.54 ▼0.2585.28 ▼13.8037.86 ▼3.33
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0235.40 ▼1.7433.36 ▼1.69
Add New Post /wp-admin/post-new.php1,530 ▼323.28 ▼0.21670.45 ▼33.1965.95 ▲0.77
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.00106.37 ▼3.2744.95 ▼0.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seo-internal-link-shortcode/seo-internal-link-shortcode.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
You can take inspiration from this readme.txt

seo-internal-link-shortcode/seo-internal-link-shortcode.php Passed 13 tests

This is the main PHP file of "SEO Internal Link Shortcode" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Internal links to posts, custom-type posts, pages, categories and tags with any HTML attribute(s).

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 plugin53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116953

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin