84% tag-cloud-3d

Code Review | Tag Cloud 3D

WordPress plugin Tag Cloud 3D scored84%from 54 tests.

About plugin

  • Plugin page: tag-cloud-3d
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2017
  • Latest release: Dec 9, 2017
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: scriptcase (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Tag Cloud 3D
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.84 ▼3.97
Dashboard /wp-admin3.31 ▲0.0145.59 ▼6.43
Posts /wp-admin/edit.php3.36 ▲0.0146.79 ▼4.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.91 ▼18.54
Media Library /wp-admin/upload.php3.23 ▲0.0134.28 ▲3.47
3D Tag Cloud /wp-admin/options-general.php?page=wp_3d_tag_cloud_slug3.2837.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
c3dtc_bg_color
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
c3dtc_txt_color

Browser metrics Passed 4 tests

An overview of browser requirements for Tag Cloud 3D
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲13714.05 ▼0.145.64 ▲3.1237.10 ▼12.22
Dashboard /wp-admin2,211 ▲205.90 ▼0.0299.62 ▼0.7740.61 ▼0.54
Posts /wp-admin/edit.php2,097 ▲82.20 ▲0.1739.77 ▲1.9135.42 ▲0.33
Add New Post /wp-admin/post-new.php1,521 ▼1223.21 ▲0.26649.95 ▼14.0667.86 ▲15.63
Media Library /wp-admin/upload.php1,399 ▲84.25 ▲0.0398.46 ▼3.7742.41 ▼7.88
3D Tag Cloud /wp-admin/options-general.php?page=wp_3d_tag_cloud_slug1,0302.3130.9133.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • c3dtc_txt_color
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • c3dtc_bg_color
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-cloud-3d/scriptcase_3D_tag_cloud.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tag-cloud-3d/scriptcase_3D_tag_cloud_options.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.gif), #2 (screenshot-2.gif)
The official readme.txt is a good inspiration

tag-cloud-3d/scriptcase_3D_tag_cloud.php 92% from 13 tests

"Tag Cloud 3D" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tag-cloud-3d.php" instead of "scriptcase_3D_tag_cloud.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin14,200 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS47208,575
JavaScript55822411,596
LESS1426331,364
Sass1326241,352
SVG200853
PHP21111274
PO File46464186

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/tag-icon.png49.03KB0.58KB▼ 98.83%