78% hashtags-for-wp

Code Review | Hashtags for WordPress

WordPress plugin Hashtags for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: hashtags-for-wp
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2023
  • Latest release: May 6, 2023
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: maiobarbero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /207 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.02MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by Hashtags for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.90 ▼3.07
Dashboard /wp-admin3.33 ▲0.0248.47 ▼1.16
Posts /wp-admin/edit.php3.38 ▲0.0250.41 ▼0.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.73 ▼14.68
Media Library /wp-admin/upload.php3.25 ▲0.0237.25 ▼0.46
Hashtags /wp-admin/options-general.php?page=hashtags-for-wp3.2228.66

Server storage [IO: ▲0.01MB] [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
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hashtags for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3114.34 ▼0.262.21 ▲0.2041.37 ▼1.48
Dashboard /wp-admin2,195 ▲185.57 ▲0.0097.34 ▲5.3042.11 ▼1.83
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0140.06 ▲2.8238.13 ▼2.95
Add New Post /wp-admin/post-new.php1,531 ▼423.57 ▲5.40613.26 ▼0.4850.72 ▼23.97
Media Library /wp-admin/upload.php1,406 ▲64.21 ▼0.06102.75 ▼6.2142.71 ▼4.50
Hashtags /wp-admin/options-general.php?page=hashtags-for-wp8711.6943.5849.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/hashtags-for-wp/includes/templates/hashtags-for-wp-admin.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=hashtags-for-wp
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=hashtags-for-wp 165 The specified value "initial" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can take inspiration from this readme.txt

hashtags-for-wp/hashtags-for-wp.php Passed 13 tests

The main PHP file in "Hashtags for WordPress" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
123 characters long description:
The plugin automatically searches for native tags within the post content and adds a linked hashtag symbol before each one.

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
There were no executable files found in this plugin159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP41914114
CSS17045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin