10% twitter-feeds

Code Review | Twitter Feeds

WordPress plugin Twitter Feeds scored 10% from 54 tests.

About plugin

  • Plugin page: twitter-feeds
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Dec 28, 2013
  • Number of updates: 9
  • Update frequency: every 80.4 days
  • Top authors: viaviwebtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 4,134 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/twitter-feeds/twitter-feeds.php+608
    Methods with the same name as their class will not be constructors in a future version of PHP; VIAVI_Twitter_Widget has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼55.29ms] Passed 4 tests

This is a short check of server-side resources used by Twitter Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.296.06 ▼37.75
Dashboard /wp-admin2.19 ▼1.126.49 ▼40.73
Posts /wp-admin/edit.php2.19 ▼1.176.80 ▼45.15
Add New Post /wp-admin/post-new.php2.19 ▼3.705.73 ▼97.52
Media Library /wp-admin/upload.php2.19 ▼1.046.49 ▼31.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Twitter Feeds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.44 ▼1.141.94 ▲0.1343.93 ▼4.36
Dashboard /wp-admin2,266 ▲785.07 ▼0.84100.72 ▼5.6978.41 ▲34.95
Posts /wp-admin/edit.php2,118 ▲262.28 ▲0.2938.14 ▼4.7433.02 ▼2.16
Add New Post /wp-admin/post-new.php1,545 ▲3118.36 ▲0.72608.02 ▼47.7140.53 ▼19.48
Media Library /wp-admin/upload.php1,412 ▲214.42 ▲0.21100.11 ▼15.2372.36 ▲25.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/twitter-feeds/twitter-feeds.php+608
    Methods with the same name as their class will not be constructors in a future version of PHP; VIAVI_Twitter_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_twitter_feeds_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_action() in wp-content/plugins/twitter-feeds/twitter-feeds.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === twitter-feeds === )
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Screen from WordPress Admin.), #2 (Widget Setting example in admin.), #3 (Widget view on front side.)
You can look at the official readme.txt

twitter-feeds/twitter-feeds.php Passed 13 tests

Analyzing the main PHP file in "Twitter Feeds" version 1.0.0
137 characters long description:
Twitter feeds that outputs your latest tweets in HTML into any post, page or sidebar widget. Customizable,Colorful and easy to configure!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,028 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3577353974
CSS11027
JavaScript10327

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.31
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png15.45KB6.50KB▼ 57.93%
screenshot-1.png147.29KB49.79KB▼ 66.19%
css/twitter_icon.png0.72KB0.73KB0.00%
screenshot-3.png74.46KB28.50KB▼ 61.73%