84% tag-cloud-per-category

Code Review | Tag Cloud per Category

WordPress plugin Tag Cloud per Category scored84%from 54 tests.

About plugin

  • Plugin page: tag-cloud-per-cat...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 8, 2017
  • Latest release: Jan 8, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: LordPretender (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.89ms] Passed 4 tests

An overview of server-side resources used by Tag Cloud per Category
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.21 ▼0.83
Dashboard /wp-admin3.34 ▲0.0345.89 ▼0.71
Posts /wp-admin/edit.php3.39 ▲0.0347.43 ▼0.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.84 ▼1.10
Media Library /wp-admin/upload.php3.26 ▲0.0336.08 ▲1.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_tag_cloud_per_category
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Tag Cloud per Category
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼0.921.59 ▼0.1239.71 ▼0.53
Dashboard /wp-admin2,206 ▲175.86 ▲0.8897.55 ▼14.6438.27 ▼1.98
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0136.32 ▼2.7435.20 ▼2.56
Add New Post /wp-admin/post-new.php1,533 ▲1423.03 ▼0.17650.06 ▼33.9159.35 ▲4.49
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0294.89 ▼4.8341.29 ▼0.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_tag_cloud_per_category
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-cloud-per-category/tag-cloud-per-category.php:15

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: categories, tag-cloud, tag, tags, taxonomy...

tag-cloud-per-category/tag-cloud-per-category.php Passed 13 tests

The main file in "Tag Cloud per Category" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
This is an override of the native Tag cloud widget but filtered by the current category.

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
There were no executable files found in this plugin142 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13965142

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG files were detected