78% twitter-real-time-search-scrolling

Code Review | Twitter real time search scrolling

WordPress plugin Twitter real time search scrolling scored78%from 54 tests.

About plugin

  • Plugin page: twitter-real-time...
  • Plugin version: 7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.6
  • WordPress version: 6.3.1
  • First release: Aug 12, 2009
  • Latest release: May 18, 2013
  • Number of updates: 27
  • Update frequency: every 70.6 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /12,449 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.44ms] Passed 4 tests

A check of server-side resources used by Twitter real time search scrolling
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.08 ▲0.55
Dashboard /wp-admin3.35 ▲0.0051.17 ▼12.36
Posts /wp-admin/edit.php3.40 ▲0.0455.32 ▲9.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.51 ▲0.86
Media Library /wp-admin/upload.php3.27 ▲0.0436.53 ▲1.21
Twitter real time search scrolling /wp-admin/options-general.php?page=twitter-real-time-search-scrolling/twitter-real-time-search-scrolling.php3.2130.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
can_compress_scripts
twitterreal_display
widget_recent-posts
widget_theysaidso_widget
db_upgraded
twitterreal_title
theysaidso_admin_options
twitterreal_length
twitterreal_height
...

Browser metrics Passed 4 tests

An overview of browser requirements for Twitter real time search scrolling
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.26 ▼1.132.02 ▲0.3240.79 ▼1.49
Dashboard /wp-admin2,210 ▲255.86 ▲0.05106.25 ▲1.3542.80 ▼3.27
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0041.76 ▲4.6736.41 ▲5.58
Add New Post /wp-admin/post-new.php1,536 ▼623.25 ▲5.15668.89 ▲52.5755.07 ▲1.15
Media Library /wp-admin/upload.php1,395 ▲44.21 ▲0.0293.27 ▼15.0142.11 ▼4.74
Twitter real time search scrolling /wp-admin/options-general.php?page=twitter-real-time-search-scrolling/twitter-real-time-search-scrolling.php8242.0626.9125.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 11 options
    • theysaidso_admin_options
    • twitterreal_display
    • twitterreal_length
    • twitterreal_title
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • twitterreal_height
    • db_upgraded
    • ...

Smoke tests 50% 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 server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=twitter-real-time-search-scrolling/twitter-real-time-search-scrolling.php
    • > Notice in wp-content/plugins/twitter-real-time-search-scrolling/twitter-real-time-search-scrolling.php+51
    Undefined index: twitterreal_submit

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-real-time-search-scrolling/twitter-real-time-search-scrolling.php:285

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

twitter-real-time-search-scrolling/twitter-real-time-search-scrolling.php Passed 13 tests

The principal PHP file in "Twitter real time search scrolling" v. 7.0 is loaded by WordPress automatically on each request
86 characters long description:
This plug-in will scroll the most recent twittered contents from your twitter account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin272 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14115235
JavaScript172437

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin