84% page-tag-cloud

Code Review | Page Tag Cloud

WordPress plugin Page Tag Cloud scored84%from 54 tests.

About plugin

  • Plugin page: page-tag-cloud
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2012
  • Latest release: Aug 25, 2023
  • Number of updates: 35
  • Update frequency: every 113.2 days
  • Top authors: barrykooij (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /13,655 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.81ms] Passed 4 tests

Server-side resources used by Page Tag Cloud
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.88 ▼3.14
Dashboard /wp-admin3.35 ▲0.0548.89 ▲0.70
Posts /wp-admin/edit.php3.40 ▲0.0544.27 ▼1.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.68 ▼14.88
Media Library /wp-admin/upload.php3.27 ▲0.0536.81 ▲1.02
Page Tags /wp-admin/edit-tags.php?taxonomy=page_tags&post_type=page3.3935.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Page Tag Cloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.78 ▲0.482.13 ▲0.2844.40 ▲3.96
Dashboard /wp-admin2,213 ▲224.86 ▼0.04110.91 ▲7.2941.75 ▼5.76
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0135.16 ▼4.5135.17 ▲1.56
Add New Post /wp-admin/post-new.php1,536 ▼023.07 ▼0.18684.82 ▼6.3852.04 ▼2.90
Media Library /wp-admin/upload.php1,386 ▼24.19 ▼0.0292.98 ▼15.5241.72 ▼6.32
Page Tags /wp-admin/edit-tags.php?taxonomy=page_tags&post_type=page1,2462.1327.6128.04

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_ptc_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/page-tag-cloud/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/page-tag-cloud/widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
3 plugin tags: tags, tag cloud, page tags

page-tag-cloud/page-tag-cloud.php Passed 13 tests

"Page Tag Cloud" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Add tags to pages and display them in a tag cloud widget.

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
Everything looks great! No dangerous files found in this plugin120 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23884120

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.50
▷ Minimum class complexity4.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
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 images were found in this plugin