10% ultimate-twitter-profile-widget

Code Review | Ultimate twitter profile widget

WordPress plugin Ultimate twitter profile widget scored 10% from 54 tests.

About plugin

  • Plugin page: ultimate-twitter-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2012
  • Latest release: Dec 18, 2013
  • Number of updates: 25
  • Update frequency: every 17.0 days
  • Top authors: dyiosah (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 14,859 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php+467
    Undefined variable: after_widget

Server metrics [RAM: ▼1.77MB] [CPU: ▼54.59ms] Passed 4 tests

Server-side resources used by Ultimate twitter profile widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.254.43 ▼42.31
Dashboard /wp-admin2.23 ▼1.075.26 ▼42.89
Posts /wp-admin/edit.php2.23 ▼1.126.48 ▼39.43
Add New Post /wp-admin/post-new.php2.23 ▼3.655.70 ▼93.71
Media Library /wp-admin/upload.php2.23 ▼1.005.74 ▼27.24
Ultimate Twitter Profile Widget /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php2.239.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 18 new options
New WordPress options
utwp_tweet_text
utwp_credits
can_compress_scripts
utwp_username
utwp_links
db_upgraded
utwp_width
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate twitter profile widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.161.51 ▼0.2639.97 ▼3.44
Dashboard /wp-admin2,207 ▲195.85 ▲0.98111.48 ▲10.4443.67 ▼2.91
Posts /wp-admin/edit.php2,096 ▲72.13 ▲0.1138.41 ▼1.3235.23 ▼1.81
Add New Post /wp-admin/post-new.php1,545 ▲1617.94 ▼0.40604.56 ▼42.4559.32 ▲2.96
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.0897.67 ▼5.5444.45 ▲0.42
Ultimate Twitter Profile Widget /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php1,0092.0528.6948.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php+467
    Undefined variable: after_widget
  • This plugin does not fully uninstall, leaving 18 options in the database
    • utwp_tweet_bg
    • widget_theysaidso_widget
    • db_upgraded
    • utwp_links
    • utwp_credits
    • widget_recent-posts
    • utwp_shell_bg
    • utwp_shell_text
    • utwp_height
    • widget_recent-comments
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php
    • > Notice in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php+467
    Undefined variable: after_widget
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php
    • > Notice in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php+298
    Undefined index: utwp_tweet_button_place
    • > GET request to /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php
    • > Notice in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php+299
    Undefined index: utwp_tweet_button_style
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php
    • > Notice in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php+346
    Undefined variable: icon_url

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/ultimate-twitter-profile-widget/twitter_profile_widget.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=ultimate-twitter-profile-widget/twitter_profile_widget.php
    • > Network (severe)
    wp-content/plugins/twitter-goodies/jscolor.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Main menu settings), #2 (the widget)
The official readme.txt might help

ultimate-twitter-profile-widget/twitter_profile_widget.php 85% from 13 tests

"Ultimate twitter profile widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-twitter-profile-widget.php" instead of "twitter_profile_widget.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 287 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript112834678
PHP12024461

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin