10% timeline-twitter-feed

Code Review | Timeline Twitter Feed

WordPress plugin Timeline Twitter Feed scored10%from 54 tests.

About plugin

  • Plugin page: timeline-twitter-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Jun 19, 2014
  • Latest release: Sep 4, 2015
  • Number of updates: 23
  • Update frequency: every 19.3 days
  • Top authors: ezraverheijen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /13,146 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/timeline-twitter-feed/timeline-twitter-feed.php+59
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.50MB] [CPU: ▼28.08ms] Passed 4 tests

Server-side resources used by Timeline Twitter Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4440.84 ▲2.97
Dashboard /wp-admin3.44 ▲0.1430.12 ▼16.88
Posts /wp-admin/edit.php3.45 ▲0.0927.53 ▼26.14
Add New Post /wp-admin/post-new.php3.44 ▼2.4427.18 ▼60.72
Media Library /wp-admin/upload.php3.44 ▲0.2224.82 ▼8.59
Timeline Twitter Feed /wp-admin/options-general.php?page=timeline-twitter-feed3.4526.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 13 new options
New WordPress options
ttf_hash_keys
ttf_feed_approval
ttf_advanced
db_upgraded
ttf_help
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_twitter_feed_widget
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timeline Twitter Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14714.16 ▼0.2732.05 ▲30.2943.75 ▲3.90
Dashboard /wp-admin2,238 ▲505.09 ▲0.21115.19 ▲11.0541.03 ▼0.02
Posts /wp-admin/edit.php2,130 ▲412.30 ▲0.2943.62 ▲8.3435.76 ▼2.77
Add New Post /wp-admin/post-new.php1,548 ▲2918.38 ▼4.69608.90 ▼4.2333.54 ▼18.47
Media Library /wp-admin/upload.php1,425 ▲404.48 ▲0.2898.82 ▲0.1341.46 ▲0.88
Timeline Twitter Feed /wp-admin/options-general.php?page=timeline-twitter-feed1,4522.2835.9134.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/timeline-twitter-feed/lib/class-webdevs-settings-api.php+115
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_twitter_feed_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=timeline-twitter-feed
    • > Deprecated in wp-content/plugins/timeline-twitter-feed/lib/class-webdevs-settings-api.php+115
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/timeline-twitter-feed/includes/class-timeline-twitter-feed-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 need to be fixed: The official readme.txt is a good inspiration

timeline-twitter-feed/timeline-twitter-feed.php Passed 13 tests

"Timeline Twitter Feed" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Timeline Twitter Feed let's you output your timeline feed and multiple hashtags into your WordPress site as flat HTML.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,932 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP113935011,607
PO File196112250
CSS212055
JavaScript14620

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.70
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods106
▷ Static methods76.60%
▷ Public methods9387.74%
▷ Protected methods1211.32%
▷ Private methods10.94%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants45
▷ Global constants00.00%
▷ Class constants45100.00%
▷ Public constants45100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin