10% tag-cloud-canvas

Code Review | Tag Cloud Canvas

WordPress plugin Tag Cloud Canvas scored10%from 54 tests.

About plugin

  • Plugin page: tag-cloud-canvas
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.3.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2012
  • Latest release: Apr 23, 2012
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: noknok (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /8,752 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/tag-cloud-canvas/tag-cloud-canvas.php+231
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼50.69ms] Passed 4 tests

Server-side resources used by Tag Cloud Canvas
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.314.10 ▼33.75
Dashboard /wp-admin2.18 ▼1.135.21 ▼45.63
Posts /wp-admin/edit.php2.18 ▼1.186.71 ▼40.49
Add New Post /wp-admin/post-new.php2.18 ▼3.715.63 ▼82.90
Media Library /wp-admin/upload.php2.18 ▼1.055.58 ▼29.41

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tag Cloud Canvas
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16814.13 ▼0.625.09 ▲3.2742.81 ▼2.07
Dashboard /wp-admin2,205 ▲176.04 ▲0.1798.07 ▼20.3342.02 ▼1.24
Posts /wp-admin/edit.php2,094 ▲22.19 ▲0.1839.37 ▲5.3336.61 ▲1.35
Add New Post /wp-admin/post-new.php1,530 ▼1223.12 ▲4.78600.26 ▼50.1150.42 ▲3.68
Media Library /wp-admin/upload.php1,390 ▼14.26 ▲0.07107.11 ▲9.0741.84 ▼0.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/tag-cloud-canvas/tag-cloud-canvas.php+231
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_tag_cloud_canvas

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/tag-cloud-canvas/tag-cloud-canvas.php:34

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 need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Widget view.), #2 (Widget options.)
You can look at the official readme.txt

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

The main PHP script in "Tag Cloud Canvas" version 0.1.0 is automatically included on every request by WordPress
47 characters long description:
Tag cloud 3d using canvas (Sphere and Cylinder)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected267 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12054163
PO File23842103
JavaScript10201

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png36.42KB12.71KB▼ 65.11%
screenshot-2.png19.94KB6.45KB▼ 67.63%