84% twitter-hashtag-feed-widget

Code Review | Twitter Hashtag Feed Widget

WordPress plugin Twitter Hashtag Feed Widget scored84%from 54 tests.

About plugin

  • Plugin page: twitter-hashtag-f...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Feb 25, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: mclarty (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /5,293 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.00MB] [CPU: ▼4.15ms] Passed 4 tests

A check of server-side resources used by Twitter Hashtag Feed Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.71 ▼5.01
Dashboard /wp-admin3.31 ▼0.0349.01 ▼12.70
Posts /wp-admin/edit.php3.37 ▲0.0149.08 ▲2.65
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.38 ▲2.35
Media Library /wp-admin/upload.php3.24 ▲0.0135.90 ▼1.25

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Twitter Hashtag Feed Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.21 ▼1.171.85 ▼0.2740.65 ▼3.14
Dashboard /wp-admin2,218 ▲125.79 ▲0.91102.69 ▼4.5340.02 ▲2.24
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0338.97 ▲2.7436.32 ▲2.04
Add New Post /wp-admin/post-new.php1,547 ▲222.95 ▼0.42584.50 ▼69.2852.90 ▲4.52
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.0198.44 ▼4.7343.57 ▼2.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_twitter_hashtag_feed_widget
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-hashtag-feed-widget/twitter-hashtag-feed-widget.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === twitter-hashtag-feed-widget === )
The official readme.txt might help

twitter-hashtag-feed-widget/twitter-hashtag-feed-widget.php Passed 13 tests

The main PHP script in "Twitter Hashtag Feed Widget" version 1.0.2 is automatically included on every request by WordPress
82 characters long description:
A sidebar widget that creates a simple, clean Twitter feed of a specified hashtag.

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
Good job! No executable or dangerous file extensions detected741 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3195344741

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.38
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods80
▷ Static methods1012.50%
▷ Public methods6986.25%
▷ Protected methods22.50%
▷ Private methods911.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin