90% hashtag-url-placeholder

Code Review | Hashtag URL Placeholder

WordPress plugin Hashtag URL Placeholder scored90%from 54 tests.

About plugin

  • Plugin page: hashtag-url-place...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Dec 16, 2017
  • Number of updates: 10
  • Update frequency: every 61.1 days
  • Top authors: GeekStreetWP (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,086 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.26ms] Passed 4 tests

An overview of server-side resources used by Hashtag URL Placeholder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.39 ▲4.71
Dashboard /wp-admin3.36 ▲0.0546.40 ▲0.78
Posts /wp-admin/edit.php3.41 ▲0.0545.68 ▲0.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.71 ▼3.58
Media Library /wp-admin/upload.php3.28 ▲0.0533.75 ▲0.87
Hashtag Latest Post /wp-admin/options-general.php?page=hashtag-latest-post3.2538.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Hashtag URL Placeholder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.58 ▼0.801.67 ▼0.3242.92 ▲1.55
Dashboard /wp-admin2,210 ▲224.86 ▼0.00107.94 ▲0.7439.60 ▲2.48
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0139.35 ▲4.5133.95 ▲2.33
Add New Post /wp-admin/post-new.php1,536 ▲823.11 ▲0.04637.06 ▲33.0556.17 ▲5.57
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0595.75 ▼2.1642.89 ▼0.52
Hashtag Latest Post /wp-admin/options-general.php?page=hashtag-latest-post1,0682.1626.1641.82

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
9 plugin tags: hashtag, custom, links, custom post type, simple...

hashtag-url-placeholder/hashtag-latest-post-menu.php 92% from 13 tests

The main file in "Hashtag URL Placeholder" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hashtag-url-placeholder.php" instead of "hashtag-latest-post-menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected332 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4476332

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.17
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected