73% inline-tweets

Code Review | Inline Tweets

WordPress plugin Inline Tweets scored73%from 54 tests.

About plugin

  • Plugin page: inline-tweets
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.8
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Jan 11, 2014
  • Number of updates: 11
  • Update frequency: every 25.9 days
  • Top authors: mdjekic (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,526 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.01MB] [CPU: ▼10.81ms] Passed 4 tests

This is a short check of server-side resources used by Inline Tweets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.13 ▼21.68
Dashboard /wp-admin3.31 ▲0.0150.81 ▼3.11
Posts /wp-admin/edit.php3.36 ▲0.0148.13 ▼7.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.18 ▼11.16
Media Library /wp-admin/upload.php3.24 ▲0.0138.58 ▼0.59
Inline Tweets /wp-admin/options-general.php?page=inline-tweets-settings3.1831.44

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
inline_tweets_options

Browser metrics Passed 4 tests

Checking browser requirements for Inline Tweets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3913.19 ▼1.232.23 ▲0.0944.20 ▼0.99
Dashboard /wp-admin2,228 ▲255.88 ▲0.97101.76 ▼2.5140.17 ▼5.27
Posts /wp-admin/edit.php2,101 ▼22.02 ▲0.0536.82 ▼4.8636.22 ▼0.03
Add New Post /wp-admin/post-new.php1,548 ▲323.14 ▲0.04632.32 ▼24.5561.18 ▲3.46
Media Library /wp-admin/upload.php1,404 ▲14.24 ▼0.00101.88 ▼5.5244.71 ▼3.02
Inline Tweets /wp-admin/options-general.php?page=inline-tweets-settings1,0212.0221.8827.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • inline_tweets_options
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=inline-tweets-settings
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/inline-tweets/php/settings.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/inline-tweets/php/settings.php on line 91
    • > PHP Notice
      Undefined variable: inline_tweets_config in wp-content/plugins/inline-tweets/php/settings.php on line 105
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/inline-tweets/php/settings.php on line 105
    • > PHP Notice
      Trying to get property 'time_formats' of non-object in wp-content/plugins/inline-tweets/php/settings.php on line 91
    • > PHP Fatal error
      Uncaught Error: Class 'InlineTweets\\Snippet' not found in wp-content/plugins/inline-tweets/core/SingleTweetSnippet.php:32
    • > PHP Notice
      Undefined variable: inline_tweets_config in wp-content/plugins/inline-tweets/php/settings.php on line 91
    • > PHP Notice
      Trying to get property 'styles' of non-object in wp-content/plugins/inline-tweets/php/settings.php on line 105
    • > PHP Fatal error
      Uncaught Error: Class 'InlineTweets\\Snippet' not found in wp-content/plugins/inline-tweets/core/LatestTweetsSnippet.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: inline, tweets, tweeter, styles, embed

inline-tweets/inline-tweets.php Passed 13 tests

The entry point to "Inline Tweets" version 2.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
Embed latest tweet(s) or a specific tweet in any page, post or text widget and apply your custom styles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,088 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP73297581,017
CSS2144234
JavaScript2135733
JSON1104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.60
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes320.00%
▷ Concrete classes1280.00%
▷ Final classes00.00%
Methods92
▷ Static methods1111.96%
▷ Public methods6772.83%
▷ Protected methods1516.30%
▷ Private methods1010.87%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected