10% search-taxonomy-gt

Code Review | Search Taxonomy GT

WordPress plugin Search Taxonomy GT scored 10% from 54 tests.

About plugin

  • Plugin page: search-taxonomy-gt
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 5.8.1
  • First release: Aug 27, 2013
  • Latest release: Oct 16, 2013
  • Number of updates: 15
  • Update frequency: every 3.3 days
  • Top authors: gtPlugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 898 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
    • > Notice in wp-content/plugins/search-taxonomy-gt/searchTaxonomyGT.php+38
    Undefined variable: searchTaxonomyGT_version

Server metrics [RAM: ▼0.84MB] [CPU: ▼168.77ms] Passed 4 tests

Analyzing server-side resources used by Search Taxonomy GT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.83 ▲7.32
Dashboard /wp-admin2.81 ▼0.2521.18 ▼21.38
Posts /wp-admin/edit.php2.81 ▼0.3021.66 ▼22.57
Add New Post /wp-admin/post-new.php2.81 ▼2.6218.18 ▼619.68
Media Library /wp-admin/upload.php2.81 ▼0.1921.27 ▼11.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
searchTaxonomyGT_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Search Taxonomy GT
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,874 ▲27817.42 ▲1.828.37 ▼1.3444.97 ▼2.78
Dashboard /wp-admin3,168 ▲2347.91 ▲1.94163.97 ▲1.43115.69 ▲1.71
Posts /wp-admin/edit.php2,963 ▲2244.43 ▲1.7284.56 ▲21.2787.38 ▼5.23
Add New Post /wp-admin/post-new.php1,617 ▼25921.51 ▲2.33252.06 ▼131.81131.34 ▲17.08
Media Library /wp-admin/upload.php1,738 ▼694.79 ▼0.25131.50 ▼22.96122.16 ▲5.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'my_plugin_admin_init' not found or invalid function name
  • This plugin does not fully uninstall, leaving 1 option in the database
    • searchTaxonomyGT_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/search-taxonomy-gt/searchTaxonomyGT.php:45

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === search-taxonomy-gt === )
You can look at the official readme.txt

search-taxonomy-gt/searchTaxonomyGT.php 85% from 13 tests

The primary PHP file in "Search Taxonomy GT" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("search-taxonomy-gt.php" instead of "searchTaxonomyGT.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin75 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript18534
PHP1132430
CSS11011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected