84% hw-feed-cleaner

Code Review | HW Feed Cleaner

WordPress plugin HW Feed Cleaner scored84%from 54 tests.

About plugin

  • Plugin page: hw-feed-cleaner
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: Apr 3, 2013
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: PuffyThePirateBoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by HW Feed Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.45 ▼2.42
Dashboard /wp-admin3.32 ▲0.0143.77 ▼3.73
Posts /wp-admin/edit.php3.37 ▲0.0146.05 ▲0.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.81 ▲8.75
Media Library /wp-admin/upload.php3.24 ▲0.0134.20 ▲1.37

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for HW Feed Cleaner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.114.99 ▲3.4941.84 ▼3.58
Dashboard /wp-admin2,200 ▲125.78 ▼0.10105.49 ▼20.0639.60 ▼17.01
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0139.15 ▼2.2435.29 ▼4.78
Add New Post /wp-admin/post-new.php1,533 ▲1923.29 ▲5.64606.39 ▼88.5448.81 ▼17.32
Media Library /wp-admin/upload.php1,391 ▲34.31 ▲0.1394.41 ▼1.0742.99 ▼1.39

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 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/hw-feed-cleaner/hw-feed-cleaner.php:33

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: rss, atom, utf8, feed, utf-8

hw-feed-cleaner/hw-feed-cleaner.php Passed 13 tests

"HW Feed Cleaner" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Silently discards invalid UTF-8 characters from the various WordPress feeds in order to keep t valid.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131317

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin