10% 3d-wp-tag-cloud-m

Code Review | 3D WP Tag Cloud-M

WordPress plugin 3D WP Tag Cloud-M scored 10% from 54 tests.

About plugin

  • Plugin page: 3d-wp-tag-cloud-m
  • Plugin version: 3.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.2
  • WordPress version: 5.9.2
  • First release: Oct 20, 2014
  • Latest release: Jan 17, 2018
  • Number of updates: 80
  • Update frequency: every 14.8 days
  • Top authors: hityr5yr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 6,954 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/3d-wp-tag-cloud-m/3D.WP.Tag.Cloud.M.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wpTagCanvasWidgetM has a deprecated constructor

Server metrics [RAM: ▼1.97MB] [CPU: ▼350.39ms] Passed 4 tests

Analyzing server-side resources used by 3D WP Tag Cloud-M
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.114.93 ▼54.68
Dashboard /wp-admin2.42 ▼0.994.97 ▼34.14
Posts /wp-admin/edit.php2.42 ▼1.225.42 ▼38.02
Add New Post /wp-admin/post-new.php2.42 ▼4.556.02 ▼1,274.73
Media Library /wp-admin/upload.php2.42 ▼0.884.47 ▼23.36
Add New /wp-admin/link-add.php2.4212.25
All Links /wp-admin/link-manager.php2.435.69
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category2.428.94

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 3 new options
New WordPress options
widget_wptagcanvaswidgetm
plugin_m_version
widget_links

Browser metrics Passed 4 tests

3D WP Tag Cloud-M: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲6716.02 ▲0.246.08 ▲0.272.95 ▲0.27
Dashboard /wp-admin2,918 ▲606.08 ▼0.18119.08 ▼38.61172.93 ▲4.47
Posts /wp-admin/edit.php2,733 ▲453.24 ▼0.0065.15 ▼5.21139.61 ▼22.08
Add New Post /wp-admin/post-new.php1,687 ▲1917.06 ▼0.76452.68 ▲53.47188.19 ▲29.46
Media Library /wp-admin/upload.php1,740 ▲425.51 ▲0.05133.75 ▼7.46220.10 ▲34.81
Add New /wp-admin/link-add.php2,2323.4975.29165.08
All Links /wp-admin/link-manager.php1,3362.4252.45114.95
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,6792.7754.82113.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/3d-wp-tag-cloud-m/3D.WP.Tag.Cloud.M.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wpTagCanvasWidgetM has a deprecated constructor
  • The uninstall procedure has failed, leaving 3 options in the database
    • widget_links
    • widget_wptagcanvaswidgetm
    • plugin_m_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Deprecated in wp-content/plugins/3d-wp-tag-cloud-m/3D.WP.Tag.Cloud.M.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wpTagCanvasWidgetM 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/3d-wp-tag-cloud-m/3D.WP.Tag.Cloud.M.php+1371
    Undefined variable: mopt

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/3d-wp-tag-cloud-m/help/m.tips.php
  • 1015× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 329
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 329
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 194
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 353
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 392
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 189
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 500
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 31
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 236
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/3d-wp-tag-cloud-m/m.variables.php on line 327

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: tags, shapes, images, tag cloud, cloud...

3d-wp-tag-cloud-m/3D.WP.Tag.Cloud.M.php 85% from 13 tests

The entry point to "3D WP Tag Cloud-M" version 3.2.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 349 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("3d-wp-tag-cloud-m.php" instead of "3D.WP.Tag.Cloud.M.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin14,068 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13711029,258
JavaScript4911273,669
HTML110701
CSS103440

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity13.20
▷ Minimum method complexity1.00
▷ Maximum method complexity56.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
37 compressed PNG files occupy 0.64MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
help/image0462.png7.73KB8.16KB0.00%
help/image015.png30.14KB31.36KB0.00%
help/image047.png9.21KB9.75KB0.00%
help/image027.png6.04KB6.22KB0.00%
help/image037.png9.53KB10.12KB0.00%