10% dynamiccategorytagcloud

Code Review | DynamicCategoryTagCloud

WordPress plugin DynamicCategoryTagCloud scored 10% from 54 tests.

About plugin

  • Plugin page: dynamiccategoryta...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 5.8.1
  • First release: May 30, 2013
  • Latest release: May 30, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: enomoto celtislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,047 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/dynamiccategorytagcloud/DynamicCategoryTagCloud.php+18
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼227.50ms] Passed 4 tests

A check of server-side resources used by DynamicCategoryTagCloud
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.985.72 ▼20.14
Dashboard /wp-admin1.76 ▼1.296.76 ▼55.60
Posts /wp-admin/edit.php1.76 ▼1.3510.19 ▼46.80
Add New Post /wp-admin/post-new.php1.76 ▼3.676.05 ▼772.08
Media Library /wp-admin/upload.php1.76 ▼1.245.08 ▼35.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_dynamiccategorytagcloud

Browser metrics Passed 4 tests

An overview of browser requirements for DynamicCategoryTagCloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲3415.74 ▲0.169.92 ▼0.8350.02 ▲0.64
Dashboard /wp-admin2,975 ▲445.89 ▼0.08143.97 ▼8.09114.13 ▼15.30
Posts /wp-admin/edit.php2,741 ▲22.72 ▲0.0069.86 ▲1.9393.66 ▼15.31
Add New Post /wp-admin/post-new.php1,685 ▲218.72 ▲0.35409.96 ▲3.97116.44 ▼7.30
Media Library /wp-admin/upload.php1,812 ▲25.04 ▼0.09161.85 ▼6.71127.30 ▲6.80

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
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/dynamiccategorytagcloud/DynamicCategoryTagCloud.php+18
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_dynamiccategorytagcloud

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamiccategorytagcloud/DynamicCategoryTagCloud.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (`Dynamic Tag cloud` widget setting.)
Please take inspiration from this readme.txt

dynamiccategorytagcloud/DynamicCategoryTagCloud.php 85% from 13 tests

The main file in "DynamicCategoryTagCloud" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dynamiccategorytagcloud.php" instead of "DynamicCategoryTagCloud.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected553 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP281134467
PO File1252570
CSS14816

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity46.50
▷ Minimum class complexity43.00
▷ Maximum class complexity50.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1770.83%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.07KB4.78KB▼ 21.34%