83% ada-feedwordpress-keyword-filters

Code Review | Ada FeedWordPress Keyword Filters

WordPress plugin Ada FeedWordPress Keyword Filters scored83%from 54 tests.

About plugin

  • Plugin page: ada-feedwordpress...
  • Plugin version: 2023.0114
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2012
  • Latest release: Jan 14, 2023
  • Number of updates: 24
  • Update frequency: every 166.2 days
  • Top authors: skcsknathan001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /6,755 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.12ms] Passed 4 tests

This is a short check of server-side resources used by Ada FeedWordPress Keyword Filters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.09 ▼5.78
Dashboard /wp-admin3.37 ▲0.0744.19 ▼6.54
Posts /wp-admin/edit.php3.42 ▲0.0645.32 ▲3.43
Add New Post /wp-admin/post-new.php5.95 ▲0.0678.57 ▼19.57
Media Library /wp-admin/upload.php3.30 ▲0.0636.32 ▲3.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ada FeedWordPress Keyword Filters
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.41 ▼1.194.91 ▲2.8543.03 ▲0.03
Dashboard /wp-admin2,209 ▲174.86 ▼0.0996.26 ▼24.8138.91 ▼7.98
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0249.58 ▲12.1149.03 ▲13.44
Add New Post /wp-admin/post-new.php1,536 ▼623.21 ▲5.10675.59 ▲40.6757.63 ▲8.68
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.01111.63 ▲12.7347.13 ▲5.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ada-feedwordpress-keyword-filters/ada-feedwordpress-filter-by-keywords.php:18

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Adding new keyword filters) image required
You can take inspiration from this readme.txt

ada-feedwordpress-keyword-filters/ada-feedwordpress-filter-by-keywords.php 85% from 13 tests

This is the main PHP file of "Ada FeedWordPress Keyword Filters" version 2023.0114, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ada-feedwordpress-keyword-filters.php" instead of "ada-feedwordpress-filter-by-keywords.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin451 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112238451

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity7.17
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png206.50KB61.37KB▼ 70.28%