89% wp-hashtags

Code Review | WordPress Hashtags

WordPress plugin WordPress Hashtags scored89%from 54 tests.

About plugin

  • Plugin page: wp-hashtags
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Aug 7, 2016
  • Number of updates: 18
  • Update frequency: every 10.8 days
  • Top authors: elhardoum (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /4,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.45ms] Passed 4 tests

Analyzing server-side resources used by WordPress Hashtags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1044.50 ▼2.27
Dashboard /wp-admin3.42 ▲0.0452.29 ▼18.77
Posts /wp-admin/edit.php3.54 ▲0.1450.82 ▲0.65
Add New Post /wp-admin/post-new.php6.01 ▲0.0890.61 ▼17.39
Media Library /wp-admin/upload.php3.35 ▲0.0838.73 ▲2.94
WP Hashtags /wp-admin/options-general.php?page=wordpress-hashtags3.3236.71

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

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

Browser metrics Passed 4 tests

WordPress Hashtags: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▼0.382.04 ▲0.4742.94 ▲2.36
Dashboard /wp-admin2,199 ▲195.61 ▼0.0296.14 ▲6.2443.81 ▲1.43
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0134.80 ▼3.9833.89 ▲0.36
Add New Post /wp-admin/post-new.php1,529 ▲123.71 ▲0.51683.93 ▼15.2261.73 ▲8.32
Media Library /wp-admin/upload.php1,407 ▲134.28 ▲0.03109.17 ▲11.1046.08 ▲3.71
WP Hashtags /wp-admin/options-general.php?page=wordpress-hashtags1,1182.1528.1448.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (20 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-hashtags/index.php 92% from 13 tests

The main file in "WordPress Hashtags" v. 0.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-hashtags.php" instead of "index.php")

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
There were no executable files found in this plugin430 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11059250
JavaScript1107123
CSS12457

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity7.11
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected