10% wp-news-feed-widget

Code Review | WP News feed widget

WordPress plugin WP News feed widget scored10%from 54 tests.

About plugin

  • Plugin page: wp-news-feed-widget
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Jun 10, 2013
  • Latest release: Aug 21, 2016
  • Number of updates: 27
  • Update frequency: every 43.3 days
  • Top authors: tabrisrp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,230 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-news-feed-widget/wp-news-feed-widget.php+274
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.25ms] Passed 4 tests

A check of server-side resources used by WP News feed widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.42 ▼38.29
Dashboard /wp-admin2.05 ▼1.266.41 ▼38.79
Posts /wp-admin/edit.php2.05 ▼1.315.22 ▼41.25
Add New Post /wp-admin/post-new.php2.05 ▼3.846.41 ▼82.67
Media Library /wp-admin/upload.php2.05 ▼1.185.55 ▼28.78

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_wp-news-feed-widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP News feed widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13813.65 ▼0.725.45 ▲3.3737.54 ▼6.52
Dashboard /wp-admin2,206 ▲184.88 ▼0.01109.48 ▼0.9940.50 ▼0.62
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0141.36 ▲1.4536.20 ▼1.55
Add New Post /wp-admin/post-new.php1,543 ▲118.45 ▼0.05622.77 ▼21.2066.06 ▲15.47
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0094.86 ▼5.7842.08 ▼4.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-news-feed-widget/wp-news-feed-widget.php+274
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_wp-news-feed-widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-news-feed-widget/views/widget.php
    • > /wp-content/plugins/wp-news-feed-widget/views/admin.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-feed-widget/wp-news-feed-widget.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pagination, news, widget

wp-news-feed-widget/wp-news-feed-widget.php Passed 13 tests

The primary PHP file in "WP News feed widget" version 1.2 is used by WordPress to initiate all plugin functionality
34 characters long description:
A news feed widget with pagination

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
There were no executable files found in this plugin425 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP44378223
CSS21614110
PO File1212356
JavaScript23036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin