84% newsworthy-feed

Code Review | Newsworthy Feed

WordPress plugin Newsworthy Feed scored84%from 54 tests.

About plugin

  • Plugin page: newsworthy-feed
  • Plugin version: 1.4.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 28, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 52
  • Update frequency: every 9.4 days
  • Top authors: newsworthyai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.45ms] Passed 4 tests

An overview of server-side resources used by Newsworthy Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1739.74 ▲1.13
Dashboard /wp-admin3.54 ▲0.2346.33 ▼2.75
Posts /wp-admin/edit.php3.59 ▲0.2349.88 ▲2.45
Add New Post /wp-admin/post-new.php6.05 ▲0.1695.47 ▼14.61
Media Library /wp-admin/upload.php3.40 ▲0.1637.47 ▲5.57

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Newsworthy Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.31 ▲0.071.59 ▼0.2837.40 ▼6.69
Dashboard /wp-admin2,202 ▲255.63 ▲0.0998.34 ▼3.1643.15 ▲0.56
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0140.01 ▲1.4735.11 ▼0.90
Add New Post /wp-admin/post-new.php1,529 ▲323.30 ▲0.15691.36 ▲60.7860.81 ▲6.46
Media Library /wp-admin/upload.php1,404 ▲104.21 ▲0.0599.14 ▼0.1741.80 ▼1.87
Newsworthy Feed /wp-admin/options-general.php?page=Newsworthy Feed1,8312.3950.4040.60

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Everything seems fine, however 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/newsworthy-feed/nwaif_form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/newsworthy-feed/nwaif_form_tab.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsworthy-feed/nwaif_admin.php:142

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: feeds, rss, newsworthyai, newsworthy, posts

newsworthy-feed/newsworthy_feed.php 85% from 13 tests

The entry point to "Newsworthy Feed" version 1.4.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("newsworthy-feed.php" instead of "newsworthy_feed.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,679 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12276541,259
JavaScript45512236
CSS22410156
Markdown19028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity19.75
▷ Minimum class complexity5.00
▷ Maximum class complexity69.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods74
▷ Static methods810.81%
▷ Public methods4256.76%
▷ Protected methods00.00%
▷ Private methods3243.24%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
attachments/chosen-sprite@2x.png0.72KB0.83KB0.00%
attachments/chosen-sprite.png0.53KB0.88KB0.00%