84% colorful-tag-cloud

Code Review | Colorful Tag Cloud

WordPress plugin Colorful Tag Cloud scored84%from 54 tests.

About plugin

  • Plugin page: colorful-tag-cloud
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 17, 2014
  • Latest release: Mar 5, 2014
  • Number of updates: 21
  • Update frequency: every 0.8 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Colorful Tag Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.37 ▼0.99
Dashboard /wp-admin3.34 ▲0.0348.89 ▼0.13
Posts /wp-admin/edit.php3.39 ▲0.0351.67 ▲3.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.26 ▲3.17
Media Library /wp-admin/upload.php3.26 ▲0.0337.11 ▼2.03
Colorful Tag Cloud /wp-admin/options-general.php?page=colorful-tag-cloud-options3.2333.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
colorful_tag_cloud_type
widget_theysaidso_widget
colorful_tag_cloud_color_code
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Colorful Tag Cloud
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.31 ▼0.351.84 ▲0.2747.23 ▲2.39
Dashboard /wp-admin2,196 ▲165.63 ▼0.0481.22 ▼10.6340.31 ▼3.77
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0339.19 ▲1.7437.72 ▼3.34
Add New Post /wp-admin/post-new.php1,529 ▲123.57 ▲0.41666.15 ▲3.7962.89 ▲8.87
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0298.90 ▼3.9045.96 ▲3.20
Colorful Tag Cloud /wp-admin/options-general.php?page=colorful-tag-cloud-options8332.0024.3827.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • colorful_tag_cloud_color_code
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • colorful_tag_cloud_type
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/colorful-tag-cloud/options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/colorful-tag-cloud/colorful-tag-cloud.php:34

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: color, tag cloud

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

Analyzing the main PHP file in "Colorful Tag Cloud" version 1.0.9
71 characters long description:
Colorful Your Blog's Tag Cloud. 為你部落格的標籤雲加上色彩

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
There were no executable files found in this plugin171 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172597
PO File2181874

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin