78% feed-changer

Code Review | Feed Changer & Remover

WordPress plugin Feed Changer & Remover scored78%from 54 tests.

About plugin

  • Plugin page: feed-changer
  • Plugin version: 0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 27, 2015
  • Latest release: Jan 20, 2023
  • Number of updates: 5
  • Update frequency: every 534.4 days
  • Top authors: Goback2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /3,217 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.05MB] [CPU: ▼5.85ms] Passed 4 tests

A check of server-side resources used by Feed Changer & Remover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.36 ▼0.66
Dashboard /wp-admin3.36 ▲0.0251.72 ▼10.21
Posts /wp-admin/edit.php3.41 ▲0.0646.78 ▲2.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.74 ▼10.29
Media Library /wp-admin/upload.php3.29 ▲0.0635.39 ▼2.23
Feed Changer /wp-admin/options-general.php?page=FeedChanger-options3.2532.68

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
feedChanger

Browser metrics Passed 4 tests

Feed Changer & Remover: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.26 ▼0.111.85 ▲0.0943.09 ▼0.56
Dashboard /wp-admin2,196 ▲225.56 ▼0.0887.22 ▼13.6438.76 ▼7.52
Posts /wp-admin/edit.php2,104 ▲41.96 ▲0.0235.80 ▼3.1533.81 ▼0.86
Add New Post /wp-admin/post-new.php1,540 ▲1218.34 ▼4.80624.55 ▼43.8570.63 ▲7.44
Media Library /wp-admin/upload.php1,404 ▲74.15 ▼0.0295.64 ▼13.8841.26 ▼6.49
Feed Changer /wp-admin/options-general.php?page=FeedChanger-options9201.9921.4622.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • feedChanger

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/feed-changer/index.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feed-changer/simple-class-options.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
There were no plugin tags found

feed-changer/index.php 85% from 13 tests

The principal PHP file in "Feed Changer & Remover" v. 0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("feed-changer.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin279 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25352207
PO File1222653
HTML201119

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants2
▷ Global constants2100.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