68% remove-feed-links

Code Review | Remove Feed Links

WordPress plugin Remove Feed Links scored68%from 54 tests.

About plugin

  • Plugin page: remove-feed-links
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Feb 6, 2016
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: stubgo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,113 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
Install script ran successfully

Server metrics [RAM: ▼1.80MB] [CPU: ▼58.64ms] Passed 4 tests

An overview of server-side resources used by Remove Feed Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.297.13 ▼37.21
Dashboard /wp-admin2.23 ▼1.1210.17 ▼54.58
Posts /wp-admin/edit.php2.23 ▼1.138.96 ▼36.86
Add New Post /wp-admin/post-new.php2.22 ▼3.6610.27 ▼105.89
Media Library /wp-admin/upload.php2.23 ▼1.008.78 ▼28.32
Remove Feed Links /wp-admin/options-general.php?page=remove-feed-links2.2310.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Remove Feed Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.24 ▼0.112.66 ▲1.1040.36 ▼4.74
Dashboard /wp-admin2,201 ▲245.55 ▼0.1185.82 ▼7.1343.17 ▼3.60
Posts /wp-admin/edit.php2,106 ▲62.01 ▼0.1441.68 ▲5.0436.03 ▲1.77
Add New Post /wp-admin/post-new.php1,531 ▲321.16 ▼1.83661.73 ▼9.2855.33 ▲0.68
Media Library /wp-admin/upload.php1,409 ▲124.22 ▲0.0295.15 ▼4.1444.02 ▼0.24
Remove Feed Links /wp-admin/options-general.php?page=remove-feed-links8292.0025.0943.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/remove-feed-links/remove-feed-links.php+21
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=remove-feed-links
    • > Notice in wp-content/plugins/remove-feed-links/settings-page.php+56
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× 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/remove-feed-links/settings-page.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-feed-links/settings-page.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: feed links extra, wp-head, feed, meta, wpsos...

remove-feed-links/remove-feed-links.php Passed 13 tests

The entry point to "Remove Feed Links" version 1.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
A simple plugin for removing feed link from the head of your web site.

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
Everything looks great! No dangerous files found in this plugin166 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31347121
CSS17045

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin