84% rss-feed-podcast-by-categories

Code Review | RSS Feed Podcast by Categories

WordPress plugin RSS Feed Podcast by Categories scored84%from 54 tests.

About plugin

  • Plugin page: rss-feed-podcast-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.4.1
  • WordPress version: 6.3.1
  • First release: May 29, 2020
  • Latest release: Jun 8, 2020
  • Number of updates: 32
  • Update frequency: every 0.3 days
  • Top authors: carlsansfa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.24ms] Passed 4 tests

An overview of server-side resources used by RSS Feed Podcast by Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.77 ▲0.72
Dashboard /wp-admin3.32 ▲0.0145.48 ▼1.04
Posts /wp-admin/edit.php3.37 ▲0.0147.91 ▲0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.45 ▼3.55
Media Library /wp-admin/upload.php3.24 ▲0.0135.47 ▼1.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSS Feed Podcast by Categories
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.63 ▼0.671.89 ▲0.0740.09 ▼1.03
Dashboard /wp-admin2,203 ▲125.84 ▲0.9697.65 ▼8.0340.32 ▼1.99
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0139.32 ▲2.2434.19 ▼1.99
Add New Post /wp-admin/post-new.php1,544 ▲2518.51 ▼4.66664.10 ▼16.6360.93 ▼2.29
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.0495.63 ▼10.8543.59 ▼0.66

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rss-feed-podcast-by-categories/rssreader.php:68
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rss-feed-podcast-by-categories/rssreadershortcode.php on line 154
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rss-feed-podcast-by-categories/rssreadershortcode.php on line 146
    • > PHP Notice
      Undefined variable: wporg_atts in wp-content/plugins/rss-feed-podcast-by-categories/rssreadershortcode.php on line 146
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/rss-feed-podcast-by-categories/rssreadershortcode.php:15
    • > PHP Notice
      Undefined variable: wporg_atts in wp-content/plugins/rss-feed-podcast-by-categories/rssreadershortcode.php on line 154

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
4 plugin tags: category, feed, rss, podcast

rss-feed-podcast-by-categories/rssreader.php 92% from 13 tests

"RSS Feed Podcast by Categories" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rss-feed-podcast-by-categories.php" instead of "rssreader.php")

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
Success! There were no dangerous files found in this plugin5,965 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82,2336,9165,511
CSS22255174
PHP23430174
SVG40483
HTML13023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected