10% color-bg-tag-cloud

Code Review | Color Bg Tag Cloud

WordPress plugin Color Bg Tag Cloud scored10%from 54 tests.

About plugin

  • Plugin page: color-bg-tag-cloud
  • Plugin version: 1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Nov 14, 2019
  • Number of updates: 6
  • Update frequency: every 247.7 days
  • Top authors: Techzero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,861 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/color-bg-tag-cloud/color-bg-tag-cloud.php+494
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.79ms] Passed 4 tests

An overview of server-side resources used by Color Bg Tag Cloud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.81 ▼43.05
Dashboard /wp-admin2.05 ▼1.265.59 ▼42.25
Posts /wp-admin/edit.php2.05 ▼1.315.66 ▼46.24
Add New Post /wp-admin/post-new.php2.05 ▼3.845.72 ▼83.62
Media Library /wp-admin/upload.php2.05 ▼1.185.54 ▼27.30

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_color_bg_tag_cloud
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Color Bg Tag Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.48 ▲0.051.85 ▼0.3941.20 ▼1.03
Dashboard /wp-admin2,206 ▲155.85 ▲0.94105.83 ▲3.4238.19 ▼2.79
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0739.80 ▼4.8534.41 ▼1.11
Add New Post /wp-admin/post-new.php1,539 ▲323.41 ▲0.32725.86 ▲56.8860.97 ▲8.53
Media Library /wp-admin/upload.php1,382 ▼64.15 ▼0.0195.77 ▼3.2642.99 ▼3.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/color-bg-tag-cloud/color-bg-tag-cloud.php+494
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_color_bg_tag_cloud
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/color-bg-tag-cloud/color-bg-tag-cloud.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Random Style), #2 (Blue Style), #3 (Green Style), #4 (Black Style), #5 (Red Style)
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

color-bg-tag-cloud/color-bg-tag-cloud.php Passed 13 tests

The principal PHP file in "Color Bg Tag Cloud" v. 1.10 is loaded by WordPress automatically on each request
39 characters long description:
A simple, yet very beautiful 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 plugin948 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP14613449
PO File4208252426
CSS110073

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity14.80
▷ 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%
Functions5
▷ Named functions5100.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
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png18.67KB8.74KB▼ 53.22%
screenshot-5.png20.58KB8.98KB▼ 56.38%
screenshot-3.png23.31KB8.92KB▼ 61.72%
screenshot-2.png20.16KB8.87KB▼ 56.00%
screenshot-1.png25.98KB9.67KB▼ 62.78%