84% tag-with-hash

Code Review | Tag With Hash

WordPress plugin Tag With Hash scored84%from 54 tests.

About plugin

  • Plugin page: tag-with-hash
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.01
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Dec 2, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: kamiel79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /929 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.68ms] Passed 4 tests

Server-side resources used by Tag With Hash
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.50 ▼3.99
Dashboard /wp-admin3.31 ▼0.0444.69 ▼16.78
Posts /wp-admin/edit.php3.36 ▲0.0042.58 ▼18.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.81 ▼15.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.09 ▼1.84

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tag With Hash
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▼0.011.74 ▲0.2145.42 ▲6.81
Dashboard /wp-admin2,195 ▲185.63 ▼0.0188.98 ▲0.1643.26 ▼0.09
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0635.28 ▼4.3234.84 ▼3.85
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.41681.29 ▼34.3554.74 ▼4.99
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.09105.04 ▼6.2144.02 ▼4.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tag-with-hash/tag-with-hash.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hash, productivity, wordpress, wordpressorg, tagging

tag-with-hash/tag-with-hash.php Passed 13 tests

"Tag With Hash" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Automatically turn terms into tags if you precede them with a #. Nonexisting tags are created.

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
No dangerous file extensions were detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin