78% feedburner-alternative-and-rss-redirect

Code Review | RSS Redirect & Feedburner Alternative

WordPress plugin RSS Redirect & Feedburner Alternative scored78%from 54 tests.

About plugin

  • Plugin page: feedburner-altern...
  • Plugin version: 3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Nov 1, 2023
  • Number of updates: 99
  • Update frequency: every 31.5 days
  • Top authors: s-feeds (94.95%)iclyde (6.06%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active /67,592 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.62MB] [CPU: ▲9.71ms] Passed 4 tests

Analyzing server-side resources used by RSS Redirect & Feedburner Alternative
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6351.00 ▲11.21
Dashboard /wp-admin3.92 ▲0.6161.01 ▲15.20
Posts /wp-admin/edit.php4.02 ▲0.6662.30 ▲16.14
Add New Post /wp-admin/post-new.php6.52 ▲0.6398.25 ▼3.73
Media Library /wp-admin/upload.php3.85 ▲0.6155.23 ▲17.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 192 new files
Database: 1 new table, 13 new options
New tables
wp_sfm_redirects
New WordPress options
sfm_activate
can_compress_scripts
SFM_pluginVersion
theysaidso_admin_options
widget_sfm-widget
SFM_RatingDiv
widget_recent-comments
analyst_cache
db_upgraded
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by RSS Redirect & Feedburner Alternative
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,095 ▲33414.34 ▲0.071.61 ▼0.0935.97 ▼7.26
Dashboard /wp-admin2,481 ▲3045.67 ▲0.08100.71 ▲8.78110.50 ▲70.91
Posts /wp-admin/edit.php2,407 ▲3102.03 ▲0.0440.60 ▲5.0146.42 ▲10.46
Add New Post /wp-admin/post-new.php1,825 ▲28821.52 ▲3.46673.27 ▲29.1447.23 ▼13.35
Media Library /wp-admin/upload.php1,692 ▲2924.28 ▲0.08106.01 ▲8.2379.77 ▲35.99

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: 10 options
    • widget_theysaidso_widget
    • analyst_cache
    • widget_sfm-widget
    • theysaidso_admin_options
    • SFM_installDate
    • can_compress_scripts
    • widget_recent-comments
    • SFM_RatingDiv
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/templates/forms/install.php
    • > /wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/templates/optout.php
    • > /wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/templates/forms/deactivate.php
    • > /wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/templates/optin.php
  • 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function getPluginName() on null in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/templates/notice.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/Http/Requests/InstallRequest.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\CacheContract' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/Cache/DatabaseCache.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/Http/Requests/OptOutRequest.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\RequestContract' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/Http/Requests/AbstractLoggerRequest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/libs/sfmWidget.class.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Core\\AbstractFactory' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/Notices/NoticeFactory.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/Http/CurlHttpClient.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\RequestorContract' not found in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/src/ApiRequestor.php:9
    • > PHP Notice
      Undefined variable: pluginToInstall in wp-content/plugins/feedburner-alternative-and-rss-redirect/analyst/templates/forms/install.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

feedburner-alternative-and-rss-redirect/rss_redirect.php 92% from 13 tests

This is the main PHP file of "RSS Redirect & Feedburner Alternative" version 3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("feedburner-alternative-and-rss-redirect.php" instead of "rss_redirect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6,238 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
PHP691,0191,5763,955
CSS78111983
SVG3002891
JavaScript43926409

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.94
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces9
Interfaces6
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes00.00%
Methods231
▷ Static methods2410.39%
▷ Public methods20187.01%
▷ Protected methods104.33%
▷ Private methods208.66%
Functions31
▷ Named functions1754.84%
▷ Anonymous functions1445.16%
Constants11
▷ Global constants872.73%
▷ Class constants327.27%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
65 PNG files occupy 0.50MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/colorpicker/images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
images/logo1.png1.96KB0.97KB▼ 50.50%
images/finallogo.png14.61KB0.77KB▼ 94.71%
modules/banner/views/projects/fit/imgs/face1.png1.77KB1.72KB▼ 2.97%
images/3634.png16.44KB1.20KB▼ 92.68%