90% hashtag

Code Review | Hashtag

WordPress plugin Hashtag scored90%from 54 tests.

About plugin

  • Plugin page: hashtag
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2013
  • Latest release: Jan 26, 2016
  • Number of updates: 12
  • Update frequency: every 79.2 days
  • Top authors: takien (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /12,677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.85ms] Passed 4 tests

An overview of server-side resources used by Hashtag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.33 ▼3.56
Dashboard /wp-admin3.39 ▲0.0944.57 ▼2.19
Posts /wp-admin/edit.php3.50 ▲0.1553.19 ▲8.14
Add New Post /wp-admin/post-new.php5.98 ▲0.1092.49 ▼3.49
Media Library /wp-admin/upload.php3.31 ▲0.0934.38 ▲1.86
#Hashtag /wp-admin/options-general.php?page=hashtag-plugin-option3.2830.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Hashtag
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.23 ▼1.084.54 ▲2.4541.77 ▼6.10
Dashboard /wp-admin2,210 ▲224.82 ▼0.09107.10 ▲2.3041.85 ▼3.28
Posts /wp-admin/edit.php2,093 ▲11.98 ▲0.0139.90 ▲0.4135.63 ▼0.15
Add New Post /wp-admin/post-new.php1,536 ▲223.30 ▲0.19599.87 ▼96.4245.50 ▼10.45
Media Library /wp-admin/upload.php1,383 ▼54.16 ▼0.0398.88 ▼7.8340.57 ▼6.00
#Hashtag /wp-admin/options-general.php?page=hashtag-plugin-option8641.7529.2026.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: hashtag, twitter, facebook, search

hashtag/hashtag.php Passed 13 tests

"Hashtag" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Converts hashtag strings into clickable link in WordPress. If clicked it will search contents contain same hashtag.

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
Everything looks great! No dangerous files found in this plugin406 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35352396
HTML1309
JavaScript10101

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity34.50
▷ Minimum class complexity21.00
▷ Maximum class complexity48.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-large.png3.67KB0.74KB▼ 79.87%
options/jscolor/hv.png2.80KB7.32KB0.00%
images/icon-small.png3.12KB0.55KB▼ 82.28%
options/images/icon-setting-large.png1.78KB1.44KB▼ 19.16%
options/jscolor/hs.png2.62KB7.54KB0.00%