100% tag-linker

Code Review | Tag Linker

WordPress plugin Tag Linker scored 100% from 54 tests.

About plugin

  • Plugin page: tag-linker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 5.8.1
  • First release: Jun 18, 2015
  • Latest release: Jun 19, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: slmsmsk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,027 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼147.58ms] Passed 4 tests

Analyzing server-side resources used by Tag Linker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0344.21 ▲12.61
Dashboard /wp-admin3.09 ▲0.0446.60 ▲0.67
Posts /wp-admin/edit.php3.14 ▲0.0443.76 ▼2.84
Add New Post /wp-admin/post-new.php5.45 ▲0.0288.03 ▼588.23
Media Library /wp-admin/upload.php3.04 ▲0.0332.05 ▲0.07
Tag Linker Settings /wp-admin/options-general.php?page=tag-linker-settings3.0027.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 4 new options
New WordPress options
taglinker_showinpages
taglinker_tagclass
taglinker_tagstyle
taglinker_showinposts

Browser metrics Passed 4 tests

An overview of browser requirements for Tag Linker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.89 ▼0.127.73 ▼0.9845.72 ▼5.31
Dashboard /wp-admin2,975 ▲415.95 ▼0.05132.07 ▼25.44112.57 ▲2.70
Posts /wp-admin/edit.php2,744 ▲52.84 ▲0.1366.80 ▼17.5993.90 ▼5.65
Add New Post /wp-admin/post-new.php1,503 ▼18018.80 ▼0.06374.17 ▼3.39112.58 ▲5.34
Media Library /wp-admin/upload.php1,812 ▲25.00 ▼0.02139.45 ▼5.72118.63 ▼0.31
Tag Linker Settings /wp-admin/options-general.php?page=tag-linker-settings1,1272.1058.4177.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: post, page, plugin, content, auto...

tag-linker/tag-linker.php Passed 13 tests

The entry point to "Tag Linker" version 1.0 is a PHP file that has certain tags in its header comment area
72 characters long description:
This plugin adding links to post or page content that match tags in use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11512124
PO File1141542

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png53.47KB20.65KB▼ 61.39%
screenshot-1.png21.76KB10.80KB▼ 50.37%