84% full-twitter-integration

Code Review | Full Twitter Integration

WordPress plugin Full Twitter Integration scored84%from 54 tests.

About plugin

  • Plugin page: full-twitter-inte...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 19
  • Update frequency: every 33.0 days
  • Top authors: agrimbautomas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.80ms] Passed 4 tests

This is a short check of server-side resources used by Full Twitter Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.14 ▲2.89
Dashboard /wp-admin3.36 ▲0.0656.58 ▼1.54
Posts /wp-admin/edit.php3.47 ▲0.1250.31 ▼0.58
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.04 ▼19.96
Media Library /wp-admin/upload.php3.28 ▲0.0541.20 ▲4.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_fti_slider_widget
widget_fti_tweets_by_hashtag_widget
widget_theysaidso_widget
widget_fti_user_tweets_widget
widget_fti_tweets_by_user_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Full Twitter Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.46 ▼1.278.13 ▲6.1446.03 ▲1.32
Dashboard /wp-admin2,211 ▲315.63 ▼0.0785.34 ▼8.0141.05 ▼4.36
Posts /wp-admin/edit.php2,116 ▲132.00 ▲0.0337.70 ▼2.1331.72 ▼6.26
Add New Post /wp-admin/post-new.php1,540 ▲1423.76 ▲0.65648.80 ▲0.6554.48 ▲2.28
Media Library /wp-admin/upload.php1,413 ▲134.18 ▼0.0597.70 ▼9.3244.04 ▼3.21

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_fti_tweets_by_hashtag_widget
    • widget_fti_user_tweets_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_fti_tweets_by_user_widget
    • theysaidso_admin_options
    • widget_fti_slider_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/full-twitter-integration/twitteroauth-master/src/HmacSha1.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-tweets-by-user-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-tweets-by-hashtag-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/full-twitter-integration/includes/class-full-twitter-api.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-user-tweets-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-tweets-by-timeline.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/full-twitter-integration/twitteroauth-master/src/TwitterOAuth.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: integration, api, tweets, social, twitter...

full-twitter-integration/full-twitter-integration.php Passed 13 tests

The main PHP file in "Full Twitter Integration" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Use all the twitter APIs functions in your website. Search by HASHTAGS, get the FOLLOWERS, display your TWEETS and more.

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
There were no executable files found in this plugin2,824 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP335749362,071
CSS210722548
JavaScript1253119
JSON10034
Markdown27025
YAML10017
XML11010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.54
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes28
▷ Abstract classes13.57%
▷ Concrete classes2796.43%
▷ Final classes00.00%
Methods180
▷ Static methods95.00%
▷ Public methods15686.67%
▷ Protected methods00.00%
▷ Private methods2413.33%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) admin/images/icon-256x256.png0.00KB0.00KB0.00%
admin/images/widget-mode.png25.75KB10.39KB▼ 59.64%
assets/icon-256x256.png31.63KB13.57KB▼ 57.11%
assets/screenshot-1.png18.79KB7.99KB▼ 57.48%
assets/banner-772x250.png31.12KB14.79KB▼ 52.47%