68% feed-reader

Code Review | Feed Reader

WordPress plugin Feed Reader scored 68% from 54 tests.

About plugin

  • Plugin page: feed-reader
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Jan 18, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: janboddez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 421 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.74ms] Passed 4 tests

This is a short check of server-side resources used by Feed Reader
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.71 ▼5.87
Dashboard /wp-admin3.44 ▲0.1343.68 ▼0.00
Posts /wp-admin/edit.php3.49 ▲0.1349.67 ▲5.68
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.53 ▲3.25
Media Library /wp-admin/upload.php3.30 ▲0.0733.96 ▼0.35
Settings /wp-admin/admin.php?page=feed-reader/settings3.3131.93
View Feed /wp-admin/admin.php?page=feed-reader/feeds/view3.4731.70
Add Category /wp-admin/admin.php?page=feed-reader/categories/create3.3430.49
Reader /wp-admin/admin.php?page=feed-reader3.3635.91
View Category /wp-admin/admin.php?page=feed-reader/categories/view3.2426.20
Categories /wp-admin/admin.php?page=feed-reader/categories3.3130.79
Edit Feed /wp-admin/admin.php?page=feed-reader/feeds/edit3.3130.65
Add Feed /wp-admin/admin.php?page=feed-reader/feeds/create3.3132.74
Import & Export /wp-admin/admin.php?page=feed-reader/opml3.3428.88
Feeds /wp-admin/admin.php?page=feed-reader/feeds3.3332.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 86 new files
Database: 3 new tables, 8 new options
New tables
wp_feed_reader_feeds
wp_feed_reader_categories
wp_feed_reader_entries
New WordPress options
feed_reader_settings
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
feed_reader_db_version
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Feed Reader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.32 ▼1.051.77 ▼0.3141.93 ▼3.64
Dashboard /wp-admin2,278 ▲875.84 ▲0.9897.25 ▼3.0338.92 ▼6.81
Posts /wp-admin/edit.php2,167 ▲781.99 ▼0.0140.24 ▲6.0436.08 ▲0.26
Add New Post /wp-admin/post-new.php1,595 ▲8123.18 ▲5.52607.69 ▼75.9860.93 ▲5.56
Media Library /wp-admin/upload.php1,466 ▲754.22 ▼0.0195.87 ▼6.1246.17 ▲1.49
Settings /wp-admin/admin.php?page=feed-reader/settings9492.0522.5725.32
View Feed /wp-admin/admin.php?page=feed-reader/feeds/view7081.536.3020.42
Add Category /wp-admin/admin.php?page=feed-reader/categories/create8652.0624.9426.77
Reader /wp-admin/admin.php?page=feed-reader8992.0424.1253.63
View Category /wp-admin/admin.php?page=feed-reader/categories/view7081.536.2317.53
Categories /wp-admin/admin.php?page=feed-reader/categories9822.0825.0724.57
Edit Feed /wp-admin/admin.php?page=feed-reader/feeds/edit9332.0825.1727.90
Add Feed /wp-admin/admin.php?page=feed-reader/feeds/create9412.1326.5923.90
Import & Export /wp-admin/admin.php?page=feed-reader/opml8882.2125.2728.87
Feeds /wp-admin/admin.php?page=feed-reader/feeds9742.2125.8327.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_feed_reader_categories
    • wp_feed_reader_entries
    • wp_feed_reader_feeds
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • feed_reader_db_version
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • feed_reader_settings
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=feed-reader/feeds/edit
    • > Notice in wp-content/plugins/feed-reader/includes/views/feeds/edit.php+55
    Trying to get property 'id' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix 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 'WP_List_Table' not found in wp-content/plugins/feed-reader/includes/Helpers/class-feed-list-table.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/feed-reader/includes/Helpers/class-category-list-table.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Models\\Model' not found in wp-content/plugins/feed-reader/includes/Models/class-category.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Controllers\\Controller' not found in wp-content/plugins/feed-reader/includes/Controllers/class-feed-controller.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Formats\\Format' not found in wp-content/plugins/feed-reader/includes/Formats/class-json-feed.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Controllers\\Controller' not found in wp-content/plugins/feed-reader/includes/Controllers/class-opml-controller.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Models\\Model' not found in wp-content/plugins/feed-reader/includes/Models/class-entry.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Controllers\\Controller' not found in wp-content/plugins/feed-reader/includes/Controllers/class-category-controller.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Formats\\Format' not found in wp-content/plugins/feed-reader/includes/Formats/class-xml.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FeedReader\\Models\\Model' not found in wp-content/plugins/feed-reader/includes/Models/class-feed.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: rss, reader, atom, feeds, web feeds...

feed-reader/feed-reader.php Passed 13 tests

The main file in "Feed Reader" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
26 characters long description:
A dead-simple feed reader.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,039 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP601,0482,0768,296
CSS28213469
JavaScript1534224
XML11026
JSON10014
SVG10010

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 348)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity40.06
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity5.39
▷ Minimum method complexity1.00
▷ Maximum method complexity348.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes36
▷ Abstract classes25.56%
▷ Concrete classes3494.44%
▷ Final classes00.00%
Methods320
▷ Static methods10532.81%
▷ Public methods24375.94%
▷ Protected methods6720.94%
▷ Private methods103.12%
Functions39
▷ Named functions3589.74%
▷ Anonymous functions410.26%
Constants527
▷ Global constants00.00%
▷ Class constants527100.00%
▷ Public constants527100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin