79% rss-for-yandex-turbo

Code Review | RSS for Yandex Turbo

WordPress plugin RSS for Yandex Turbo scored79%from 54 tests.

About plugin

  • Plugin page: rss-for-yandex-turbo
  • Plugin version: 1.32
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2017
  • Latest release: Oct 30, 2022
  • Number of updates: 95
  • Update frequency: every 18.9 days
  • Top authors: Flector (100%)

Code review

54 tests

User reviews

134 reviews

Install metrics

40,000+ active /361,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.91MB] [CPU: ▲1.75ms] Passed 4 tests

Server-side resources used by RSS for Yandex Turbo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.37 ▲0.9145.55 ▼0.60
Dashboard /wp-admin4.27 ▲0.9253.97 ▼9.22
Posts /wp-admin/edit.php4.32 ▲0.9657.65 ▲6.38
Add New Post /wp-admin/post-new.php6.82 ▲0.93118.29 ▲19.41
Media Library /wp-admin/upload.php4.13 ▲0.9044.72 ▲10.44

Server storage [IO: ▲0.63MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
yturbo_options

Browser metrics Passed 4 tests

An overview of browser requirements for RSS for Yandex Turbo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.30 ▼0.905.34 ▲3.5443.12 ▼0.95
Dashboard /wp-admin2,230 ▲274.87 ▼0.95109.27 ▼5.9748.51 ▲3.89
Posts /wp-admin/edit.php2,127 ▲272.00 ▼0.0237.86 ▲3.1238.38 ▲5.99
Add New Post /wp-admin/post-new.php6,656 ▲5,10122.48 ▲4.18961.09 ▲319.3272.63 ▲15.67
Media Library /wp-admin/upload.php1,406 ▲94.19 ▼0.03106.68 ▼0.7053.83 ▲9.33
Яндекс.Турбо /wp-admin/rss-for-yandex-turbo.php260.440.1014.03

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rss-for-yandex-turbo/rss-for-yandex-turbo.php:13

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)
These are user-side errors you should fix
    • > GET request to /wp-admin/rss-for-yandex-turbo.php
    • > Network (severe)
    wp-admin/rss-for-yandex-turbo.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: yandex, yandex turbo, rss, feed, turbo

rss-for-yandex-turbo/rss-for-yandex-turbo.php Passed 13 tests

"RSS for Yandex Turbo" version 1.32's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
Создание RSS-ленты для сервиса Яндекс.Турбо.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,921 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54193732,631
PHP36223,990653
CSS374637

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity59.50
▷ Minimum class complexity52.00
▷ Maximum class complexity67.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods46
▷ Static methods919.57%
▷ Public methods3371.74%
▷ Protected methods919.57%
▷ Private methods48.70%
Functions61
▷ Named functions5793.44%
▷ Anonymous functions46.56%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/feedback/vkontakte.png0.67KB0.69KB0.00%
img/feedback/callback.png0.68KB0.68KB0.14%
img/feedback/telegram.png0.65KB0.65KB0.00%
img/feedback/whatsapp.png0.89KB0.91KB0.00%
img/vk.png0.57KB0.60KB0.00%