84% tweetscroll-widget

Code Review | TweetScroll Widget

WordPress plugin TweetScroll Widget scored84%from 54 tests.

About plugin

  • Plugin page: tweetscroll-widget
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Jun 26, 2013
  • Latest release: Aug 19, 2015
  • Number of updates: 41
  • Update frequency: every 19.1 days
  • Top authors: pixel-industry (53.66%)vmrkela (48.78%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /40,762 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by TweetScroll Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.04 ▼2.45
Dashboard /wp-admin3.32 ▲0.0150.53 ▼2.60
Posts /wp-admin/edit.php3.37 ▲0.0149.83 ▼0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.51 ▼15.03
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▲2.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_pi_tweet_scroll
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for TweetScroll Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.42 ▼0.948.68 ▲6.3845.90 ▼0.10
Dashboard /wp-admin2,198 ▲215.66 ▲0.1292.22 ▼10.6441.53 ▼1.60
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0237.55 ▲0.0536.09 ▲2.04
Add New Post /wp-admin/post-new.php1,545 ▲1423.40 ▲0.22619.93 ▼48.1451.81 ▼4.08
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.03102.78 ▼9.7142.61 ▼12.04

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_pi_tweet_scroll
    • 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 | A shallow check that no server-side errors were triggered
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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/tweetscroll-widget/widget-tweetscroll.php:17

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

tweetscroll-widget/widget-tweetscroll.php 92% from 13 tests

The main PHP file in "TweetScroll Widget" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tweetscroll-widget.php" instead of "widget-tweetscroll.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,250 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3262414983
JavaScript15734240
CSS17127

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.31
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity20.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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/tweet.png1.25KB0.50KB▼ 59.75%