74% block-rss-reading

Code Review | Block RSS Reading

WordPress plugin Block RSS Reading scored 74% from 54 tests.

About plugin

  • Plugin page: block-rss-reading
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jun 8, 2013
  • Number of updates: 17
  • Update frequency: every 0.2 days
  • Top authors: smbdstopme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,172 total downloads

Benchmarks

Plugin footprint 65% 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.15MB] [CPU: ▼9.84ms] Passed 4 tests

Analyzing server-side resources used by Block RSS Reading
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6218.80 ▼21.33
Dashboard /wp-admin3.31 ▲0.0149.26 ▲0.78
Posts /wp-admin/edit.php3.37 ▲0.0143.22 ▼4.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.72 ▼14.11
Media Library /wp-admin/upload.php3.24 ▲0.0135.76 ▲5.43

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Block RSS Reading: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.67 ▼0.731.68 ▼0.0540.65 ▼6.61
Dashboard /wp-admin2,224 ▲334.93 ▲0.06106.77 ▲4.2873.38 ▲28.16
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.0135.94 ▼4.1431.12 ▼4.83
Add New Post /wp-admin/post-new.php1,680 ▲16622.30 ▲4.90759.93 ▲129.5060.48 ▼1.11
Media Library /wp-admin/upload.php1,400 ▲94.11 ▼0.1194.56 ▲0.1164.92 ▲23.52

Uninstaller [IO: ▲0.02MB] [DB: ▲0.07MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Incomplete uninstall procedure, leaving 9 files (0.02MB) in the plugin directory
    • (new file) block-rss-reading.php
    • (new file) assets/img/screenshot.png
    • (new file) lang/.empty
    • (new file) assets/js/.empty
    • (new file) includes/core.php
    • (new file) includes/admin.php
    • (new file) readme.txt
    • (new file) assets/css/.empty
    • (new file) assets/img/menu-icon.png
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/block-rss-reading/block-rss-reading.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-rss-reading/includes/core.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-rss-reading/includes/admin.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: rss, feed, ip block

block-rss-reading/block-rss-reading.php Passed 13 tests

This is the main PHP file of "Block RSS Reading" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
A simple WordPress plugin that let you to set another RSS Feed Url to be displayed for one or a list of many IP's.

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
No dangerous file extensions were detected127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37738127

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshot.png9.36KB4.30KB▼ 54.09%
assets/img/menu-icon.png0.71KB0.69KB▼ 2.47%