84% visualwp-restrict-rss-feeds

Code Review | VisualWP Restrict RSS Feeds

WordPress plugin VisualWP Restrict RSS Feeds scored84%from 54 tests.

About plugin

  • Plugin page: visualwp-restrict...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.83-6.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2022
  • Latest release: May 3, 2023
  • Number of updates: 7
  • Update frequency: every 20.9 days
  • Top authors: sightfactory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /200 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: ▼5.72ms] Passed 4 tests

Analyzing server-side resources used by VisualWP Restrict RSS Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.21 ▼0.58
Dashboard /wp-admin3.32 ▼0.0349.78 ▼20.60
Posts /wp-admin/edit.php3.37 ▲0.0151.87 ▲0.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.32 ▼2.56
Media Library /wp-admin/upload.php3.24 ▲0.0139.34 ▲2.43
Restrict RSS Feed /wp-admin/options-general.php?page=visualwp-restrict-rss3.2136.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for VisualWP Restrict RSS Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▲0.002.18 ▲0.4542.08 ▲0.24
Dashboard /wp-admin2,201 ▲215.61 ▲0.0494.61 ▼3.3039.66 ▲1.26
Posts /wp-admin/edit.php2,109 ▲92.02 ▲0.0038.92 ▲3.3734.84 ▼0.93
Add New Post /wp-admin/post-new.php1,531 ▼423.34 ▲5.25672.19 ▲37.9462.99 ▼5.36
Media Library /wp-admin/upload.php1,409 ▲64.21 ▼0.02111.90 ▲7.1050.36 ▲3.30
Restrict RSS Feed /wp-admin/options-general.php?page=visualwp-restrict-rss8662.1126.7339.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/visualwp-restrict-rss-feeds/visualwp-restrict-rss.php:18

User-side errors Passed 1 test

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

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
3 plugin tags: feed, disable, rss

visualwp-restrict-rss-feeds/visualwp-restrict-rss.php 92% from 13 tests

The primary PHP file in "VisualWP Restrict RSS Feeds" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("visualwp-restrict-rss-feeds.php" instead of "visualwp-restrict-rss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected569 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS16739370
PHP16226199

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were 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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/vwp-logo.png6.17KB3.20KB▼ 48.24%
admin/images/vwp-restrict-rss.png23.76KB10.29KB▼ 56.67%
admin/images/donate.png4.63KB4.64KB0.00%