10% db-tagcloud-for-woocommerce

Code Review | DB Tagcloud for Woocommerce

WordPress plugin DB Tagcloud for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: db-tagcloud-for-w...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2023
  • Latest release: Sep 17, 2023
  • Number of updates: 11
  • Update frequency: every 13.6 days
  • Top authors: bisteinoff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /227 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/db-tagcloud-for-woocommerce/bisteinoff-tagcloud.php+61
    Undefined index: prefix

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.32ms] Passed 4 tests

Server-side resources used by DB Tagcloud for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.71 ▼32.37
Dashboard /wp-admin2.12 ▼1.235.47 ▼49.94
Posts /wp-admin/edit.php2.12 ▼1.245.83 ▼38.72
Add New Post /wp-admin/post-new.php2.12 ▼3.776.97 ▼90.56
Media Library /wp-admin/upload.php2.12 ▼1.116.19 ▼34.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 16 new options
New WordPress options
widget_recent-posts
db_tagcloud_cols
db_tagcloud_underlined
db_tagcloud_underlined_hover
db_tagcloud_color
db_tagcloud_fontweight
db_upgraded
widget_recent-comments
can_compress_scripts
db_tagcloud_borderwidth
...

Browser metrics Passed 4 tests

An overview of browser requirements for DB Tagcloud for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.29 ▼1.004.90 ▲3.3044.09 ▲0.94
Dashboard /wp-admin2,261 ▲735.01 ▲0.11105.11 ▲4.1137.78 ▼6.89
Posts /wp-admin/edit.php2,149 ▲602.31 ▲0.3040.06 ▲4.9131.54 ▼5.21
Add New Post /wp-admin/post-new.php1,549 ▲3523.20 ▲5.56696.53 ▲43.7737.42 ▼11.91
Media Library /wp-admin/upload.php1,447 ▲654.55 ▲0.31113.15 ▲16.0448.03 ▲4.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/db-tagcloud-for-woocommerce/bisteinoff-tagcloud.php+61
    Undefined index: prefix
  • Zombie WordPress options were found after uninstall: 16 options
    • db_tagcloud_underlined
    • db_tagcloud_underlined_hover
    • db_tagcloud_fontweight
    • db_tagcloud_color_hover
    • db_tagcloud_color
    • db_tagcloud_cols
    • db_tagcloud_background_hover
    • db_tagcloud_borderwidth
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: seo, tagcloud, woocommerce

db-tagcloud-for-woocommerce/bisteinoff-tagcloud.php 85% from 13 tests

Analyzing the main PHP file in "DB Tagcloud for Woocommerce" version 1.7
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("db-tagcloud-for-woocommerce.php" instead of "bisteinoff-tagcloud.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 195 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
Good job! No executable or dangerous file extensions detected819 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP312333398
JavaScript412237210
CSS4372196
SVG20015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/example.png71.55KB41.62KB▼ 41.84%