79% feedpress

Code Review | FeedPress

WordPress plugin FeedPress scored79%from 54 tests.

About plugin

  • Plugin page: feedpress
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Mar 20, 2023
  • Number of updates: 52
  • Update frequency: every 68.5 days
  • Top authors: maximevalette (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /30,524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by FeedPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1834.75 ▼0.23
Dashboard /wp-admin3.38 ▲0.0332.89 ▼24.72
Posts /wp-admin/edit.php3.45 ▲0.0936.80 ▼12.25
Add New Post /wp-admin/post-new.php5.62 ▼0.2768.61 ▼27.18
Media Library /wp-admin/upload.php3.38 ▲0.1532.82 ▼5.01
FeedPress /wp-admin/options-general.php?page=feedpress3.3530.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by FeedPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.27 ▼0.291.68 ▲0.1537.97 ▼1.04
Dashboard /wp-admin2,202 ▲285.63 ▲0.0280.65 ▼3.8337.58 ▼4.31
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0435.24 ▼3.6729.42 ▼8.26
Add New Post /wp-admin/post-new.php1,532 ▲622.98 ▼0.53698.99 ▲7.8961.79 ▲5.76
Media Library /wp-admin/upload.php1,407 ▲44.41 ▲0.1697.55 ▼6.6943.15 ▼3.37
FeedPress /wp-admin/options-general.php?page=feedpress7792.0226.3633.33

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=feedpress
    • > Notice in wp-content/plugins/feedpress/feedpress.php+859
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/feedpress/feedpress.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: urilv, feedburner, redirect, feed, rss...

feedpress/feedpress.php Passed 13 tests

The principal PHP file in "FeedPress" v. 1.8 is loaded by WordPress automatically on each request
74 characters long description:
Redirects all feeds to a FeedPress feed and enables realtime feed updates.

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
There were no executable files found in this plugin1,014 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP135233700
PO File2103140314

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin