84% remove-amazon-links-from-rss-feed

Code Review | Remove Amazon Links from RSS Feed

WordPress plugin Remove Amazon Links from RSS Feed scored84%from 54 tests.

About plugin

  • Plugin page: remove-amazon-lin...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Jul 19, 2017
  • Number of updates: 13
  • Update frequency: every 92.9 days
  • Top authors: philmcdonnell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.05ms] Passed 4 tests

Analyzing server-side resources used by Remove Amazon Links from RSS Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.26 ▼0.38
Dashboard /wp-admin3.31 ▲0.0043.41 ▲0.53
Posts /wp-admin/edit.php3.36 ▲0.0045.36 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.60 ▼9.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.79 ▲5.83

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Amazon Links from RSS Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.67 ▼0.961.53 ▼0.3338.15 ▼3.21
Dashboard /wp-admin2,206 ▲575.88 ▲0.19106.57 ▲0.0438.69 ▼2.36
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0140.57 ▼2.9635.81 ▼0.35
Add New Post /wp-admin/post-new.php1,544 ▲1718.26 ▼4.84626.75 ▼23.6855.44 ▲2.19
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0095.91 ▼4.6744.13 ▲1.48

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-amazon-links-from-rss-feed/remove-amazon-links-from-rss-feed.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === remove-amazon-links-from-rss-feed === )
You can take inspiration from this readme.txt

remove-amazon-links-from-rss-feed/remove-amazon-links-from-rss-feed.php Passed 13 tests

The entry point to "Remove Amazon Links from RSS Feed" version 1.4 is a PHP file that has certain tags in its header comment area
99 characters long description:
Removes all links to Amazon.com/Amzn.to in the RSS feed so you will be in compliance with their TOS

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162415

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin