84% artifakt-hashtags

Code Review | The artifakt Hashtag Plugin

WordPress plugin The artifakt Hashtag Plugin scored84%from 54 tests.

About plugin

  • Plugin page: artifakt-hashtags
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2014
  • Latest release: Feb 24, 2016
  • Number of updates: 14
  • Update frequency: every 48.9 days
  • Top authors: artifaktcom (78.57%)bythegram (28.57%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.67ms] Passed 4 tests

Server-side resources used by The artifakt Hashtag Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.58 ▼9.44
Dashboard /wp-admin3.34 ▲0.0444.20 ▼6.62
Posts /wp-admin/edit.php3.39 ▲0.0449.77 ▼2.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.88 ▼15.86
Media Library /wp-admin/upload.php3.26 ▲0.0439.19 ▲0.74
Hashtags /wp-admin/edit-tags.php?taxonomy=hashtags3.3845.39

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by The artifakt Hashtag Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.24 ▼0.362.42 ▲0.3544.69 ▲1.29
Dashboard /wp-admin2,199 ▲225.58 ▲0.0191.00 ▼10.0440.73 ▼3.20
Posts /wp-admin/edit.php2,136 ▲361.98 ▲0.0039.40 ▲2.8534.10 ▲0.59
Add New Post /wp-admin/post-new.php1,538 ▲1018.15 ▼4.94636.80 ▼63.7277.27 ▲12.56
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.07108.91 ▲4.7146.31 ▲1.72
Hashtags /wp-admin/edit-tags.php?taxonomy=hashtags1,2502.1228.9333.73

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/artifakt-hashtags/hashtag.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: search, posts, hashtags

artifakt-hashtags/hashtag.php 92% from 13 tests

The primary PHP file in "The artifakt Hashtag Plugin" version 2.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("artifakt-hashtags.php" instead of "hashtag.php")

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
Everything looks great! No dangerous files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172393

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected