79% rss-for-yandex-zen

Code Review | RSS for Yandex Zen

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

About plugin

  • Plugin page: rss-for-yandex-zen
  • Plugin version: 1.28
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2017
  • Latest release: Oct 30, 2022
  • Number of updates: 64
  • Update frequency: every 29.9 days
  • Top authors: Flector (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

6,000+ active /62,716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼4.31ms] Passed 4 tests

Analyzing server-side resources used by RSS for Yandex Zen
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3049.82 ▲5.61
Dashboard /wp-admin3.60 ▲0.3049.63 ▼5.61
Posts /wp-admin/edit.php3.72 ▲0.3653.00 ▲0.51
Add New Post /wp-admin/post-new.php6.19 ▲0.3087.59 ▼15.00
Media Library /wp-admin/upload.php3.53 ▲0.2939.62 ▲2.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
yzen_options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for RSS for Yandex Zen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.37 ▼0.211.86 ▼0.1641.21 ▼1.69
Dashboard /wp-admin2,199 ▲225.65 ▲0.0494.22 ▼0.1542.10 ▲0.79
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0039.42 ▼0.3535.12 ▼1.99
Add New Post /wp-admin/post-new.php6,498 ▲4,95619.17 ▲0.98920.89 ▲257.0166.16 ▲7.84
Media Library /wp-admin/upload.php1,404 ▲104.25 ▲0.03102.15 ▲1.1841.47 ▼6.59
Яндекс.Дзен /wp-admin/rss-for-yandex-zen.php260.440.1214.90

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 add_action() in wp-content/plugins/rss-for-yandex-zen/rss-for-yandex-zen.php:53

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/rss-for-yandex-zen.php
    • > Network (severe)
    wp-admin/rss-for-yandex-zen.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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: yandex zen, yandex, feed, rss, zen

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

Analyzing the main PHP file in "RSS for Yandex Zen" version 1.28
76 characters long description:
Создание RSS-ленты для сервиса Яндекс.Дзен.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,606 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1135861,183
JavaScript39027421
CSS1272

PHP code Passed 2 tests

This is a short overview 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 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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon_coffee.png5.14KB5.32KB0.00%
img/video.png0.12KB0.12KB0.00%