10% rss-feed-canceller

Code Review | RSS-feed Canceller

WordPress plugin RSS-feed Canceller scored10%from 54 tests.

About plugin

  • Plugin page: rss-feed-canceller
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.5.1
  • WordPress version: 6.3.1
  • First release: May 4, 2016
  • Latest release: May 5, 2016
  • Number of updates: 10
  • Update frequency: every 42.0 days
  • Top authors: y3sei (80%)plugmize (30%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/rss-feed-canceller/rss-feed-canceller.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; RssFeedCanceller has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.16ms] Passed 4 tests

Server-side resources used by RSS-feed Canceller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.08 ▼36.98
Dashboard /wp-admin2.08 ▼1.2210.51 ▼44.06
Posts /wp-admin/edit.php2.08 ▼1.276.49 ▼41.44
Add New Post /wp-admin/post-new.php2.08 ▼3.806.50 ▼90.17
Media Library /wp-admin/upload.php2.08 ▼1.145.46 ▼32.76

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSS-feed Canceller
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.351.70 ▲0.0543.01 ▲2.23
Dashboard /wp-admin2,206 ▲154.85 ▼0.02107.63 ▲4.0640.79 ▼7.52
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0439.44 ▲0.5834.81 ▲3.76
Add New Post /wp-admin/post-new.php6,215 ▲4,70118.81 ▲1.30892.36 ▲234.6359.94 ▲12.70
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0298.94 ▼4.6946.41 ▼0.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/rss-feed-canceller/rss-feed-canceller.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; RssFeedCanceller has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/rss-feed-canceller/rss-feed-canceller.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: feed, posts, new posts, rss

rss-feed-canceller/rss-feed-canceller.php Passed 13 tests

The main file in "RSS-feed Canceller" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
This plug-in can be used to stop the RSS feed delivery in the article unit.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182259
PO File13319

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png2.70KB2.12KB▼ 21.53%