89% thumbnail-link-for-woo

Code Review | Thumbnail Link for Wooc

WordPress plugin Thumbnail Link for Wooc scored 89% from 54 tests.

About plugin

  • Plugin page: thumbnail-link-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 12
  • Update frequency: every 85.7 days
  • Top authors: christianzimpel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Thumbnail Link for Wooc
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.39 ▼5.02
Dashboard /wp-admin3.32 ▲0.0150.49 ▼0.66
Posts /wp-admin/edit.php3.37 ▲0.0151.92 ▼1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.01105.03 ▲8.04
Media Library /wp-admin/upload.php3.24 ▲0.0135.58 ▲1.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Thumbnail Link for Wooc
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.23 ▼1.141.75 ▼0.9638.98 ▼2.51
Dashboard /wp-admin2,209 ▲36.03 ▲1.1895.83 ▼21.5439.02 ▼5.78
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0139.77 ▼0.8738.66 ▲2.24
Add New Post /wp-admin/post-new.php1,534 ▼022.97 ▼0.25741.54 ▲52.2454.95 ▼1.94
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0396.70 ▼11.1540.50 ▼4.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt might help

thumbnail-link-for-woo/Woo-Thumb-Link.php 77% from 13 tests

"Thumbnail Link for Wooc" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("thumbnail-link-for-woo.php" instead of "Woo-Thumb-Link.php")

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
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1172041

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected