84% fox009-color-tag-cloud

Code Review | Fox009 Color Tag Cloud

WordPress plugin Fox009 Color Tag Cloud scored84%from 54 tests.

About plugin

  • Plugin page: fox009-color-tag-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.7
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: Jul 24, 2021
  • Number of updates: 7
  • Update frequency: every 9.3 days
  • Top authors: fox009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.13ms] Passed 4 tests

Server-side resources used by Fox009 Color Tag Cloud
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.85 ▼5.37
Dashboard /wp-admin3.32 ▲0.0242.17 ▼7.17
Posts /wp-admin/edit.php3.37 ▲0.0148.06 ▲2.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.73 ▼14.59
Media Library /wp-admin/upload.php3.24 ▲0.0133.91 ▼1.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_fox009_color_tag_cloud
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fox009 Color Tag Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.61 ▼0.758.68 ▲6.8541.24 ▼3.33
Dashboard /wp-admin2,210 ▲225.91 ▲0.02113.13 ▲8.8042.30 ▼0.06
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0139.59 ▼0.0334.63 ▼1.07
Add New Post /wp-admin/post-new.php1,518 ▼117.73 ▼5.34679.30 ▲23.0258.93 ▲7.41
Media Library /wp-admin/upload.php1,389 ▼24.23 ▲0.0399.05 ▼15.9542.59 ▼7.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_fox009_color_tag_cloud

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)
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: new_instance in wp-content/plugins/fox009-color-tag-cloud/includes/update.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/fox009-color-tag-cloud/includes/tag_cloud.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fox009-color-tag-cloud/includes/select_options.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fox009-color-tag-cloud/includes/widget.php:5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/fox009-color-tag-cloud/includes/update.php on line 4
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/fox009-color-tag-cloud/includes/tag_cloud.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fox009-color-tag-cloud/includes/tag_cloud.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/fox009-color-tag-cloud/includes/add_control.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/fox009-color-tag-cloud/includes/form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fox009-color-tag-cloud/includes/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Fox009 Color Tag Cloud" version 1.0.2
44 characters long description:
A beautiful, dynamic and colorful tag cloud.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,536 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1091291,084
CSS2450408
JavaScript21044

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.56
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/gradient_top_bottom.png2.81KB0.30KB▼ 89.44%
assets/images/gradient_center.png2.83KB0.27KB▼ 90.46%
assets/images/gradient_left_right.png2.83KB0.40KB▼ 85.87%