10% faf

Code Review | FeedWordPress Advanced Filters

WordPress plugin FeedWordPress Advanced Filters scored10%from 54 tests.

About plugin

  • Plugin page: faf
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2013
  • Latest release: Dec 16, 2014
  • Number of updates: 39
  • Update frequency: every 15.8 days
  • Top authors: basszje (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /25,834 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/faf/feedwordpress_advanced_filters.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; FeedWordPressAdvancedFilters has a deprecated constructor

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

Analyzing server-side resources used by FeedWordPress Advanced Filters
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.56 ▼8.04
Dashboard /wp-admin3.31 ▲0.0048.73 ▼4.80
Posts /wp-admin/edit.php3.36 ▲0.0047.99 ▼2.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.72 ▼20.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.83 ▼0.40

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

FeedWordPress Advanced Filters: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.291.66 ▲0.0739.77 ▼4.51
Dashboard /wp-admin2,195 ▲155.51 ▼0.1987.38 ▼3.1141.85 ▼2.71
Posts /wp-admin/edit.php2,097 ▼61.96 ▼0.0635.49 ▲0.7033.34 ▼6.14
Add New Post /wp-admin/post-new.php1,526 ▼1123.14 ▲4.87706.74 ▲27.6956.28 ▼17.46
Media Library /wp-admin/upload.php1,394 ▼94.15 ▲0.0299.33 ▼1.8346.35 ▼0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/remove_keywords.php:6
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 864
    • > PHP Fatal error
      Uncaught Error: Class 'FeedWordPressAdminPage' not found in wp-content/plugins/faf/advanced_filters_overview.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/expire_post.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 864
    • > PHP Parse error
      syntax error, unexpected 'array' (T_ARRAY) in wp-content/plugins/faf/dbugdata.php on line 55
    • > PHP Fatal error
      Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/image_filters.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/link_filter.php:10
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 864
    • > PHP Fatal error
      Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/remove_html.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: atom, syndication, feed, aggregation, rss...

faf/feedwordpress_advanced_filters.php 92% from 13 tests

The entry point to "FeedWordPress Advanced Filters" version 0.6.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("faf.php" instead of "feedwordpress_advanced_filters.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,603 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.10
▷ Minimum class complexity2.00
▷ Maximum class complexity85.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
▷ Static methods3441.46%
▷ Public methods5060.98%
▷ Protected methods1214.63%
▷ Private methods2024.39%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-faf01.png79.52KB25.77KB▼ 67.60%