83% ray-social-feeds-for-twitter

Code Review | Ray Social Feeds For Twitter

WordPress plugin Ray Social Feeds For Twitter scored83%from 54 tests.

About plugin

  • Plugin page: ray-social-feeds-...
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Apr 21, 2022
  • Number of updates: 23
  • Update frequency: every 37.5 days
  • Top authors: raycreations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,530 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Ray Social Feeds For Twitter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.56 ▼5.31
Dashboard /wp-admin3.40 ▲0.0647.66 ▼30.84
Posts /wp-admin/edit.php3.45 ▲0.1047.82 ▼6.07
Add New Post /wp-admin/post-new.php6.00 ▲0.1195.28 ▼3.16
Media Library /wp-admin/upload.php3.32 ▲0.1035.43 ▼3.37
Ray Twitter Feeds /wp-admin/options-general.php?page=myctf-page3.2932.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 14 new options
New WordPress options
rsfft_style_options
rsfft_tweets_options
rsfft_customize_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
rsfft_settings_options
widget_recent-posts
rsfft_support_options
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ray Social Feeds For Twitter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18013.80 ▼0.4313.65 ▲11.7840.08 ▼3.63
Dashboard /wp-admin2,212 ▲274.92 ▼0.94111.35 ▲0.1739.98 ▼1.05
Posts /wp-admin/edit.php2,095 ▲32.02 ▲0.0442.51 ▲1.6934.54 ▼2.06
Add New Post /wp-admin/post-new.php1,533 ▲523.36 ▲5.14618.37 ▼10.3352.24 ▼2.48
Media Library /wp-admin/upload.php1,394 ▲124.24 ▲0.03100.15 ▲1.8044.03 ▼0.05
Ray Twitter Feeds /wp-admin/options-general.php?page=myctf-page9282.0133.0532.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_rsfft_tweets_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=myctf-page
    • > Deprecation (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: twitter feed, twitter widget, ray social feeds for twitter, twitter feeds, twitter gallery...

ray-social-feeds-for-twitter/my-custom-twitter-feed.php 69% from 13 tests

The principal PHP file in "Ray Social Feeds For Twitter" v. 1.2.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("Languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ray-social-feeds-for-twitter.php" instead of "my-custom-twitter-feed.php")
  • Domain Path: The domain path must begin with a forward slash character ("/Languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected5,241 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP142,1962,4674,384
CSS316765754
JavaScript570116103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity48.10
▷ Minimum class complexity3.00
▷ Maximum class complexity173.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods190
▷ Static methods15581.58%
▷ Public methods17994.21%
▷ Protected methods00.00%
▷ Private methods115.79%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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