78% tp-product-description-in-loop-for-woocommerce

Code Review | TP Product Description in Loop for Woocommerce

WordPress plugin TP Product Description in Loop for Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: tp-product-descri...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Nov 7, 2023
  • Number of updates: 15
  • Update frequency: every 56.8 days
  • Top authors: tplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /5,688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by TP Product Description in Loop for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.62 ▼3.43
Dashboard /wp-admin3.35 ▲0.0048.58 ▼13.72
Posts /wp-admin/edit.php3.40 ▲0.0448.20 ▼8.91
Add New Post /wp-admin/post-new.php5.95 ▲0.0677.33 ▼21.12
Media Library /wp-admin/upload.php3.27 ▲0.0440.84 ▲5.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 24 new options
New WordPress options
tppdil_disable_description_in_mobile
widget_recent-comments
tppdil_description_position
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
tppdil_tooltip_position
tppdil_limit_description_len
tppdil_description_priority
tppdil_tooltip_background
...

Browser metrics Passed 4 tests

An overview of browser requirements for TP Product Description in Loop for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16813.52 ▼1.187.76 ▲6.0338.77 ▼5.57
Dashboard /wp-admin2,225 ▲485.75 ▲0.0495.50 ▲5.5489.11 ▲49.22
Posts /wp-admin/edit.php2,133 ▲332.16 ▲0.1938.06 ▼1.2835.48 ▲1.05
Add New Post /wp-admin/post-new.php1,708 ▲18222.62 ▼0.91715.58 ▲20.3352.20 ▲0.09
Media Library /wp-admin/upload.php1,424 ▲214.36 ▲0.1797.18 ▼17.5572.47 ▲23.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • tppdil_limit_description_len
    • widget_recent-comments
    • tppdil_limit_description

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tp-product-description-in-loop-for-woocommerce/public/partials/tp-product-description-in-loop-for-woocommerce-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-product-description-in-loop-for-woocommerce/admin/partials/tp-product-description-in-loop-for-woocommerce-admin-display.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: description, product description for woocommerce, woocommerce product description, product description

tp-product-description-in-loop-for-woocommerce/tp-product-description-in-loop-for-woocommerce.php 92% from 13 tests

"TP Product Description in Loop for Woocommerce" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,523 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS4169731,518
PHP12239533686
JavaScript46081319

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants7
▷ Global constants7100.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
4 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
admin/partials/images/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
admin/images/tp.png1.24KB0.26KB▼ 79.08%
admin/partials/images/tp.png1.24KB0.26KB▼ 79.08%