84% search-by-tags

Code Review | Search by Tags

WordPress plugin Search by Tags scored 84% from 54 tests.

About plugin

  • Plugin page: search-by-tags
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.2
  • WordPress version: 5.8.1
  • First release: Jan 10, 2013
  • Latest release: Jan 11, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: mayerz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 7,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.84MB] [CPU: ▼194.92ms] Passed 4 tests

Analyzing server-side resources used by Search by Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.935.04 ▼21.58
Dashboard /wp-admin1.81 ▼1.245.93 ▼48.86
Posts /wp-admin/edit.php1.81 ▼1.305.98 ▼44.55
Add New Post /wp-admin/post-new.php1.81 ▼3.625.52 ▼654.34
Media Library /wp-admin/upload.php1.81 ▼1.194.73 ▼31.92

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Search by Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,814 ▲21816.32 ▲0.8011.49 ▲1.6147.84 ▼5.18
Dashboard /wp-admin2,994 ▲605.92 ▲0.01146.05 ▼8.08113.99 ▼3.89
Posts /wp-admin/edit.php2,763 ▲242.71 ▲0.0271.26 ▲6.1392.66 ▼2.02
Add New Post /wp-admin/post-new.php1,687 ▲10617.54 ▼2.69369.48 ▼42.84117.84 ▼8.00
Media Library /wp-admin/upload.php1,830 ▲235.06 ▲0.05153.49 ▼0.72118.62 ▼3.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the searchbytag handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/search-by-tags/options_page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/search-by-tags/client_side/SearchByTag-popup-in.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (The Search by Tags plugin, highlight the tags within your posts content.), #2 (The Search by Tags plugin, highlight the tags within your posts content and enables your reader to find information about these tags on:), #3 (You can set the "search by tags" light box to be opened in one of the following ways:), #4 (You can set which one of the following search by tags options will be available for your readers)
The official readme.txt is a good inspiration

search-by-tags/search-by-tags.php 92% from 13 tests

Analyzing the main PHP file in "Search by Tags" version 1.0.0
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)

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
No dangerous file extensions were detected365 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34633171
CSS247110
JavaScript117084

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
client_side/images/popup-bg.png0.95KB0.15KB▼ 84.10%
images/options-form-btn.png3.86KB2.70KB▼ 30.05%
client_side/images/popup-bottom-bg.png4.35KB3.59KB▼ 17.49%
screenshot-1.png55.84KB26.45KB▼ 52.64%
client_side/images/google.png1.79KB1.11KB▼ 38.34%