78% newsletter-rss-block

Code Review | RSS Block for Newsletter

WordPress plugin RSS Block for Newsletter scored78%from 54 tests.

About plugin

  • Plugin page: newsletter-rss-block
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2020
  • Latest release: May 30, 2023
  • Number of updates: 15
  • Update frequency: every 61.4 days
  • Top authors: satollo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.15ms] Passed 4 tests

Analyzing server-side resources used by RSS Block for Newsletter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.25 ▲0.61
Dashboard /wp-admin3.31 ▲0.0147.51 ▼6.70
Posts /wp-admin/edit.php3.36 ▲0.0049.69 ▲5.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.59 ▲6.28
Media Library /wp-admin/upload.php3.23 ▲0.0036.96 ▲5.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for RSS Block for Newsletter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.271.83 ▲0.0641.21 ▼2.98
Dashboard /wp-admin2,209 ▲214.85 ▼1.04113.10 ▲10.2844.01 ▼0.43
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0141.06 ▲4.4435.16 ▼2.89
Add New Post /wp-admin/post-new.php1,529 ▲918.10 ▼5.11587.35 ▼61.6671.97 ▲18.28
Media Library /wp-admin/upload.php1,382 ▼04.19 ▼0.1095.47 ▼3.9541.63 ▼3.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/newsletter-rss-block/rss/block.php
  • 5× 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/newsletter-rss-block/index.php:20
    • > PHP Warning
      array_merge(): Expected parameter 2 to be an array, null given in wp-content/plugins/newsletter-rss-block/rss/block.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to a member function url() on null in wp-content/plugins/newsletter-rss-block/rss/options.php:6
    • > PHP Notice
      Undefined variable: fields in wp-content/plugins/newsletter-rss-block/rss/options.php on line 6
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/newsletter-rss-block/rss/block.php on line 33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: newsletter, rss, composer, feed

newsletter-rss-block/index.php 92% from 13 tests

The entry point to "RSS Block for Newsletter" version 1.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("newsletter-rss-block.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin115 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32334115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
rss/icon.png3.75KB2.02KB▼ 46.25%