90% rss-feed-block

Code Review | RSS Feed Block (Gutenberg)

WordPress plugin RSS Feed Block (Gutenberg) scored90%from 54 tests.

About plugin

  • Plugin page: rss-feed-block
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 23, 2018
  • Latest release: Jun 10, 2022
  • Number of updates: 10
  • Update frequency: every 141.9 days
  • Top authors: aatanasov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼16.06ms] Passed 4 tests

A check of server-side resources used by RSS Feed Block (Gutenberg)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.82 ▲8.88
Dashboard /wp-admin3.34 ▲0.0347.74 ▲1.99
Posts /wp-admin/edit.php3.39 ▲0.0346.26 ▼3.61
Add New Post /wp-admin/post-new.php3.22 ▼2.6734.16 ▼60.55
Media Library /wp-admin/upload.php3.26 ▲0.0333.08 ▼2.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RSS Feed Block (Gutenberg)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.011.70 ▲0.0944.21 ▲0.96
Dashboard /wp-admin2,198 ▲185.61 ▼0.0290.06 ▲3.6142.53 ▲1.81
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0735.84 ▼2.8233.28 ▼1.52
Add New Post /wp-admin/post-new.php6,362 ▲4,83627.82 ▲4.34911.39 ▲244.1858.59 ▼0.65
Media Library /wp-admin/upload.php1,397 ▲34.16 ▼0.0494.85 ▼7.2141.88 ▼6.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: block, gutenberg, feed, rss

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

The main PHP script in "RSS Feed Block (Gutenberg)" version 0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rss-feed-block.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected149 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP75698148
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin