10% my-wp-tagcanvas

Code Review | 3D WP Tag Cloud-S

WordPress plugin 3D WP Tag Cloud-S scored10%from 54 tests.

About plugin

  • Plugin page: my-wp-tagcanvas
  • Plugin version: 5.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2014
  • Latest release: Jan 17, 2018
  • Number of updates: 103
  • Update frequency: every 12.9 days
  • Top authors: hityr5yr (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /26,319 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
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/my-wp-tagcanvas/3D.WP.Tag.Cloud.S.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wpTagCanvasWidget has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼56.96ms] Passed 4 tests

Server-side resources used by 3D WP Tag Cloud-S
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.245.13 ▼34.07
Dashboard /wp-admin2.24 ▼1.066.01 ▼55.32
Posts /wp-admin/edit.php2.24 ▼1.116.09 ▼42.55
Add New Post /wp-admin/post-new.php2.24 ▼3.656.63 ▼95.90
Media Library /wp-admin/upload.php2.24 ▼0.996.39 ▼31.43
Add New /wp-admin/link-add.php2.246.23
All Links /wp-admin/link-manager.php2.267.42
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category2.245.61

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options
widget_wptagcanvaswidget
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
plugin_version
can_compress_scripts
widget_links
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for 3D WP Tag Cloud-S
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.42 ▲0.071.67 ▲0.1342.80 ▼0.43
Dashboard /wp-admin2,220 ▲405.55 ▲0.0290.68 ▼1.7442.28 ▼0.82
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.0033.62 ▼3.7740.90 ▼2.08
Add New Post /wp-admin/post-new.php1,552 ▲2623.29 ▲0.35662.54 ▼8.8754.87 ▼0.80
Media Library /wp-admin/upload.php1,434 ▲314.19 ▼0.05103.25 ▲2.6148.24 ▲4.73
Add New /wp-admin/link-add.php1,6562.5646.9835.23
All Links /wp-admin/link-manager.php1,0682.0226.4531.95
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,3142.1229.0832.03

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
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/my-wp-tagcanvas/3D.WP.Tag.Cloud.S.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wpTagCanvasWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_links
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_wptagcanvaswidget
    • plugin_version
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Deprecated in wp-content/plugins/my-wp-tagcanvas/3D.WP.Tag.Cloud.S.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wpTagCanvasWidget has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Notice in wp-content/plugins/my-wp-tagcanvas/3D.WP.Tag.Cloud.S.php+498
    Undefined variable: opt

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/my-wp-tagcanvas/help/s.tips.php
  • 282× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 93
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 131
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 12
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 100
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 143
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 84
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 78
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 80
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/my-wp-tagcanvas/s.variables.php on line 28

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: widget, multiple shapes, shortcode, cloud, html5...

my-wp-tagcanvas/3D.WP.Tag.Cloud.S.php 85% from 13 tests

The main file in "3D WP Tag Cloud-S" v. 5.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 336 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-wp-tagcanvas.php" instead of "3D.WP.Tag.Cloud.S.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,626 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP436493,531
JavaScript4551233,067
HTML111582
CSS133446

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity21.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
28 compressed PNG files occupy 0.70MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
help/image011.png8.80KB9.03KB0.00%
help/image013.png17.26KB18.25KB0.00%
help/image025.png12.61KB13.20KB0.00%
css/glass_75_e6e6e6.png0.26KB0.15KB▼ 42.37%
help/example-2.png33.19KB34.69KB0.00%