84% wc-unlink-downloadable-product-title

Code Review | WC Unlink Downloadable Product Title

WordPress plugin WC Unlink Downloadable Product Title scored84%from 54 tests.

About plugin

  • Plugin page: wc-unlink-downloa...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2019
  • Latest release: Aug 3, 2023
  • Number of updates: 10
  • Update frequency: every 156.8 days
  • Top authors: nwmcinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 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.00MB] [CPU: ▲0.44ms] Passed 4 tests

Server-side resources used by WC Unlink Downloadable Product Title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.31 ▼2.89
Dashboard /wp-admin3.31 ▲0.0151.84 ▲0.60
Posts /wp-admin/edit.php3.36 ▲0.0046.14 ▲1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.54 ▲6.80
Media Library /wp-admin/upload.php3.23 ▲0.0035.06 ▲2.75

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Unlink Downloadable Product Title
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼0.961.68 ▼0.0741.42 ▼7.85
Dashboard /wp-admin2,209 ▲245.88 ▲0.99101.80 ▼12.8838.95 ▼8.99
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0134.43 ▼0.7134.92 ▼0.76
Add New Post /wp-admin/post-new.php1,542 ▲2318.90 ▼4.35599.38 ▼52.2053.42 ▼4.61
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0494.14 ▼1.5141.45 ▼3.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-unlink-downloadable-product-title/wc-delink-downloadable-product.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: delink, remove link, unlink, product title, order email...

wc-unlink-downloadable-product-title/wc-delink-downloadable-product.php 92% from 13 tests

"WC Unlink Downloadable Product Title" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-unlink-downloadable-product-title.php" instead of "wc-delink-downloadable-product.php")

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
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11103

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin