72% ultimate-twitter-feed

Code Review | Ultimate Twitter Feed

WordPress plugin Ultimate Twitter Feed scored72%from 54 tests.

About plugin

  • Plugin page: ultimate-twitter-...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Nov 6, 2017
  • Number of updates: 38
  • Update frequency: every 5.4 days
  • Top authors: omarkasem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.40MB] [CPU: ▼16.43ms] Passed 4 tests

Server-side resources used by Ultimate Twitter Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3442.13 ▲5.62
Dashboard /wp-admin3.62 ▲0.2847.03 ▼12.10
Posts /wp-admin/edit.php3.67 ▲0.3253.52 ▲7.35
Add New Post /wp-admin/post-new.php3.43 ▼2.4539.90 ▼61.62
Media Library /wp-admin/upload.php3.48 ▲0.2537.05 ▲2.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Twitter Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲16113.65 ▼0.738.66 ▲6.7144.21 ▲3.53
Dashboard /wp-admin2,228 ▲465.08 ▼0.7798.98 ▼5.1539.26 ▼0.68
Posts /wp-admin/edit.php2,114 ▲282.23 ▲0.2039.34 ▲2.2135.04 ▲1.03
Add New Post /wp-admin/post-new.php1,533 ▲1917.73 ▲0.15610.08 ▼75.2642.26 ▼13.96
Media Library /wp-admin/upload.php1,413 ▲314.34 ▲0.1199.67 ▼0.8441.48 ▼3.12
Ultimate Tiwtter Feed /wp-admin/ultimate-twitter-feed.php260.440.0914.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_utf_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultimate-twitter-feed/admin/partials/ultimate-twitter-feed-admin-display.php
    • > /wp-content/plugins/ultimate-twitter-feed/public/partials/ultimate-twitter-feed-public-display.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/ultimate-twitter-feed/admin/partials/utf-developers-display.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-twitter-feed/admin/partials/utf-extra-options-display.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-twitter-feed/admin/partials/utf-cache-display.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/ultimate-twitter-feed/admin/partials/utf-shortcodes-display.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-twitter-feed/public/class-ultimate-twitter-feed-public.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ultimate-twitter-feed/admin/partials/utf-keys-and-tokens-display.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/ultimate-twitter-feed.php
    • > Network (severe)
    wp-admin/ultimate-twitter-feed.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add a description for screenshot #7 in ultimate-twitter-feed/assets to your readme.txt
  • Donate link: Invalid URI ("fb.com/omarstan2")
You can look at the official readme.txt

ultimate-twitter-feed/ultimate-twitter-feed.php 92% from 13 tests

The primary PHP file in "Ultimate Twitter Feed" version 1.7.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 457 characters long)

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
There were no executable files found in this plugin4,520 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP193998471,682
JavaScript1277116
CSS32351

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.58
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes210.53%
▷ Concrete classes1789.47%
▷ Final classes00.00%
Methods117
▷ Static methods1210.26%
▷ Public methods9480.34%
▷ Protected methods21.71%
▷ Private methods2117.95%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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