10% minimalist-tag-cloud

Code Review | Minimalist Tag Cloud

WordPress plugin Minimalist Tag Cloud scored10%from 54 tests.

About plugin

  • Plugin page: minimalist-tag-cloud
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Mar 11, 2017
  • Latest release: Nov 12, 2017
  • Number of updates: 10
  • Update frequency: every 24.0 days
  • Top authors: hoongmooi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,441 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/minimalist-tag-cloud/minimalisttagcloud.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; MinimalistTagCloud has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼52.39ms] Passed 4 tests

An overview of server-side resources used by Minimalist Tag Cloud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.51 ▼35.28
Dashboard /wp-admin2.18 ▼1.127.47 ▼41.18
Posts /wp-admin/edit.php2.18 ▼1.176.19 ▼40.63
Add New Post /wp-admin/post-new.php2.18 ▼3.705.59 ▼92.47
Media Library /wp-admin/upload.php2.18 ▼1.045.84 ▼30.50

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_minimalisttagcloud
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Minimalist Tag Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.65 ▼0.581.70 ▲0.0439.96 ▼1.62
Dashboard /wp-admin2,211 ▲195.91 ▲0.9393.63 ▼10.5937.85 ▼4.97
Posts /wp-admin/edit.php2,091 ▲52.01 ▲0.0434.79 ▼4.0735.75 ▲3.12
Add New Post /wp-admin/post-new.php1,534 ▲1523.13 ▼0.21666.80 ▼14.0057.49 ▲1.31
Media Library /wp-admin/upload.php1,387 ▼14.22 ▲0.0396.99 ▲0.0841.21 ▼5.58

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/minimalist-tag-cloud/minimalisttagcloud.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; MinimalistTagCloud has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tags, categories, tagcloud, widgets, tag count...

minimalist-tag-cloud/minimalisttagcloud.php 92% from 13 tests

This is the main PHP file of "Minimalist Tag Cloud" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("minimalist-tag-cloud.php" instead of "minimalisttagcloud.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
There were no executable files found in this plugin378 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23435336
CSS19042

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity21.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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin