10% selective-tags

Code Review | Selective Tag Cloud Widget

WordPress plugin Selective Tag Cloud Widget scored 10% from 54 tests.

About plugin

  • Plugin page: selective-tags
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.5
  • WordPress version: 6.3.1
  • First release: Oct 25, 2011
  • Latest release: Apr 28, 2016
  • Number of updates: 22
  • Update frequency: every 74.9 days
  • Top authors: purab (81.82%)wordpressapi (22.73%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,499 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/selective-tags/selective-tags.php+88
    Methods with the same name as their class will not be constructors in a future version of PHP; TagWidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼55.35ms] Passed 4 tests

Server-side resources used by Selective Tag Cloud Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.334.35 ▼36.27
Dashboard /wp-admin2.15 ▼1.155.49 ▼43.48
Posts /wp-admin/edit.php2.15 ▼1.218.85 ▼44.21
Add New Post /wp-admin/post-new.php2.15 ▼3.746.50 ▼89.41
Media Library /wp-admin/upload.php2.15 ▼1.085.55 ▼44.31

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_tag-widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Selective Tag Cloud Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11814.86 ▲0.561.58 ▼0.2139.25 ▼5.05
Dashboard /wp-admin2,249 ▲646.33 ▲0.46125.07 ▲19.5742.10 ▼5.83
Posts /wp-admin/edit.php2,141 ▲523.04 ▲1.0551.25 ▲10.0936.74 ▼0.38
Add New Post /wp-admin/post-new.php1,547 ▲3323.45 ▲6.07643.02 ▼68.5735.43 ▼32.01
Media Library /wp-admin/upload.php1,437 ▲495.63 ▲1.53107.10 ▲3.0341.63 ▼2.03
Selective Tags /wp-admin/selective-tags.php260.440.0914.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/selective-tags/selective-tags.php+88
    Methods with the same name as their class will not be constructors in a future version of PHP; TagWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_tag-widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/selective-tags/selective-tags.php:80

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/selective-tags.php
    • > Network (severe)
    wp-admin/selective-tags.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Widget settings page) image not found
The official readme.txt might help

selective-tags/selective-tags.php Passed 13 tests

The entry point to "Selective Tag Cloud Widget" version 1.2 is a PHP file that has certain tags in its header comment area
128 characters long description:
Provide sidebar widgets that can be used to display Selective Tags from a set of tags which is selected by admin in the sidebar.

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
No dangerous file extensions were detected2,219 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44632331,724
PHP110890241
PO File57095199
CSS2122955

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.70KB5.12KB▼ 52.13%