84% disable-rss-feeds-and-comments

Code Review | Disable Feeds and Comments

WordPress plugin Disable Feeds and Comments scored84%from 54 tests.

About plugin

  • Plugin page: disable-rss-feeds...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2023
  • Latest release: Feb 18, 2023
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: haseebasghar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.54ms] Passed 4 tests

This is a short check of server-side resources used by Disable Feeds and Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.92 ▲1.82
Dashboard /wp-admin3.32 ▲0.0247.94 ▲1.75
Posts /wp-admin/edit.php3.37 ▲0.0145.16 ▼0.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.02 ▼1.26
Media Library /wp-admin/upload.php3.24 ▲0.0137.36 ▲4.67
Disable RSS Feeds and Comments /wp-admin/options-general.php?page=disable-rss-feeds-and-comments3.2129.87

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Disable Feeds and Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.271.67 ▼0.2038.87 ▼5.04
Dashboard /wp-admin2,210 ▲224.85 ▼1.15109.27 ▲10.5342.20 ▼2.78
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0638.82 ▼0.4434.51 ▲0.60
Add New Post /wp-admin/post-new.php1,517 ▼1917.64 ▼5.43641.48 ▲40.4153.08 ▼6.86
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0095.26 ▲0.2742.28 ▼0.81
Disable RSS Feeds and Comments /wp-admin/options-general.php?page=disable-rss-feeds-and-comments7812.0327.4628.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× 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/disable-rss-feeds-and-comments/disable-comments-and-rss-feeds.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
9 plugin tags: disable post comments, disable comments on page, disable comments on pages, disable rss feeds, disable comments on post...

disable-rss-feeds-and-comments/disable-comments-and-rss-feeds.php 92% from 13 tests

The principal PHP file in "Disable Feeds and Comments" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-rss-feeds-and-comments.php" instead of "disable-comments-and-rss-feeds.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin101 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1106101

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions9
▷ Named functions9100.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
No PNG images were found in this plugin