90% hashtagger

Code Review | Smart Hashtags [#hashtagger]

WordPress plugin Smart Hashtags [#hashtagger] scored90%from 54 tests.

About plugin

  • Plugin page: hashtagger
  • Plugin version: 7.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2014
  • Latest release: Oct 8, 2023
  • Number of updates: 67
  • Update frequency: every 50.4 days
  • Top authors: petersplugins (50.75%)smartware.cc (50.75%)

Code review

54 tests

User reviews

39 reviews

Install metrics

2,000+ active /35,751 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.27MB] [CPU: ▼0.48ms] Passed 4 tests

This is a short check of server-side resources used by Smart Hashtags [#hashtagger]
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2445.31 ▲4.58
Dashboard /wp-admin3.59 ▲0.2452.24 ▼11.77
Posts /wp-admin/edit.php3.70 ▲0.3455.04 ▲8.65
Add New Post /wp-admin/post-new.php6.19 ▲0.30102.90 ▲3.83
Media Library /wp-admin/upload.php3.51 ▲0.2842.03 ▲1.42
#hashtagger /wp-admin/options-general.php?page=hashtaggersettings3.4837.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Smart Hashtags [#hashtagger]
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.36 ▼1.011.60 ▼0.2238.99 ▼4.27
Dashboard /wp-admin2,215 ▲275.86 ▼0.0297.14 ▼15.4939.88 ▼4.72
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0238.70 ▲5.6832.26 ▼5.49
Add New Post /wp-admin/post-new.php1,545 ▲2518.31 ▼2.74643.10 ▼38.0354.61 ▲1.65
Media Library /wp-admin/upload.php1,400 ▲124.18 ▼0.1197.32 ▼11.8443.58 ▼4.99
#hashtagger /wp-admin/options-general.php?page=hashtaggersettings8512.2327.0127.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: facebook, twitter, social, tags, classicpress...

hashtagger/hashtagger.php Passed 13 tests

The main PHP file in "Smart Hashtags [#hashtagger]" ver. 7.2.2 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Use #hashtags, @usernames and $cashtags in your posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,334 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP66415231,162
CSS2320160
JavaScript12012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity126.00
▷ Minimum class complexity126.00
▷ Maximum class complexity126.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods76
▷ Static methods11.32%
▷ Public methods6281.58%
▷ Protected methods11.32%
▷ Private methods1317.11%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/progress.png0.28KB0.25KB▼ 12.20%