78% twitter-hashtag-blaster

Code Review | Twitter Hashtag Blaster

WordPress plugin Twitter Hashtag Blaster scored78%from 54 tests.

About plugin

  • Plugin page: twitter-hashtag-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Feb 25, 2014
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: zackproser (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,812 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.04MB] [CPU: ▼0.37ms] Passed 4 tests

This is a short check of server-side resources used by Twitter Hashtag Blaster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.22 ▼1.39
Dashboard /wp-admin3.35 ▲0.0449.05 ▼0.00
Posts /wp-admin/edit.php3.40 ▲0.0447.09 ▼1.06
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.14 ▲0.96
Media Library /wp-admin/upload.php3.27 ▲0.0435.34 ▲2.61
Twitter Hashtag Blaster /wp-admin/options-general.php?page=twitter_hashtag_blaster3.2329.97

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

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

Browser metrics Passed 4 tests

Twitter Hashtag Blaster: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.101.69 ▲0.1442.39 ▼2.43
Dashboard /wp-admin2,210 ▲254.81 ▼0.02104.25 ▼14.0238.55 ▼6.33
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0234.74 ▼5.3633.32 ▼3.13
Add New Post /wp-admin/post-new.php1,545 ▲323.23 ▲0.21593.17 ▼71.4447.25 ▼5.47
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0294.91 ▼13.9441.53 ▼8.31
Twitter Hashtag Blaster /wp-admin/options-general.php?page=twitter_hashtag_blaster7261.536.7823.49

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=twitter_hashtag_blaster
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/twitter-hashtag-blaster/templates/settings.php on line 24 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/twitter-hashtag-blaster/templates/settings.php(24): do_settings_fields()
    #1 wp-content/plugins/twitter-hashtag-blaster/settings.php(125): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): Twitter_Hashtag_Blaster_Settings->twitter_hashtag_blaster_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/twitter-hashtag-blaster/templates/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/twitter-hashtag-blaster/twitter_hashtag_blaster.php:158

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bitly, twitter, traffic, hashtag, shortlink

twitter-hashtag-blaster/twitter_hashtag_blaster.php 85% from 13 tests

The primary PHP file in "Twitter Hashtag Blaster" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("twitter-hashtag-blaster.php" instead of "twitter_hashtag_blaster.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 412 characters long)

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 detected262 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP410263249
CSS16013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.73MB with 0.54MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/checkmark.png3.17KB0.35KB▼ 88.93%
img/hashtag-blaster-pro-logo.png307.33KB76.66KB▼ 75.06%
img/hashtag-blaster-logo.png296.92KB73.87KB▼ 75.12%
img/blue-pattern.png135.08KB57.52KB▼ 57.42%