84% cool-tag-cloud

Code Review | Cool Tag Cloud

WordPress plugin Cool Tag Cloud scored84%from 54 tests.

About plugin

  • Plugin page: cool-tag-cloud
  • Plugin version: 2.29
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Apr 11, 2023
  • Number of updates: 59
  • Update frequency: every 52.8 days
  • Top authors: wpkube (52.54%)Flector (49.15%)

Code review

54 tests

User reviews

51 reviews

Install metrics

10,000+ active /273,037 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.20ms] Passed 4 tests

A check of server-side resources used by Cool Tag Cloud
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.90 ▲1.68
Dashboard /wp-admin3.32 ▼0.0346.64 ▼19.79
Posts /wp-admin/edit.php3.37 ▲0.0146.20 ▼1.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.13 ▼13.51
Media Library /wp-admin/upload.php3.24 ▲0.0136.24 ▼1.86

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_cool_tag_cloud
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cool Tag Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.34 ▼0.051.87 ▲0.1739.55 ▼3.71
Dashboard /wp-admin2,198 ▲275.65 ▲0.0499.87 ▲9.0841.46 ▼0.29
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0633.85 ▼3.3739.59 ▲2.37
Add New Post /wp-admin/post-new.php1,547 ▲1623.43 ▲0.20668.30 ▼13.0752.73 ▼7.68
Media Library /wp-admin/upload.php1,394 ▼64.23 ▲0.0698.81 ▼14.7744.72 ▼3.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_cool_tag_cloud
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cool-tag-cloud/cool-tag-cloud.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Tags: There are too many tags (23 tag instead of maximum 10)
Please take inspiration from this readme.txt

cool-tag-cloud/cool-tag-cloud.php Passed 13 tests

"Cool Tag Cloud" version 2.29's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
A simple, yet very beautiful tag cloud.

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
Good job! No executable or dangerous file extensions detected1,721 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS2370932
PHP110336789

PHP code Passed 2 tests

Analyzing 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.32
Average class complexity92.00
▷ Minimum class complexity92.00
▷ Maximum class complexity92.00
Average method complexity19.20
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/purple-right.png0.85KB0.72KB▼ 16.23%
inc/images/green-left.png0.90KB0.75KB▼ 15.90%
inc/images/red-right.png0.87KB0.73KB▼ 15.62%
inc/images/default-left.png1.02KB0.87KB▼ 14.45%
inc/images/lime-right.png0.92KB0.79KB▼ 14.36%