84% disable-feeds-and-hide-usernames

Code Review | Disable Feeds And Hide Usernames

WordPress plugin Disable Feeds And Hide Usernames scored84%from 54 tests.

About plugin

  • Plugin page: disable-feeds-and...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Dec 28, 2018
  • Number of updates: 9
  • Update frequency: every 75.7 days
  • Top authors: thapa.laxman (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /2,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.81ms] Passed 4 tests

Analyzing server-side resources used by Disable Feeds And Hide Usernames
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.08 ▼4.28
Dashboard /wp-admin3.30 ▼0.0450.61 ▼14.55
Posts /wp-admin/edit.php3.36 ▼0.0047.45 ▼3.36
Add New Post /wp-admin/post-new.php5.89 ▼0.0093.97 ▼10.94
Media Library /wp-admin/upload.php3.23 ▼0.0035.71 ▼5.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Feeds And Hide Usernames
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.30 ▼0.341.81 ▼0.0148.06 ▲2.97
Dashboard /wp-admin2,195 ▲185.57 ▼0.0886.53 ▼0.2736.29 ▼5.78
Posts /wp-admin/edit.php2,100 ▲32.04 ▼0.0140.00 ▲4.1535.68 ▼0.32
Add New Post /wp-admin/post-new.php1,545 ▲1423.25 ▲0.03593.84 ▼91.1545.75 ▼17.81
Media Library /wp-admin/upload.php1,391 ▼124.19 ▲0.0499.02 ▼12.2942.75 ▼5.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_all_actions() in wp-content/plugins/disable-feeds-and-hide-usernames/disable-feeds-hide-usernames.php:9

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 is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: hide username, remove rss, disable feeds

disable-feeds-and-hide-usernames/disable-feeds-hide-usernames.php 92% from 13 tests

The main PHP file in "Disable Feeds And Hide Usernames" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("disable-feeds-and-hide-usernames.php" instead of "disable-feeds-hide-usernames.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17630

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.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 files were detected