68% fp-rss-category-excluder

Code Review | FP RSS Category Excluder

WordPress plugin FP RSS Category Excluder scored68%from 54 tests.

About plugin

  • Plugin page: fp-rss-category-e...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2013
  • Latest release: Jul 5, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: digontobd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,372 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼38.53ms] Passed 4 tests

An overview of server-side resources used by FP RSS Category Excluder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.96 ▼6.16
Dashboard /wp-admin3.00 ▼0.3523.94 ▼36.29
Posts /wp-admin/edit.php3.00 ▼0.3621.31 ▼26.39
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.65 ▼75.01
Media Library /wp-admin/upload.php3.00 ▼0.2319.67 ▼16.44
RSS Category Excluder /wp-admin/tools.php?page=fp-rss-exclude-category3.0021.74

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

Analyzing filesystem and database footprints 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
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

FP RSS Category Excluder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.21 ▼1.151.86 ▼0.1238.86 ▼5.89
Dashboard /wp-admin2,213 ▲255.90 ▲1.01101.69 ▼15.8739.88 ▼6.08
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0233.86 ▼4.4231.54 ▼2.80
Add New Post /wp-admin/post-new.php1,538 ▲2423.05 ▲5.53645.02 ▼40.7058.40 ▼1.42
Media Library /wp-admin/upload.php1,389 ▲14.23 ▼0.0396.87 ▼5.8441.94 ▼1.11
RSS Category Excluder /wp-admin/tools.php?page=fp-rss-exclude-category7782.0323.0021.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=fp-rss-exclude-category
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fp-rss-category-excluder/fp-rss-exclude-category.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (View Backend of FP RSS Category Excluder Settings Page.)
You can look at the official readme.txt

fp-rss-category-excluder/fp-rss-exclude-category.php 92% from 13 tests

The principal PHP file in "FP RSS Category Excluder" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fp-rss-category-excluder.php" instead of "fp-rss-exclude-category.php")

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
There were no executable files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112842

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in 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%
Functions3
▷ Named functions3100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.05KB6.76KB▼ 51.87%