10% search-by-taxonomy-tag-cloud-search

Code Review | Term/Tag Cloud Search

WordPress plugin Term/Tag Cloud Search scored10%from 54 tests.

About plugin

  • Plugin page: search-by-taxonom...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2015
  • Latest release: Mar 27, 2015
  • Number of updates: 12
  • Update frequency: every 2.3 days
  • Top authors: shawn@eggplantstudios.ca (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,541 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
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/search-by-taxonomy-tag-cloud-search/eps-tag-cloud.php+46
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼58.51ms] Passed 4 tests

An overview of server-side resources used by Term/Tag Cloud Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.25 ▼35.27
Dashboard /wp-admin2.05 ▼1.297.10 ▼53.31
Posts /wp-admin/edit.php2.06 ▼1.307.47 ▼41.06
Add New Post /wp-admin/post-new.php2.05 ▼3.836.20 ▼104.38
Media Library /wp-admin/upload.php2.05 ▼1.175.98 ▼28.70
EPS Term Tag Cloud Search /wp-admin/options-general.php?page=eps_tagcloud2.066.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
widget_eps_tagcloudwidget
can_compress_scripts
eps_tagcloud_version
db_upgraded
theysaidso_admin_options
eps_tagcloud_general

Browser metrics Passed 4 tests

A check of browser resources used by Term/Tag Cloud Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.56 ▼1.035.65 ▲3.8337.11 ▼1.51
Dashboard /wp-admin2,218 ▲354.89 ▼0.07107.03 ▼0.8039.97 ▼3.19
Posts /wp-admin/edit.php2,104 ▲152.05 ▼0.1341.35 ▲4.2336.03 ▼0.11
Add New Post /wp-admin/post-new.php1,525 ▲617.77 ▼5.23627.80 ▼66.9454.81 ▲3.24
Media Library /wp-admin/upload.php1,403 ▲154.20 ▲0.0496.81 ▼0.7543.12 ▲1.86
EPS Term Tag Cloud Search /wp-admin/options-general.php?page=eps_tagcloud7851.7325.7725.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/search-by-taxonomy-tag-cloud-search/eps-tag-cloud.php+46
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • eps_tagcloud_general
    • eps_tagcloud_version
    • widget_recent-posts
    • db_upgraded
    • widget_eps_tagcloudwidget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=eps_tagcloud
    • > Deprecated in wp-content/plugins/search-by-taxonomy-tag-cloud-search/eps-tag-cloud.php+46
    Function create_function() is deprecated

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/search-by-taxonomy-tag-cloud-search/templates/admin.widget.form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EPS_Plugin' not found in wp-content/plugins/search-by-taxonomy-tag-cloud-search/plugin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/search-by-taxonomy-tag-cloud-search/templates/widget.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/search-by-taxonomy-tag-cloud-search/eps-tag-cloud.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=eps_tagcloud
    • > Network (severe)
    wp-content/plugins/search-by-taxonomy-tag-cloud-search/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === search-by-taxonomy-tag-cloud-search === )
The official readme.txt might help

search-by-taxonomy-tag-cloud-search/eps-tag-cloud.php 92% from 13 tests

The main PHP script in "Term/Tag Cloud Search" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-by-taxonomy-tag-cloud-search.php" instead of "eps-tag-cloud.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected575 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7128193487
CSS12044
JavaScript27336
JSON1008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.75
▷ Minimum class complexity8.00
▷ Maximum class complexity17.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods411.11%
▷ Public methods3083.33%
▷ Protected methods00.00%
▷ Private methods616.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin