78% trinklink

Code Review | Trinklink

WordPress plugin Trinklink scored78%from 54 tests.

About plugin

  • Plugin page: trinklink
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Mar 22, 2022
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: rsdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /279 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.03MB] [CPU: ▼1.94ms] Passed 4 tests

Server-side resources used by Trinklink
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.51 ▲2.18
Dashboard /wp-admin3.34 ▲0.0451.28 ▲6.81
Posts /wp-admin/edit.php3.39 ▲0.0348.29 ▼1.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.75 ▼12.43
Media Library /wp-admin/upload.php3.26 ▲0.0334.50 ▲3.94
Trinklink /wp-admin/options-general.php?page=trnk_plugin3.2028.87

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Trinklink
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.37 ▲0.021.57 ▲0.0537.96 ▲3.09
Dashboard /wp-admin2,208 ▲305.58 ▼0.1388.86 ▼30.8838.18 ▼9.13
Posts /wp-admin/edit.php2,110 ▲72.00 ▼0.0239.32 ▲0.5130.96 ▼6.30
Add New Post /wp-admin/post-new.php1,688 ▲16222.33 ▼0.64652.69 ▼27.4741.82 ▼16.19
Media Library /wp-admin/upload.php1,476 ▲764.20 ▲0.0294.82 ▲2.7139.36 ▼0.62
Trinklink /wp-admin/options-general.php?page=trnk_plugin9392.0324.3530.07

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=trnk_plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=trnk_plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/trinklink/trinklink.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: A description for screenshot #1 is missing in trinklink/assets to your readme.txt
You can take inspiration from this readme.txt

trinklink/trinklink.php 92% from 13 tests

The main PHP file in "Trinklink" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 281 characters long)

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
Everything looks great! No dangerous files found in this plugin587 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript48620348
PHP12317161
CSS3131578

PHP code Passed 2 tests

Analyzing 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.13
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/trinklink-logo.png2.51KB1.42KB▼ 43.58%