89% category-specific-rss-feed-menu

Code Review | Category Specific RSS feed Subscription

WordPress plugin Category Specific RSS feed Subscription scored89%from 54 tests.

About plugin

  • Plugin page: category-specific...
  • Plugin version: v2.3...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 28, 2008
  • Latest release: Jul 25, 2023
  • Number of updates: 40
  • Update frequency: every 133.8 days
  • Top authors: mra13 (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

5,000+ active /134,154 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼3.94ms] Passed 4 tests

This is a short check of server-side resources used by Category Specific RSS feed Subscription
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3546.62 ▲7.78
Dashboard /wp-admin3.67 ▲0.3653.21 ▲1.09
Posts /wp-admin/edit.php3.72 ▲0.3650.41 ▼4.02
Add New Post /wp-admin/post-new.php6.19 ▲0.3090.93 ▼10.75
Media Library /wp-admin/upload.php3.53 ▲0.3035.93 ▼2.08
Category Specific RSS /wp-admin/options-general.php?page=category-specific-rss-feed-menu/category-specific-rss-wp.php3.5038.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options
cat_rss_custom
widget_recent-comments
cat_rss_all_aut
cat_rss_all_cat
rss_category_1_link
cat_rss_show_image_on_left
rss_widget_title_name
rss_category_1_name
theysaidso_admin_options
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Category Specific RSS feed Subscription
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.351.73 ▲0.0744.11 ▼1.37
Dashboard /wp-admin2,202 ▲225.62 ▼0.0191.85 ▼0.5342.99 ▲0.10
Posts /wp-admin/edit.php2,101 ▲42.00 ▼0.0233.77 ▼2.1536.18 ▼1.89
Add New Post /wp-admin/post-new.php1,539 ▲1120.97 ▼2.31670.25 ▼5.7354.92 ▼6.92
Media Library /wp-admin/upload.php1,401 ▲44.24 ▲0.15101.81 ▼25.7244.37 ▼3.29
Category Specific RSS /wp-admin/options-general.php?page=category-specific-rss-feed-menu/category-specific-rss-wp.php1,1112.0022.5127.75

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 14 options in the database
    • cat_rss_show_image_on_left
    • widget_theysaidso_widget
    • db_upgraded
    • cat_rss_custom
    • cat_rss_show_post_count
    • widget_recent-comments
    • rss_category_1_name
    • rss_widget_title_name
    • rss_category_1_link
    • cat_rss_all_aut
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

category-specific-rss-feed-menu/category-specific-rss-wp.php 85% from 13 tests

This is the main PHP file of "Category Specific RSS feed Subscription" version v2.3..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("category-specific-rss-feed-menu.php" instead of "category-specific-rss-wp.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "v2.3...")

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,714 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33002701,682
CSS11132

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity164.50
▷ Minimum class complexity131.00
▷ Maximum class complexity198.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants23100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
rss_icon_2.png1.35KB0.95KB▼ 29.81%
rss_small_icon.png0.58KB0.79KB0.00%