89% combined-taxonomies-tag-cloud

Code Review | Combined Taxonomies Tag Cloud

WordPress plugin Combined Taxonomies Tag Cloud scored89%from 54 tests.

About plugin

  • Plugin page: combined-taxonomi...
  • Plugin version: 0.21.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Jun 12, 2019
  • Number of updates: 12
  • Update frequency: every 97.3 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,698 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.54ms] Passed 4 tests

This is a short check of server-side resources used by Combined Taxonomies Tag Cloud
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.57 ▲2.95
Dashboard /wp-admin3.42 ▲0.1252.22 ▲2.19
Posts /wp-admin/edit.php3.54 ▲0.1851.19 ▼4.45
Add New Post /wp-admin/post-new.php6.02 ▲0.1497.53 ▼0.72
Media Library /wp-admin/upload.php3.35 ▲0.1237.10 ▼3.17

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_combinedtaxonomiestagcloudwidget
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Combined Taxonomies Tag Cloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.35 ▲0.071.74 ▼0.0546.23 ▲1.86
Dashboard /wp-admin2,214 ▲375.85 ▲0.2896.64 ▲5.3543.04 ▲1.45
Posts /wp-admin/edit.php2,124 ▲272.30 ▲0.3338.29 ▲2.2333.19 ▼4.75
Add New Post /wp-admin/post-new.php1,540 ▲1423.35 ▲0.34657.71 ▼35.9735.91 ▼19.55
Media Library /wp-admin/upload.php1,422 ▲194.45 ▲0.2196.79 ▼19.6644.42 ▼4.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_combinedtaxonomiestagcloudwidget

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)
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

combined-taxonomies-tag-cloud/combined-taxonomies-tag-cloud.php Passed 13 tests

Analyzing the main PHP file in "Combined Taxonomies Tag Cloud" version 0.21.3
79 characters long description:
Makes a tag cloud widget out of multiple taxonomies across multiple post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected738 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP110846334
LESS2515315
CSS10071
JavaScript17218

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.48
Average class complexity34.50
▷ Minimum class complexity8.00
▷ Maximum class complexity61.00
Average method complexity6.29
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin