84% colored-tag-cloud-listing

Code Review | Colored Tag Cloud Listing

WordPress plugin Colored Tag Cloud Listing scored84%from 54 tests.

About plugin

  • Plugin page: colored-tag-cloud...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Jan 17, 2015
  • Number of updates: 7
  • Update frequency: every 29.9 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.28ms] Passed 4 tests

A check of server-side resources used by Colored Tag Cloud Listing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.75 ▼2.15
Dashboard /wp-admin3.41 ▲0.1149.99 ▼2.33
Posts /wp-admin/edit.php3.53 ▲0.1744.31 ▼4.68
Add New Post /wp-admin/post-new.php5.99 ▲0.1181.16 ▼7.96
Media Library /wp-admin/upload.php3.34 ▲0.1134.41 ▼0.83
Colored Tag Cloud Listing /wp-admin/options-general.php?page=colored-tag-cloud-listing3.3031.04

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
jpctcl
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Colored Tag Cloud Listing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.83 ▲0.461.92 ▲0.2143.11 ▼0.14
Dashboard /wp-admin2,213 ▲254.88 ▼1.03110.01 ▼9.7142.93 ▲0.70
Posts /wp-admin/edit.php2,090 ▲41.99 ▲0.0136.25 ▼1.1832.09 ▲0.01
Add New Post /wp-admin/post-new.php1,533 ▲1923.32 ▲5.70642.84 ▼41.8564.92 ▼2.21
Media Library /wp-admin/upload.php1,392 ▲104.16 ▼0.0595.63 ▼5.0741.97 ▼2.33
Colored Tag Cloud Listing /wp-admin/options-general.php?page=colored-tag-cloud-listing9412.0225.2834.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/colored-tag-cloud-listing/colored-tag-cloud-listing.php:20

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 Passed 29 tests

readme.txt Passed 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
2 plugin tags: tags, tag cloud

colored-tag-cloud-listing/colored-tag-cloud-listing.php Passed 13 tests

"Colored Tag Cloud Listing" version 0.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
Display a tag cloud on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin441 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32556414
CSS20024
JavaScript1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/settings.png2.11KB2.31KB0.00%
images/cloud.png1.72KB1.25KB▼ 27.36%
images/support.png5.03KB2.79KB▼ 44.54%
images/parameters.png3.48KB2.94KB▼ 15.45%
images/examples.png3.78KB2.24KB▼ 40.82%