68% rss-antenna

Code Review | RSS Antenna

WordPress plugin RSS Antenna scored68%from 54 tests.

About plugin

  • Plugin page: rss-antenna
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 30, 2012
  • Latest release: Aug 3, 2017
  • Number of updates: 36
  • Update frequency: every 46.6 days
  • Top authors: hidaka.bizplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /38,473 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.36ms] Passed 4 tests

A check of server-side resources used by RSS Antenna
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.45 ▲3.26
Dashboard /wp-admin3.40 ▲0.1049.01 ▲1.47
Posts /wp-admin/edit.php3.52 ▲0.1649.21 ▲0.20
Add New Post /wp-admin/post-new.php5.98 ▲0.1086.38 ▼3.97
Media Library /wp-admin/upload.php3.33 ▲0.1034.92 ▼3.15
RSS Antenna設定 /wp-admin/options-general.php?page=rss-antenna/rss-antenna.php3.2932.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
rss_antenna_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSS Antenna
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.39 ▼0.031.68 ▲0.1745.24 ▲3.63
Dashboard /wp-admin2,196 ▲165.57 ▼0.0092.07 ▲4.8047.81 ▲5.28
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0334.74 ▼0.3036.48 ▼2.23
Add New Post /wp-admin/post-new.php1,544 ▲1822.70 ▼0.46672.60 ▼23.5457.86 ▲6.24
Media Library /wp-admin/upload.php1,398 ▲14.17 ▼0.01104.02 ▲3.4346.92 ▼1.32
RSS Antenna設定 /wp-admin/options-general.php?page=rss-antenna/rss-antenna.php9342.0023.2274.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/rss-antenna/rss-antenna.php+48
    rmdir(wp-content/uploads/rsscache/): Directory not empty
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • rss_antenna_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/rss-antenna/rss-antenna-view.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/rss-antenna/rss-antenna-view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rss-antenna/rss-antenna.php:78
    • > PHP Notice
      Undefined variable: info in wp-content/plugins/rss-antenna/rss-antenna-view.php on line 2
    • > PHP Notice
      Trying to get property 'items' of non-object in wp-content/plugins/rss-antenna/rss-antenna-view.php on line 2
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/rss-antenna/admin-view.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/rss-antenna/admin-view.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

rss-antenna/rss-antenna.php Passed 13 tests

The primary PHP file in "RSS Antenna" version 2.2.0 is used by WordPress to initiate all plugin functionality
120 characters long description:
Webサイトの更新情報をRSSから取得し更新日時の新しい順に一覧表示するプラグインです。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected582 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47927512
CSS10070

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity15.20
▷ Minimum class complexity5.00
▷ Maximum class complexity23.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods714.58%
▷ Public methods3675.00%
▷ Protected methods00.00%
▷ Private methods1225.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.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