84% wp-clear-rss-cache

Code Review | WP Clear RSS Cache

WordPress plugin WP Clear RSS Cache scored 84% from 54 tests.

About plugin

  • Plugin page: wp-clear-rss-cache
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2012
  • Latest release: Dec 2, 2012
  • Number of updates: 5
  • Update frequency: every 8.4 days
  • Top authors: mdjekic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WP Clear RSS Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.19 ▼9.19
Dashboard /wp-admin3.31 ▲0.0144.33 ▼0.17
Posts /wp-admin/edit.php3.37 ▲0.0047.22 ▼3.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0083.92 ▼14.13
Media Library /wp-admin/upload.php3.24 ▲0.0033.88 ▲0.71
Clear RSS Cache /wp-admin/themes.php?page=wpcrc_action3.2030.09

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WP Clear RSS Cache: 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.28 ▼1.091.71 ▲0.0541.72 ▼0.99
Dashboard /wp-admin2,210 ▲225.86 ▼0.18107.00 ▲8.9739.26 ▼6.73
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0839.48 ▼0.0933.62 ▼3.66
Add New Post /wp-admin/post-new.php1,531 ▼1118.29 ▼0.08641.75 ▲19.0451.48 ▼20.88
Media Library /wp-admin/upload.php1,389 ▼24.19 ▼0.0495.49 ▼6.1540.86 ▼2.32
Clear RSS Cache /wp-admin/themes.php?page=wpcrc_action7542.0236.1326.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-clear-rss-cache/clear.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: rss, widget, clear, cache

wp-clear-rss-cache/wp-clear-rss-cache.php Passed 13 tests

The principal PHP file in "WP Clear RSS Cache" v. 1.1 is loaded by WordPress automatically on each request
49 characters long description:
A simple WP action to clear the RSS widget cashe.

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
No dangerous file extensions were detected51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2164451

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.44
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin