73% linear-tag-cloud

Code Review | Linear Tag Cloud

WordPress plugin Linear Tag Cloud scored 73% from 54 tests.

About plugin

  • Plugin page: linear-tag-cloud
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Jan 20, 2013
  • Number of updates: 26
  • Update frequency: every 0.2 days
  • Top authors: andrearufo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,120 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.69MB] [CPU: ▼45.77ms] Passed 4 tests

An overview of server-side resources used by Linear Tag Cloud
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.168.25 ▼34.10
Dashboard /wp-admin2.31 ▼0.9911.81 ▼38.53
Posts /wp-admin/edit.php2.31 ▼1.0412.14 ▼34.56
Add New Post /wp-admin/post-new.php2.31 ▼3.5710.84 ▼75.88
Media Library /wp-admin/upload.php2.31 ▼0.929.20 ▼25.00

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Linear Tag Cloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.071.67 ▼0.2640.05 ▼13.67
Dashboard /wp-admin2,209 ▲184.88 ▲0.02109.82 ▲0.0941.51 ▼3.67
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0840.92 ▲2.7135.71 ▼1.26
Add New Post /wp-admin/post-new.php1,542 ▲13018.18 ▲0.25630.11 ▲23.5256.28 ▲9.21
Media Library /wp-admin/upload.php1,385 ▼04.21 ▲0.0397.32 ▼2.6641.13 ▼7.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in ltc_widget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_ltc
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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: Class 'WP_Widget' not found in wp-content/plugins/linear-tag-cloud/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

linear-tag-cloud/index.php 92% from 13 tests

The main PHP file in "Linear Tag Cloud" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("linear-tag-cloud.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin129 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14518113
CSS13016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png17.38KB4.14KB▼ 76.19%
assets/screenshot-2.png28.44KB7.33KB▼ 74.22%
assets/screenshot-1.png35.43KB10.24KB▼ 71.09%
assets/banner-772x250.png59.90KB24.41KB▼ 59.24%