90% use-hashtags

Code Review | Use Hashtags – convert #hashtags to search links

WordPress plugin Use Hashtags – convert #hashtags to search links scored90%from 54 tests.

About plugin

  • Plugin page: use-hashtags
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2020
  • Latest release: May 21, 2022
  • Number of updates: 17
  • Update frequency: every 37.5 days
  • Top authors: gruhh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /1,282 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: ▲0.04MB] [CPU: ▲0.19ms] Passed 4 tests

This is a short check of server-side resources used by Use Hashtags – convert #hashtags to search links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.76 ▼2.38
Dashboard /wp-admin3.35 ▲0.0555.75 ▲0.89
Posts /wp-admin/edit.php3.41 ▲0.0550.12 ▲2.29
Add New Post /wp-admin/post-new.php5.94 ▲0.05103.01 ▲11.78
Media Library /wp-admin/upload.php3.28 ▲0.0536.51 ▼0.03
Use Hashtags /wp-admin/tools.php?page=use-hashtags3.2433.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
use_hashtags_options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Use Hashtags – convert #hashtags to search links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.131.81 ▼0.0140.96 ▼4.51
Dashboard /wp-admin2,199 ▲255.58 ▼0.0390.83 ▼5.9743.70 ▲0.41
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0041.18 ▲7.5138.17 ▲1.35
Add New Post /wp-admin/post-new.php1,531 ▲323.17 ▲0.24613.57 ▼58.8460.27 ▼3.88
Media Library /wp-admin/upload.php1,407 ▲134.26 ▲0.0196.56 ▼5.6244.87 ▲2.08
Use Hashtags /wp-admin/tools.php?page=use-hashtags8622.0022.1932.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: user experience, ux, navigation, hashtags

use-hashtags/use-hashtags.php Passed 13 tests

The main PHP file in "Use Hashtags – convert #hashtags to search links" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Convert all the #hashtags in your content and excerpts to a search link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin233 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25980233

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions19
▷ Named functions19100.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
PNG images were not found in this plugin